Crash in some parts of Microsoft Flight Simulator 2000

Questions about Wine on Linux
Locked
utente3454
Level 1
Level 1
Posts: 8
Joined: Sat Jul 29, 2017 7:30 am

Crash in some parts of Microsoft Flight Simulator 2000

Post by utente3454 »

Hello, I am trying to use this simulator on linux, but I am encountering some issues.
I managed to start it by removing the cd protection (safedisc), now I can even start a flight session, but there are still some problems.
When I try to enter the tutorial section from the main menu, the game crashes. I attached the backtrace. I don't have much experience in doing particular steps to make a program work under wine, is there someone with enough experience that can point me in the right direction?

Thank you for your time
Attachments
backtrace.txt.zip
(3.34 KiB) Downloaded 104 times
utente3454
Level 1
Level 1
Posts: 8
Joined: Sat Jul 29, 2017 7:30 am

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by utente3454 »

I don't know if I'm correct, but by looking at the trace the problem should lie in the function vsnprintf in libwine.so.1...but the original exe doesn't use this function, does it? It this already a translated function call? If yes, how can I trace back the original?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by Bob Wya »

You'd also need to provide some terminal output prior to that backtrace - see WineHQ FAQ: 10.1.1 How can I get a debugging log (a.k.a. terminal output)?
Without that context - a backtrace isn't terribly useful...

You'll probably find the issue is with the API call to: EnumPrintProcessorsA...

Ta
Bob
utente3454
Level 1
Level 1
Posts: 8
Joined: Sat Jul 29, 2017 7:30 am

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by utente3454 »

Thank you for your answer.
I attached the terminal output.
As soon as I click on the part that crashes this shows up:

Code: Select all

wine: Unhandled page fault on write access to 0x00000003 at address 0xf753893d (thread 0009), starting debugger...
Attachments
log.txt.zip
(3.6 KiB) Downloaded 106 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by Bob Wya »

@utente3454

Could you try running your game with:

Code: Select all

export WINEDEBUG=+winspool
wine start 'C:\Program Files\Microsoft Games\FS2000\FS2000.EXE' &>log.txt
Also try:

Code: Select all

export WINEDEBUG=+winspool
winecfg
Looks like your Flight Simulator is trying to enumerate your printers... Because reasons... Hmmm... :roll:

Ta
Bob
utente3454
Level 1
Level 1
Posts: 8
Joined: Sat Jul 29, 2017 7:30 am

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by utente3454 »

I attached both the logs. The second printer (PDF) is because I installed cups-pdf to print through wine (it doesn't work btw). This problem was also present before (with only the LAN printer). I'll try to delete all printers and see if this results into anything.
EDIT: I deleted both the printers but it still crashes :cry:
Attachments
log_flight_simulator.txt.zip
(807 Bytes) Downloaded 107 times
log_winecfg.txt.zip
(412 Bytes) Downloaded 90 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by Bob Wya »

@utente3454

The call:

Code: Select all

trace:winspool:EnumPrintProcessorsW (L"\49d0\001d", L"\c0d83\b5da\7ec9\2110\7c44\00ee\0003\0081", 3392524, (nil), -40673452, 0x300ee, (nil))
looks rather dubious... I'm sure \49d0 is an obscure Chinese character! :roll:
Plus the output buffer pcReturned=NULL... Level=3392524 instead of the required 1. etc. , etc.

What's the output with:

Code: Select all

export WINEDEBUG=+winspool,+localspl
wine start 'C:\Program Files\Microsoft Games\FS2000\FS2000.EXE' &>log.txt
Ta
Bob
utente3454
Level 1
Level 1
Posts: 8
Joined: Sat Jul 29, 2017 7:30 am

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by utente3454 »

Strange, my language is set to Italian...
Attachments
log.txt.zip
(523 Bytes) Downloaded 101 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by Bob Wya »

utente3454 wrote:Strange, my language is set to Italian...
Well at least on the bright side your borked printer setup isn't crashing the game anymore... :lol:

Any backtrace generated when the game crashes? Or is that it?

As you've turned your system into a moving target...
Try running the game again - but with these WINEDEBUG channels enabled...

Code: Select all

export WINEDEBUG=+loaddll,fixme+all,warn+all,err+all
wine start 'C:\Program Files\Microsoft Games\FS2000\FS2000.EXE' &>log.txt
Ta
Bob
utente3454
Level 1
Level 1
Posts: 8
Joined: Sat Jul 29, 2017 7:30 am

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by utente3454 »

Ok now I am experiencing some weird issues...
The game has 4 options in the main menu (attached image). Before that, a splash screen (basically a video from the main folder, MSLOGO.AVI) is played. When I try then to click on the first three options (the third one works starting from wine 2), the game crashes. The first two buttons show a little frame with other videos, and the third shows a window with the flight lessons. All three seem to give the same error.
NOW, if I delete MSLOGO.AVI (I did that because I was getting tired of it), the buttons work!! BUT, the third one works only if I didn't previously clicked any of the first two. So I'll attach the log with all those options in this scenario (splash screen video removed, first button clicked and then third button clicked with consequent crash).

EDIT: now it seems that the third button works even in that sequence, I don't know why...the crashes are not deterministic anymore
Attachments
log.txt.zip
(14.57 KiB) Downloaded 106 times
main_menu.png
main_menu.png (243.27 KiB) Viewed 5152 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by Bob Wya »

@utente3454

Try running the game with these overrides:

Code: Select all

winetricks -q msacm32
winetricks -q mfc42
Set your Wineprefix to Windows 2000:

Code: Select all

winetricks win2k
Bob
utente3454
Level 1
Level 1
Posts: 8
Joined: Sat Jul 29, 2017 7:30 am

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by utente3454 »

I tried that (mfc42 was already installed), but nothing changed.
I noted that it crashes if I start a "lesson". if I start it using the dedicated video card (DRI_PRIME=1 wine start ecc...), it seems to work fine (but still sometimes crashes when I click first + third button in the main menu). Can all these problems be caused by driver issues? I read in the logs that some functionalities were missing (like opengl 3.1 or opengl 4). I have an Intel HD 4000 and a AMD 7670M both using MESA 17 drivers. It is a strange requirement though, given the fact that this game could also run on windows 95 :o
I guess drivers are also the cause of blurry and purple-ish text (see image). This particular problem is also present under virtualbox running windows xp (I read somewhere Virtualbox shares with wine some parts).

P.S. As you see from the image, in all the textboxes that are scrollable I get the first line repeated multiple times and this on the terminal:

Code: Select all

fixme:edit:EDIT_EM_FmtLines soft break enabled, not implemented
Should I file a bug for this?
Attachments
menu.png
menu.png (217.96 KiB) Viewed 5109 times
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by Bob Wya »

utente3454 wrote:I tried that (mfc42 was already installed), but nothing changed.
I noted that it crashes if I start a "lesson". if I start it using the dedicated video card (DRI_PRIME=1 wine start ecc...), it seems to work fine (but still sometimes crashes when I click first + third button in the main menu). Can all these problems be caused by driver issues? I read in the logs that some functionalities were missing (like opengl 3.1 or opengl 4). I have an Intel HD 4000 and a AMD 7670M both using MESA 17 drivers. It is a strange requirement though, given the fact that this game could also run on windows 95 :o
I guess drivers are also the cause of blurry and purple-ish text (see image). This particular problem is also present under virtualbox running windows xp (I read somewhere Virtualbox shares with wine some parts).

P.S. As you see from the image, in all the textboxes that are scrollable I get the first line repeated multiple times and this on the terminal:

Code: Select all

fixme:edit:EDIT_EM_FmtLines soft break enabled, not implemented
Should I file a bug for this?
Yes...
File lots of bugs! One per issue...
People tend not to bother with these older applications - then bugs just never get fixed!
Get some more eyeballs on the problems... :lol:

I bet the button crashing issue is a bug in Wine.
If it happened every time I'd blame graphics drivers issues - but not if it's intermittent like that...
GPU driver issues - tend to just led to rendering corruption issues anyway...
The Intel drivers can be a bit flakey - but the AMD RadeonSI driver is pretty solid!

Bob
utente3454
Level 1
Level 1
Posts: 8
Joined: Sat Jul 29, 2017 7:30 am

Re: Crash in some parts of Microsoft Flight Simulator 2000

Post by utente3454 »

I filed four bugs for now:

https://bugs.winehq.org/show_bug.cgi?id=43493
https://bugs.winehq.org/show_bug.cgi?id=43494
https://bugs.winehq.org/show_bug.cgi?id=43495
https://bugs.winehq.org/show_bug.cgi?id=43496

For bug #43494 and #43496 I found a workaround: starting the game in windowed mode (emulate virtual desktop, something like that in winecfg). Is it possible to do it from the command line, so I can write a little startup script?

I still have to file the buttons bug, and some other crashes that seems to depend on which graphics card I use. I'll do some more testing.

BTW, thank you for your help!
Locked