https://bugs.winehq.org/show_bug.cgi?id=45943
Bug ID: 45943 Summary: ViaCAD version 10 -- open or save a drawing -- get a crash Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: programs Assignee: wine-bugs@winehq.org Reporter: pop.horea@yahoo.com Distribution: ---
Created attachment 62477 --> https://bugs.winehq.org/attachment.cgi?id=62477 Crash report when saving drawing in ViaCAD version 10
Good day !
I have ViaCAD 3D version 8 witch runs very well. I've purchased ViaCAD 3D version 10 and when I want to open or save a drawing I get a crash and application closes after backtrace. I've attached a backtrace when trying to ''Save As''. The same when opening existing drawing. Application is running fine when designing. I use Linux Ubuntu 18.04 LTS and the wine that came with it. Also runned update, upgrade.
Please do something.
https://bugs.winehq.org/show_bug.cgi?id=45943
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |3.0 Component|programs |-unknown
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Please test with latest wine 3.17 first.
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #2 from Pop Horea-Vasile pop.horea@yahoo.com --- Today i reinstalled ubuntu 18.04. But before i've installed wine from the link below:
https://wiki.winehq.org/Ubuntu
and it does not lunch ViaCAD at all.
https://bugs.winehq.org/show_bug.cgi?id=45943
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |xerox.xerox2000x@gmail.com
--- Comment #3 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Pop Horea-Vasile from comment #2)
Today i reinstalled ubuntu 18.04. But before i've installed wine from the link below:
https://wiki.winehq.org/Ubuntu
and it does not lunch ViaCAD at all.
Do you mean that in wine-3.17 it doesn`t start at all? (That version is what you get when doing sudo apt-get install --install-recommends winehq-devel I guess)
Have you tried if ``winetricks vcrun2010`` changes anything?
Also, it might be useful to run the program with
WINEDEBUG=+relay,+tid,+seh wine ViaCAD3D.exe >> log 2>&1
and attach the (bzipped2) log to this file
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #4 from Pop Horea-Vasile pop.horea@yahoo.com --- ''winetricks vcrun2010'' -- solved teh problems. I can open and save as drawings. Thank you Louis Lenders. Please write here your paypal address to pay you 2.3 US dollars -- a beer.
https://bugs.winehq.org/show_bug.cgi?id=45943
Louis Lenders xerox.xerox2000x@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |msvcrt
--- Comment #5 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Pop Horea-Vasile from comment #4). Please write here
your paypal address to pay you 2.3 US dollars -- a beer.
hahaha, better idea: you could help by attaching info so developers can have a look at it: set msvcr100.dll back to builtin in winecfg, then run
WINEDEBUG=+msvcrt wine ViaCAD3D.exe >> log 2>&1
invoke crash, and attach the (bzipped2) log to this bugreport. (you can then set msvcr100 back to native to use your program). Thanks in advance
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #6 from Pop Horea-Vasile pop.horea@yahoo.com --- ''you can then set msvcr100 back to native to use your program''
I don't know how to do that. It's almoust 10 PM here. House rule: in bed at that time. If you write me here how to, I will do, first thing in the morning.
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #7 from Pop Horea-Vasile pop.horea@yahoo.com --- ''set msvcr100.dll back to builtin in winecfg'' how to do that ?
https://bugs.winehq.org/show_bug.cgi?id=45943
Pop Horea-Vasile pop.horea@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED
--- Comment #8 from Pop Horea-Vasile pop.horea@yahoo.com --- Fixed with winetricks vcrun2010.
https://bugs.winehq.org/show_bug.cgi?id=45943
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Ever confirmed|0 |1 Status|RESOLVED |REOPENED
--- Comment #9 from Nikolay Sivov bunglehead@gmail.com --- That's not a fix.
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #10 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Pop Horea-Vasile from comment #7)
''set msvcr100.dll back to builtin in winecfg'' how to do that ?
Open terminal and run ``wine winecfg``, then under the ``Libraries`` tab, edit msvcr100 to ``builtin`` and then run
WINEDEBUG=+msvcrt wine "C:\Program Files\Punch! Software\ViaCAD 3D 10\exe\ViaCAD3D.exe" ViaCAD3D.exe >> log 2>&1
invoke crash, and attach the (bzipped2) log to this bugreport.
After that run ``wine winecfg`` and you can then set msvcr100 back to native to use your program. Thanks in advance
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #11 from Pop Horea-Vasile pop.horea@yahoo.com --- I've done. But I don't know where this log is located.
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #12 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Pop Horea-Vasile from comment #11)
I've done. But I don't know where this log is located.
In the directory where you are atm
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #13 from Pop Horea-Vasile pop.horea@yahoo.com --- I don't understand: directory where you are atm. i've looked in wine, ViaCAD directory, exe, but nothing
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #14 from Pop Horea-Vasile pop.horea@yahoo.com --- There is a .log file modified about an hour ago but it has 81.1 MB. It's too big to attche here.
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #15 from Louis Lenders xerox.xerox2000x@gmail.com --- (In reply to Pop Horea-Vasile from comment #14)
There is a .log file modified about an hour ago but it has 81.1 MB. It's too big to attche here.
``bzip2 log`` will shrink it to log.bz2, probably <5Mb
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #16 from Pop Horea-Vasile pop.horea@yahoo.com --- Created attachment 62490 --> https://bugs.winehq.org/attachment.cgi?id=62490 Log of winetricks visual c from microsoft
Only log I could find.
https://bugs.winehq.org/show_bug.cgi?id=45943
Pop Horea-Vasile pop.horea@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution|--- |FIXED
--- Comment #17 from Pop Horea-Vasile pop.horea@yahoo.com --- vcrun
https://bugs.winehq.org/show_bug.cgi?id=45943
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |--- Status|RESOLVED |REOPENED
--- Comment #18 from Nikolay Sivov bunglehead@gmail.com --- Reopening.
https://bugs.winehq.org/show_bug.cgi?id=45943
Piotr Caban piotr.caban@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |piotr.caban@gmail.com
--- Comment #19 from Piotr Caban piotr.caban@gmail.com --- The application is truncating pointer: Call msvcr100._wfopen(11586740 L"C:\users\piotr\Temp\05fcttmp.fdl",115612d0 L"wb") ret=140497123 Ret msvcr100._wfopen() retval=7fac70a367a0 ret=140497123 Call msvcr100.fwrite(00232e70,00000001,00000001,70a367a0) ret=1404801bd trace:seh:NtRaiseException code=c0000005 flags=0 addr=0x7bc45d70 ip=7bc45d70 tid=002a
The FILE* returned in this case is part of _iob structure (static variable in the dll). Loading builtin dll in first 4gb of memory should hide/fix this bug. I haven't done proper testing but it looks like Windows is loading the dll in first 4gb of memory.
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #20 from Pop Horea-Vasile pop.horea@yahoo.com --- How to ?
https://bugs.winehq.org/show_bug.cgi?id=45943
--- Comment #21 from Piotr Caban piotr.caban@gmail.com --- I've decided to run one more test to make sure the load address of the dll really matters. I've removed signature from native msvcr100.dll and relocated the dll. After doing so the application crashes on Windows in the same way as in Wine.
I'm not familiar with parts of wine that are responsible for loading the dlls so I don't know how hard it is to fix. It also makes sense to report the bug to ViaCAD developers since there's no guarantee that the dll will be loaded under preferred address.