http://bugs.winehq.org/show_bug.cgi?id=30563
Bug #: 30563 Summary: WinBuilder v082: Error "Invalid floating point operation." occuring when running application. Product: Wine Version: 1.5.2 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: ieframe AssignedTo: wine-bugs@winehq.org ReportedBy: linards.liepins@gmail.com Classification: Unclassified
Created attachment 39985 --> http://bugs.winehq.org/attachment.cgi?id=39985 Error log.
See attached Error log.
http://bugs.winehq.org/show_bug.cgi?id=30563
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|UNCONFIRMED |RESOLVED URL| |http://reboot.pro/files/fil | |e/4-winbuilder/ CC| |focht@gmx.net Component|ieframe |mshtml Resolution| |DUPLICATE
--- Comment #1 from Anastasius Focht focht@gmx.net 2012-05-01 07:22:15 CDT --- Hello,
dupe of bug 30465
For a quick fix use "mozjs.dll" from http://bugs.winehq.org/attachment.cgi?id=39850 (compressed). Overwrite the original file in your app's WINEPREFIX with that.
For example in default WINEPREFIX: ~/drive_c/windows/system32/gecko/1.5/wine_gecko/mozjs.dll
$ du -sh WinBuilder.exe 928K WinBuilder.exe
$ sha1sum WinBuilder.exe 0fb46d50b0bd0db7e79ed8aa713a0257a9d94bc1 WinBuilder.exe
$ wine --version wine-1.5.3-40-g9080f3c
Regards
*** This bug has been marked as a duplicate of bug 30465 ***
http://bugs.winehq.org/show_bug.cgi?id=30563
--- Comment #2 from Linards linards.liepins@gmail.com 2012-05-01 08:02:54 CDT --- Hmm ... I created 1.5/wine-gecko/ direcotry in the path you wrote .. putted there your provided .dll ... and still .. I got install error and obvously almost no control is visible / drawed in the WinBuilder GUI and app is unusable. Any other option to suggest in my case?
Also m\note that I am using Fedora 16, that is not tested to correctly package a Gecko ... :/
http://bugs.winehq.org/show_bug.cgi?id=30563
Linards linards.liepins@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|DUPLICATE |
--- Comment #3 from Linards linards.liepins@gmail.com 2012-05-01 08:08:14 CDT --- The suggested fix do not apper to work...
http://bugs.winehq.org/show_bug.cgi?id=30563
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|mshtml |-unknown Depends on| |30465 Ever Confirmed|0 |1
--- Comment #4 from Anastasius Focht focht@gmx.net 2012-05-01 09:36:29 CDT --- Hello,
its seems there are multiple problems here (technically different bugs).
The fix from bug 30465 makes the app more stable in first place. With current Gecko it crashes a lot in "mozjs.dll" and "xul.dll" which is not seen in that frequency if the fix is applied.
The HTML-based GUI is completely usable for me so you must have done something wrong if it shows garbage or missing UI elements. In the "proxy settings" you have to set "ping" to "http" otherwise the app requests raw sockets.
Also make sure you don't fall into Wine 64/32 bits trap (shared WoW). Depending on your initial WINEPREFIX setup you need to put the dll in different places, "system32" (pure 32 bits wineprefix, WINEARCH=win32) vs. "syswow64" (32 bits folder in 64 bits wineprefix).
This "Invalid floating point operation." is just a generic error mechanism to indicate _something_ went wrong (just like VB6 inexact float result exception).
Regards
http://bugs.winehq.org/show_bug.cgi?id=30563
Ulrik Dickow u.dickow@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |u.dickow@gmail.com
--- Comment #5 from Ulrik Dickow u.dickow@gmail.com 2012-05-02 07:56:04 CDT --- (In reply to comment #1)
For example in default WINEPREFIX: ~/drive_c/windows/system32/gecko/1.5/wine_gecko/mozjs.dll
A ".wine/" was missing here, i.e. the path is (on x86 Linux = 32-bit):
~/.wine/drive_c/windows/system32/gecko/1.5/wine_gecko/mozjs.dll
Linards: you should NOT create any directory yourself. It has already been created by wine. Gecko-installation happens automatically by wine in Fedora 16 if you've put the Gecko MSI in /usr/share/wine/gecko yourself first (as said on http://wiki.winehq.org/Gecko). Remember to use the 1.5 Gecko for Wine 1.5.x.
As for the errors produced by the original mozjs.dll, the "Invalid floating point operation" message was quite on the spot, caused by an attempt to convert a too large floating point number to an integer. This might happen at other places in the wine code too, like it did in the for me completely unusable wine 1.3.24 hit by bug 27776, fortunately quickly fixed in 1.3.25.
http://bugs.winehq.org/show_bug.cgi?id=30563
--- Comment #6 from Anastasius Focht focht@gmx.net 2012-05-02 08:26:29 CDT --- Hello Ulrik,
FYI the fix from bug 30465 does not make the "Invalid floating point operation" message completely disappear here hence I wrote "makes the app more stable in first place". It's still encountered sometimes, although with less frequency.
Regards
http://bugs.winehq.org/show_bug.cgi?id=30563
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |jscript
--- Comment #7 from Anastasius Focht focht@gmx.net 2012-05-02 09:21:10 CDT --- Hello,
good news I found the problem ;-) The issue is pretty much the same as bug 30465 but it's Wine's own jscript engine that needs to be fixed.
Consider the following snippet:
http://source.winehq.org/git/wine.git/blob/c9c8c6165eafc91e0c1c11fe5563db613...
--- snip --- 414 static inline void num_set_val(VARIANT *v, DOUBLE d) 415 { 416 if(d == (DOUBLE)(INT)d) { 417 V_VT(v) = VT_I4; 418 V_I4(v) = d; 419 }else { 420 V_VT(v) = VT_R8; 421 V_R8(v) = d; 422 } 423 } --- snip ---
The application is fully usable with both parts fixed.
GUI and downloads are stable.
Regards
http://bugs.winehq.org/show_bug.cgi?id=30563
--- Comment #8 from Anastasius Focht focht@gmx.net 2012-05-02 09:34:00 CDT --- Hello,
for reference some debugging information.
--- snip --- Wine-dbg>bt Backtrace: =>0 0x7d0947b1 num_set_val+0x12(v=0x8fc190, d=1335966126433.000000) [/home/focht/projects/wine/wine-git/dlls/jscript/jscript.h:416] in jscript (0x008fbf50) 1 0x7d0977a3 Date_getTime+0xb4(ctx=0x357dad8, jsthis=0x8fc03c, flags=0x1, dp=0x8fc044, retv=0x8fc190, ei=0x8fc2d0) [/home/focht/projects/wine/wine-git/dlls/jscript/date.c:1064] in jscript (0x008fbf90) 2 0x7d09dc2f invoke_prop_func+0x139(This=0x37fa700, jsthis=0x37fa700, prop=0x37fa7b0, flags=0x1, dp=0x8fc1a0, retv=0x8fc190, ei=0x8fc2d0, caller=(nil)) [/home/focht/projects/wine/wine-git/dlls/jscript/dispex.c:400] in jscript (0x008fc080) 3 0x7d09ff06 jsdisp_call+0xd6(disp=0x37fa700, id=0x2, flags=0x1, dp=0x8fc1a0, retv=0x8fc190, ei=0x8fc2d0) [/home/focht/projects/wine/wine-git/dlls/jscript/dispex.c:1065] in jscript (0x008fc0d0) 4 0x7d0a00c2 disp_call+0xbf(ctx=0x357dad8, disp=0x37fa700, id=0x2, flags=0x1, dp=0x8fc1a0, retv=0x8fc190, ei=0x8fc2d0) [/home/focht/projects/wine/wine-git/dlls/jscript/dispex.c:1098] in jscript (0x008fc160) 5 0x7d0a3c58 interp_call_member+0x159(ctx=0x37e1d80) [/home/focht/projects/wine/wine-git/dlls/jscript/engine.c:1050] in jscript (0x008fc1d0) 6 0x7d0a7ed3 enter_bytecode+0x10d(ctx=0x357dad8, code=0x3598c70, func=0x3598c94, ei=0x8fc2d0, ret=0x8fc278) [/home/focht/projects/wine/wine-git/dlls/jscript/engine.c:2570] in jscript (0x008fc230) 7 0x7d0a828b exec_source+0x1ef(ctx=0x37e1d80, code=0x3598c70, func=0x3598c94, from_eval=0, ei=0x8fc2d0, retv=(nil)) [/home/focht/projects/wine/wine-git/dlls/jscript/engine.c:2647] in jscript (0x008fc2a0) 8 0x7d0afa8c exec_global_code+0xbf(This=0x3541248, code=0x3598c70) [/home/focht/projects/wine/wine-git/dlls/jscript/jscript.c:112] in jscript (0x008fc320) ... 11 0x7d45b20f parse_extern_script+0x169(script_host=0x3598870, src="http://www.statcounter.com/counter/counter_xhtml.js") [/home/focht/projects/wine/wine-git/dlls/mshtml/script.c:673] in mshtml (0x008fc4a0) 12 0x7d45b3c2 parse_script_elem+0xcb(script_host=0x3598870, nsscript=0x3599e60) [/home/focht/projects/wine/wine-git/dlls/mshtml/script.c:712] in mshtml (0x008fc4f0) 13 0x7d45ba00 doc_insert_script+0x127(window=0x1954340, nsscript=0x3599e60) [/home/focht/projects/wine/wine-git/dlls/mshtml/script.c:831] in mshtml (0x008fc540) 14 0x7d425717 run_insert_script+0x1b2(doc=0x357bb88, script_iface=0x3599e60, parser_iface=0x354b360) [/home/focht/projects/wine/wine-git/dlls/mshtml/mutation.c:318] in mshtml (0x008fc5a0) 15 0x7d425b2f nsRunnable_Run+0x39(iface=0x354d390) [/home/focht/projects/wine/wine-git/dlls/mshtml/mutation.c:404] in mshtml (0x008fc5d0) 16 0x69f9f115 in xul (+0x35f114) (0x008fc650) 17 0x7d426414 nsDocumentObserver_AttemptToExecuteScript+0x11c(iface=0x357bcc4, aContent=0x3599e20, aParser=0x354b360, aBlock="") [/home/focht/projects/wine/wine-git/dlls/mshtml/mutation.c:650] in mshtml (0x008fc6a0) 18 0x69fb7aac in xul (+0x377aab) (0x0354b3d8) 19 0x6af62ca4 in xul (+0x1322ca3) (0x6af62c28) 20 0x6a28700c in xul (+0x64700b) (0x6a287048) 21 0x8910245c (0x891cec83) ... --- snip ---
Relevant disassembly:
--- snip --- 7D29479F 55 PUSH EBP 7D2947A0 89E5 MOV EBP,ESP 7D2947A2 83EC 10 SUB ESP,10 7D2947A5 8B45 0C MOV EAX,DWORD PTR SS:[EBP+0C] 7D2947A8 8945 F8 MOV DWORD PTR SS:[EBP-8],EAX 7D2947AB 8B45 10 MOV EAX,DWORD PTR SS:[EBP+10] 7D2947AE 8945 FC MOV DWORD PTR SS:[EBP-4],EAX 7D2947B1 DD45 F8 FLD QWORD PTR SS:[EBP-8] 7D2947B4 D97D F6 FSTCW WORD PTR SS:[EBP-0A] 7D2947B7 0FB745 F6 MOVZX EAX,WORD PTR SS:[EBP-0A] 7D2947BB B4 0C MOV AH,0C ; truncate 7D2947BD 66:8945 F4 MOV WORD PTR SS:[EBP-0C],AX 7D2947C1 D96D F4 FLDCW WORD PTR SS:[EBP-0C] ; new CW = 0x0C72 7D2947C4 DB5D F0 FISTP DWORD PTR SS:[EBP-10] 7D2947C7 D96D F6 FLDCW WORD PTR SS:[EBP-0A] ; old CW = 0x1372 7D2947CA 8B45 F0 MOV EAX,DWORD PTR SS:[EBP-10] 7D2947CD 8945 F0 MOV DWORD PTR SS:[EBP-10],EAX ... --- snip ---
FPU register context when the exception is triggered (restore of old CW 0x1372):
--- snip --- ST0 valid 1.3359666621630000000e+12 ST1 empty 0.0 ST2 empty 0.0 ST3 empty 0.0 ST4 empty 1.0000000000000000000 ST5 empty 0.0 ST6 empty 0.0 ST7 empty 2447031.0000000000000 3 2 1 0 E S P U O Z D I FST 0D8A Cond 1 0 0 0 Err 1 0 1 0 0 0 0 1 (EQ) FCW 0C72 Prec ZERO,24 Mask 1 1 0 0 1 0 Last cmnd 0023:7D2947C4 jscript.7D2947C4 --- snip ---
Regards
http://bugs.winehq.org/show_bug.cgi?id=30563
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com
--- Comment #9 from Jacek Caban jacek@codeweavers.com 2012-05-02 09:50:37 CDT --- Thanks for debugging. I already had the patch pending in my tree, sorry for not sending it earlier. It's on its way now:
http://source.winehq.org/patches/data/85951
http://bugs.winehq.org/show_bug.cgi?id=30563
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |5b83abced78628763262fa10a2f | |82baa15260e03 Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #10 from Anastasius Focht focht@gmx.net 2012-05-02 15:08:06 CDT --- Hello,
the Wine jscript side of this bug is fixed with commit http://source.winehq.org/git/wine.git/commitdiff/5b83abced78628763262fa10a2f...
Thanks Jacek
You only need the fixed "mozjs.dll" from bug 30465 now.
I tested all download profiles (minimal, recommended) ... pretty stable, no crashes/message boxes anymore.
Though building Windows PE images with this tool ("play") won't work by design due to Wine limitations (registry hives).
If you still fail to get a proper Wine-Gecko installation for your distro please refer to Wine user forums for support.
Regards
http://bugs.winehq.org/show_bug.cgi?id=30563
Bug 30563 depends on bug 30465, which changed state.
Bug 30465 Summary: BridgeCentral: Invalid floating point operation in mozjs.dll (fldcw in JSDOUBLE_IS_INT32) http://bugs.winehq.org/show_bug.cgi?id=30465
What |Old Value |New Value ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
http://bugs.winehq.org/show_bug.cgi?id=30563
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #11 from Alexandre Julliard julliard@winehq.org 2012-05-11 13:22:03 CDT --- Closing bugs fixed in 1.5.4.