[Bug 35578] New: Mentor Pads Free Viewer crashes on install immediately
http://bugs.winehq.org/show_bug.cgi?id=35578 Bug ID: 35578 Summary: Mentor Pads Free Viewer crashes on install immediately Product: Wine Version: 1.6.1 Hardware: x86 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs(a)winehq.org Reporter: 415fox(a)gmail.com Classification: Unclassified Created attachment 47506 --> http://bugs.winehq.org/attachment.cgi?id=47506 backtrace Mentor Pads Free Viewer is available here: http://www.mentor.com/pcb/request?&fmpath=/pcb/downloads/pads-pcb-viewer/pad... They make you fill out a form with garbage then send a download link which is pretty annoying but nothing I can do about that. Okay, so you get a file called pads_viewer.zip (md5: 33506279ebee7e998b334376618177ff), unzip it and then run `wine PADS9.5_Viewer_mib.exe` It crashes with terminal output: wine: Unhandled page fault on read access to 0x00000000 at address 0x412cde (thread 003f), starting debugger... The install document says that it requires MSVC 2008 SP1. I installed that using winetricks. Backtrace attached. I'm using wine 1.6.1 installed by homebrew. My install is probably ok since many other programs work. I will also (try to) report this to Mentor Graphics. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, Installer Status|UNCONFIRMED |NEW URL| |http://www.mentor.com/pcb/r | |equest?&fmpath=/pcb/downloa | |ds/pads-pcb-viewer/pads-vie | |wer-form&id=39c508fb-c577-4 | |46b-9acc-1953b080a0fd Ever confirmed|0 |1 --- Comment #1 from Austin English <austinenglish(a)gmail.com> --- Confirming. You can reproduce this without a key: http://s3.mentor.com/pads-free-viewer/pads_viewer.zip austin(a)aw25 ~ $ sha1sum pads_viewer.zip 84ab79e8248b2287042b2a9cae3656ae1418f361 pads_viewer.zip austin(a)aw25 ~ $ du -h pads_viewer.zip 95M pads_viewer.zip austin(a)aw25 ~ $ wine --version wine-1.7.12-28-g0f2bed5 Protection ID doesn't detect any DRM on the installer itself: Scanning -> Z:\home\austin\p\PADS9.5_Viewer_mib.exe File Type : 32-Bit Exe (Subsystem : Win GUI / 2), Size : 96317744 (05BDB130h) Byte(s) -> File Appears to be Digitally Signed @ Offset 05BD9988h, size : 017A8h / 06056 byte(s) -> File has 96097672 (05BA5588h) bytes of appended data starting at offset 034400h [File Heuristics] -> Flag : 00000000000001001000000000000100 (0x00048004) [CompilerDetect] -> Visual C++ 9.0 (Visual Studio 2008) [!] File appears to have no protection or is using an unknown protection - Scan Took : 1.958 Second(s) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |focht(a)gmx.net Summary|Mentor Pads Free Viewer |Mentor Pads Free Viewer |crashes on install |crashes on install |immediately |immediately ('COMPUTERNAME' | |environment variable not | |present) --- Comment #2 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, confirming. Actually it's not obvious from trace log, you have to debug it to see what's going on :) The installer searches the process environment variables for 'COMPUTERNAME' and crashes badly due to crappy coding if this variable is not present. On Windows %COMPUTERNAME% is probably always present/set. Workaround: --- snip --- $ COMPUTERNAME=$HOSTNAME wine ./PADS9.5_Viewer_mib.exe --- snip --- Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 --- Comment #3 from michael <415fox(a)gmail.com> --- Thanks! Mentor Graphics summarily rejected my bug report saying "duh, we don't support Linux" -- meanwhile you (In reply to comment #2)
Hello folks,
confirming.
Actually it's not obvious from trace log, you have to debug it to see what's going on :)
The installer searches the process environment variables for 'COMPUTERNAME' and crashes badly due to crappy coding if this variable is not present.
On Windows %COMPUTERNAME% is probably always present/set.
Workaround:
--- snip --- $ COMPUTERNAME=$HOSTNAME wine ./PADS9.5_Viewer_mib.exe --- snip ---
Regards
Thanks! Mentor Graphics summarily closed my bug report with a big green SOLUTION icon saying "duh, we don't support Linux". Meanwhile you have solved the problem and exposed what is clearly some very poor QA practice on their part. I am going to go donate to Wine. Then I'm going to tell off some poor underpaid support engineer whose fault it definitely isn't that his company ships crappy code. Do you think that Wine should try to set all environment variables that Windows sets by default? Other than that I would think this issue is resolved. For future readers of this thread: Pads works decently under Wine but another issue I had was this "ishellbrowser" warning and it wouldn't open a file but instead failed silently (yay crappy code). Reading some other threads suggests that the problem is I had Wine configured as Windows 7 for which the file dialog implementation has some problems. Changing it to Windows XP solves that problem. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35578 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Mentor Pads Free Viewer |Multiple applications crash |crashes on install |on install/startup |immediately ('COMPUTERNAME' |('COMPUTERNAME' environment |environment variable not |variable not |present) |present)(Mentor Pads Free | |Viewer, Flightgear 3) --- Comment #4 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, I found another victim: 'Flightgear 3' Reported here: http://forum.winehq.org/viewtopic.php?f=8&t=22138 Download: http://ftp.icm.edu.pl/packages/flightgear/Windows/Setup%20FlightGear%203.0.0... --- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/FlightGear/bin/Win32 $ WINEDEBUG=+tid,+seh,+relay wine ./fgfs.exe >>log.txt 2>&1 ... 0024:trace:seh:raise_exception code=c0000005 flags=0 addr=0x402158 ip=00402158 tid=0024 0024:trace:seh:raise_exception info[0]=00000000 0024:trace:seh:raise_exception info[1]=00000000 0024:trace:seh:raise_exception eax=00000000 ebx=00000000 ecx=00000000 edx=78b554ac esi=00000001 edi=00ea3d48 0024:trace:seh:raise_exception ebp=018dfd80 esp=018df88c cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010202 0024:trace:seh:call_stack_handlers calling handler at 0xbfc5af code=c0000005 flags=0 ... Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00402158). ... Backtrace: =>0 0x00402158 in fgfs (+0x2158) (0x018dfd80) 1 0x00402736 in fgfs (+0x2735) (0x018dfe20) 2 0x7b864120 call_process_entry+0xb() in kernel32 (0x018dfe38) ... 0x00402158: movb 0x0(%ecx),%dl Modules: Module Address Debug info Name (69 modules) PE 240000- 283000 Deferred osg100-osgtext PE 290000- 357000 Deferred osg100-osgdb PE 360000- 36a000 Deferred ot13-openthreads PE 370000- 3de000 Deferred osg100-osgsim PE 400000- f42000 Export fgfs PE 18e0000- 1ae5000 Deferred osg100-osg PE 1af0000- 1c0b000 Deferred osg100-osgutil PE 1c10000- 1c51000 Deferred osg100-osgparticle PE 1c60000- 1cf8000 Deferred osg100-osgviewer PE 1d00000- 1d40000 Deferred osg100-osgga PE 10000000-10025000 Deferred crashrpt1402 PE 78aa0000-78b5f000 Deferred msvcr100 ... Threads: process tid prio (all id:s are in hex) ... 00000023 (D) C:\Program Files\FlightGear\bin\Win32\fgfs.exe 00000024 0 <== --- snip --- The app code: --- snip --- ... 00402134 PUSH 8000 00402139 MOV DWORD PTR SS:[EBP-4D4],EAX 0040213F CALL DWORD PTR DS:[<&KERNEL32.SetErrorMode>] 00402145 PUSH fgfs.00CEB73C ; ASCII "COMPUTERNAME" 0040214A CALL DWORD PTR DS:[<&MSVCR100.getenv>] 00402150 MOV ECX,EAX 00402152 ADD ESP,4 00402155 LEA ESI,DWORD PTR DS:[ECX+1] 00402158 MOV DL,BYTE PTR DS:[ECX] ; *boom* ... --- snip --- You can work around as follows: --- snip --- $ COMPUTERNAME=$HOSTNAME wine ./fgfs.exe --- snip --- $ sha1sum Setup\ FlightGear\ 3.0.0.exe c6b9b7576db3343fce2cedcb81692c3626a82e18 Setup FlightGear 3.0.0.exe $ du -sh Setup\ FlightGear\ 3.0.0.exe 1014M Setup FlightGear 3.0.0.exe $ wine --version wine-1.7.15-107-gf3488d0 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=35578 freddi34(a)yahoo.de changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |freddi34(a)yahoo.de --- Comment #5 from freddi34(a)yahoo.de --- I noticed this missing environment variable when with other applications (ruby scripts) and observed something interesting: When launched from a desktop launcher (.desktop) with exactly the same command line (wine "C:/Program Files/path/to/application.exe"), some environment variables are missing when compared to the environment variables eg. on Windows 7. When launched from wine cmd or gnome-terminal with the same command line, the environment variables are there! Noticeably, this one is missing when launched from the .desktop file: COMPUTERNAME The following from Windows 7 seem not supported by Wine at all (and probably not all important): DEVMGR_SHOW_DETAILS FP_NO_HOST_CHECK PSModulePath PUBLIC Path ProgramData -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |nerv(a)dawncrow.de --- Comment #6 from André H. <nerv(a)dawncrow.de> --- Created attachment 49555 --> https://bugs.winehq.org/attachment.cgi?id=49555 hack Could someone please try this patch....err...hack with the applications? -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Multiple applications crash |Multiple applications crash |on install/startup |on install/startup |('COMPUTERNAME' environment |('COMPUTERNAME' environment |variable not |variable not |present)(Mentor Pads Free |present)(Mentor Pads Free |Viewer, Flightgear 3) |Viewer, Flightgear 3, | |MaxQuant) --- Comment #7 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, this is also needed by 'MaxQuant', a very popular .NET 4.5 application from Proteomics field. --- snip --- $ wine "Z:\\home\\focht\\Downloads\\MaxQuant\\bin\\MaxQuantTask.exe" "Z:\\home\\focht\\Downloads\\data\\combined\\proc" "Configuring" "0" "Configuring (1/1)" "" "Process" "48" "Z:\\home\\focht\\Downloads\\data\\combined" "Z:\\home\\focht\\Downloads\\data\\mqpar.xml" ... 0009:Call KERNEL32.GetEnvironmentVariableW(011e68d4 L"COMPUTERNAME",0033efc8,00000080) ret=048004d6 0009:Ret KERNEL32.GetEnvironmentVariableW() retval=00000000 ret=048004d6 ... 0009:trace:seh:raise_exception code=c0000005 flags=0 addr=0x482ee46 ip=0482ee46 tid=0009 0009:trace:seh:raise_exception info[0]=00000000 0009:trace:seh:raise_exception info[1]=00000000 0009:trace:seh:raise_exception eax=00000000 ebx=0033f41c ecx=00000000 edx=0013cde8 esi=011e22a8 edi=0033f240 0009:trace:seh:raise_exception ebp=0033f248 esp=0033f15c cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010246 0009:trace:seh:call_vectored_handlers calling handler at 0x8e1bea code=c0000005 flags=0 ... Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. at Utils.Util.ExternalProcess.StartLog(String infoFolder, String name, String title, String description, DateTime starttime) at Utils.Util.ExternalProcess.Run(String[] args, Boolean debug) at MaxQuantTask.Program.Main(String[] args) --- snip --- $ wine --version wine-1.7.26-44-gb10b391 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 André H. <nerv(a)dawncrow.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #49555|0 |1 is obsolete| | --- Comment #8 from André H. <nerv(a)dawncrow.de> --- Comment on attachment 49555 --> https://bugs.winehq.org/attachment.cgi?id=49555 hack https://source.winehq.org/patches/data/107206 -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sebastian(a)fds-team.de -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 --- Comment #9 from Bruno Jesus <00cpxxx(a)gmail.com> --- Patch commited: http://source.winehq.org/git/wine.git/commitdiff/e404d7fea3f889ce273d74e5ec2... -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |e404d7fea3f889ce273d74e5ec2 | |74efe8a45296c Status|NEW |RESOLVED Component|-unknown |kernel32 Resolution|--- |FIXED --- Comment #10 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, indeed fixed by commit http://source.winehq.org/git/wine.git/commitdiff/e404d7fea3f889ce273d74e5ec2... Thanks André Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=35578 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #11 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 1.7.30. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org