Internal Lister Access Violation

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
MWimmer
Junior Member
Junior Member
Posts: 11
Joined: 2005-07-18, 19:03 UTC

Internal Lister Access Violation

Post by *MWimmer »

Using the internal lister and updating the content by pressing F2 while the displayed plain text file was deleted and created again in the background issued a dialog with the following message. I think it's not easy to reproduce. It guess it was more a lucky hit to the one certain moment when it could go wrong.


---------------------------
Total Commander 7.50a fin
---------------------------
Access violation at address 7D620ABF. Read of address 04E5FFFF.

Please report this error to the Author, with a description
of what you were doing when this error occurred!

Windows exception: C0000005
Stack trace:
7D620ABF
60D29D 61A327 61949D 620603 442479 4443BA
>414514 44397B 414514 44397B 4023DB 4026A4
425FD5 4286A6 60F243 6163F6 6143FC 444EA7
442479 4443BA 414514 44397B 414514 419B58
419BF0 69F119
Raw:
60D29D 61A327 4438E9 414514 444733 416D81
442479 444689 4161F0 443A3D 4443BA 4443DD
414514 44397B 414514 4438E9 414514 444733
4438E9 414514 444733 416D81 62062F 4438E9
414514 444733 416D81 4181F7 442479 444689
4423B7 61949D 620603 442479 444689 4161F0
4161F0 443A3D 4443BA 414514 44397B 414514
44397B 414514 407912 4023DB 4026A4 4036C5
4037AE 407C2E 69CF5B 4438E9 69E4F2 444733
444D11 443A3D 414514 69CF5B 45FA44 416D81

Press Ctrl+C to copy this report!
Continue execution?
---------------------------
Ja Nein
---------------------------
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The error occurs when TC calls GetTabbedTextExtent to position the text cursor (caret).

Can you give me two text files, one before and one after the change, please? Maybe I can reproduce it then. Thanks!
Author of Total Commander
https://www.ghisler.com
MWimmer
Junior Member
Junior Member
Posts: 11
Joined: 2005-07-18, 19:03 UTC

Post by *MWimmer »

Sorry, the file name belongs to a log file which was deleted quite often since then so I can't provide any of the two.

The files conained only ASCII - no UTF or Unicode.
I assume the deleted file had about 5 to 10 MiB.
The created file was opened repeatedly to write 100 to 200 bytes, so it was initially smaller than the previous file.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You mean that the viewed 5-10 MB file was overwritten by a file only a few 100 bytes small?
Author of Total Commander
https://www.ghisler.com
MWimmer
Junior Member
Junior Member
Posts: 11
Joined: 2005-07-18, 19:03 UTC

Post by *MWimmer »

Yes.
And lines with 100 to 200 bytes were repeatedly appended, so the new file was growing.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, that makes it difficult to reproduce. How long were the lines in these files (approximately)?
Author of Total Commander
https://www.ghisler.com
MWimmer
Junior Member
Junior Member
Posts: 11
Joined: 2005-07-18, 19:03 UTC

Post by *MWimmer »

Estimated average line length approx. 170
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Since I couldn't reproduce the error so far, I'm just catching the access violation now in TC 7.55 RC3.
Author of Total Commander
https://www.ghisler.com
Post Reply