[9.0rc5] Invalid floating point operation exception

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

Moderators: white, Hacker, petermad, Stefan2

User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

[9.0rc5] Invalid floating point operation exception

Post by *MVV »

This exception occurs when I open EXIF information window from file information window of Imagine plugin (F3, I, Metadata button). Sample JPG files: first, second.
I'm not sure if it is a TC bug because I can view EXIF of my camera photos, but I suppose there is something that may be fixed in TC because there is no such problem in stand-alone Imagine executable (which is just an executable that uses Imagine DLL used by plugin).

Code: Select all

---------------------------
Total Commander 9.0RC5
---------------------------
Invalid floating point operation.
Invalid floating point operation
Windows 7 SP1 6.1 (Build 7601), base: 00400000

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

Windows exception: C0000090
Stack trace:
0066731C
00447829  004497E6  >00426A8C  00448D8B  00426A8C  00448CF9
00426A8C  0042C170  0042C20C  
Raw:
00447829  00449AB5  00428790  00448E56  004497E6  00426A8C
00448D8B  00426A8C  00448CF9  00426A8C  0042C170  0042C20C
0042C3C6  
Press Ctrl+C to copy this report!
Continue execution?
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Post by *Horst.Epp »

Only the x86 version of the plugin crashes using the metadata button,
no problem here with the x64 plugin and your samples.
I can view the metadata without errors.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
User avatar
Dalai
Power Member
Power Member
Posts: 9365
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

I guess this has something to do with your 3.5 years old bug report about the same issue, although it looks like TC is handling the situation better (without crashing).

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Hmm - I can open "Image Information" -> "Metadata" for both of your sample images in both 32-and 64bit TC9.0rc5 under Windows 7 and 10 without any problems.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Dalai,
Well, it seems that you're right, and it was from me too. :D

petermad,
That's interesting why it doesn't crash in your environment! Do you use the latest version? Any Imagine plugins?
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I am using Unicode version 1.0.9 (I was/am the Danish translator, so naturally I have the latest version).

I have these plugins installed: http://madsenworld.dk/tcmd/Imagineplugins.png

Here is my imagine.ini you can try - in case it is a setting problem: http://madsenworld.dk/tcmd/Imagine.ini

And here are my plugins http://madsenworld.dk/tcmd/Imagineplugins.zip

All 64 bit - if you want 32bit let me know...
Last edited by petermad on 2016-11-12, 22:50 UTC, edited 2 times in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

It should be tested in 32 bits of course because no one is able to reproduce the problem with 64 bits.
I'm using latest 32-bit Imagine w/o any plugins and this bug occurs.
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

OK here is the 32bit stuff:

Plugins installed: http://madsenworld.dk/tcmd/Imagine32plugins.png

Imagine.ini : http://madsenworld.dk/tcmd/Imagine32.ini

Plugins: http://madsenworld.dk/tcmd/Imagine32plugins.zip

I tried the 32bit version without plugins - still no problems (Win 7)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Dalai
Power Member
Power Member
Posts: 9365
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

On my XP it crashes reliably with a message like this:

Code: Select all

---------------------------
Application Error
---------------------------
Exception EInvalidOp in module TOTALCMD.EXE at 4FC2D88B.
Invalid floating point operation.
---------------------------
OK   
---------------------------
Pressing OK closes the whole TC process.

On Win7 it's a different story: sometimes when pressing Shift+I Imagine tries to open the metadata window but fails to do so and just hangs the whole Lister window instead - it then doesn't react to any input and can't be closed by any means. The TC window can be used normally when this happens. But sometimes I get the same crash like on XP; this mainly happens when pressing the metadata button in Imagine's status bar or toolbar instead of pressing Shift+I.

This exception is really annoying, and it get's worse because Imagine's author didn't publish anything in the last 4 years, so I have little hope that this gets fixed :cry: ...

2petermad
Although Imagine is freeware, you should probably remove the license from your Imagine(32).ini ;).
Regarding the issue: Do you use Imagine's TC plugin? As already mentioned, the floating point exception only occurs with the 32 bit TC plugin but not with the 64 bit TC plugin or the standalone Imagine.exe.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Dalai
you should probably remove the license from your Imagine(32).ini
Thanks, so done now.
Do you use Imagine's TC plugin?
Yes, I almost always use Imagine as a plugin - and for testing I do what MVV instructed: press F3, I, Metadata button.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48025
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It happens when you call certain C/C++ dlls from a Delphi program: C/C++ ignores floating point exceptions and handles floating point errors by checking processor flags. Delphi instead reacts to floating point exceptions. The problem is that C/C++ dlls do not disable floating point exception handling, so it's the caller which has to do that.

However, TC cannot do that in case of Lister plugins, because they have their own window handle and do their own processing. So the author of imagine would have to call the function to disable floating point exception handling by himself.

This is done with function _control87 like this:
_control87( _MCW_EM, _MCW_EM );
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Unfortunately the author of imagine has not been reachable for several years :-(
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
milo1012
Power Member
Power Member
Posts: 1158
Joined: 2012-02-02, 19:23 UTC

Post by *milo1012 »

petermad wrote:I tried the 32bit version without plugins - still no problems (Win 7)
The same here:
I never had any FP-related crash with the program/plugin since I started using it, which should be at least 8 years by now, and I view EXIF infos quite regularly. And using plugins for the program doesn't trigger anything as well, obviously, since they are only used when you view the image format provided by the plugin.

And BTW, FP exceptions (true x87) are still machine dependent to some degree, meaning that on some CPUs an exception might be masked by the CPU itself, while a different processor might not do so.
petermad wrote:Unfortunately the author of imagine has not been reachable for several years
Are you sure about this, i.e. did you or somebody else try to contact him? He just overhauled his homepage/domain a few years ago, removing the Imagine support forum and switching to a summarized presentation of all his projects. I think the program development is just temporarily "frozen", since the he seems to have different things to do, and his resumee lists the program as still "being developed" since today.

And to quote the author from 2 years ago:
http://nyam.pe.kr/blog/entry/Imagine wrote: I'm preparing cross-platform version of Imagine.
...
TC plugins: PCREsearch and RegXtract
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2milo1012
did you or somebody else try to contact him?
I tried several times via the forum at http://www.nyam.pe.kr/phpBB3/ - wich is now not working for the Imagine pare anymore.
He just overhauled his homepage/domain a few years ago
I didn't know that - thanks a lot for that info!

I was even moderator on the BBS - peculiar that he didn't even notice me or others via the forum that he did that transition of http://www.nyam.pe.kr/

So there is still hope for Imagine development
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14743
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I just got my old XP-machine working, and can confirm that under Windows XP SP3 and TC9rc5 Imagine troes an invalid floating point execption.

I have also testet under Windows 8.1 - no problems there.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply