[BUG] Invalid floating point operation

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

[BUG] Invalid floating point operation

Post by *roentgen »

When entering a .lst file created by DiskDirExtended wcx plugin I get this error:

Code: Select all

---------------------------
Total Commander
---------------------------
Invalid floating point operation.
Please report this error to the Author,
with a description of what you were doing when this error occured!
Continue execution?
---------------------------
Yes   No   
---------------------------
Loading TC through a debugger I get this also:

Code: Select all

'TOTALCMD.EXE': Loaded 'C:\Program Files\Totalcmd7\Plugins\wcx\DiskDirExtended\DiskDirExtended.wcx', Binary was not built with debug information.
First-chance exception at 0x005e795e in TOTALCMD.EXE: 0xC0000090: Floating-point invalid operation.
TC for Linux please!
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3854
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

What version of DiskDirExtended are you using ?

What is the content of the lst file ? (shown by lister or notepad)
#5767 Personal license
User avatar
TrePe
Junior Member
Junior Member
Posts: 41
Joined: 2004-02-10, 23:30 UTC
Location: Slovakia

Re: [BUG] Invalid floating point operation

Post by *TrePe »

Oh, give me please that lst file. I do not even remember using floating point operations in my program...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, please post the part of the list file here which causes this error. I guess that DiskDirExetended returns a HUGE number for file size or a bad date value, which then causes TC to show this error.
Author of Total Commander
https://www.ghisler.com
User avatar
TrePe
Junior Member
Junior Member
Posts: 41
Joined: 2004-02-10, 23:30 UTC
Location: Slovakia

Post by *TrePe »

He already sent it to me. I will look into this, thank you.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Please keep me updated! If any number returned by DiskDirExetended causes a floating point exception in TC itself, then I need to know it so I can write a workaround!
Author of Total Commander
https://www.ghisler.com
User avatar
TrePe
Junior Member
Junior Member
Posts: 41
Joined: 2004-02-10, 23:30 UTC
Location: Slovakia

Post by *TrePe »

We are talking about TC 7.0pb2 and DiskDirExtended 1.55.

Here is lst file how to reproduce (it was created by DiskDirExtended 1.52, that is why there are so huge file sizes - they were originally inside iso file and I had a bug in previous version of DDE with iso files):

Code: Select all

f:\
a.txt	5077810778883651654	2005.3.2	2:34.14
b.txt	5780088646753335120	2005.10.30	18:3.12
Both lines are important. When there is only one file in there, the size shown by TC is question mark (it displays '?' instead of file size).

The exception is raised after second return from my ReadHeaderEx function.
First tHeaderDataEx structure:

Code: Select all

FileName=a.txt
UnpSize=161862 (0x27846)
UnpSizeHigh=1182269952 (0x46780200)
FileTime=845288519 (0x32621447)
Second tHeaderDataEx structure:

Code: Select all

FileName=b.txt
UnpSize=14160 (0x3750)
UnpSizeHigh=1345781760 (0x50370000)
FileTime=861835366 (0x335E9066)
Everything else is 0.

Hope this helps.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Ah, I see - I will try to check what happens with a debugger.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This should be fixed now. TC7 beta 4 should no longer show an error when receiving an extremely large number for the size.
Author of Total Commander
https://www.ghisler.com
User avatar
roentgen
Power Member
Power Member
Posts: 757
Joined: 2005-12-03, 19:58 UTC

Post by *roentgen »

Yes. This is fixed. I see funny sizes returned by the plugin, but TC does not crash anymore.
Thanks for paying attention.
TC for Linux please!
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks!
Author of Total Commander
https://www.ghisler.com
Post Reply