News:

Congratulations!
 You've won the News Item Lottery! Your prize? Reading this news item! :)

[R3862 and up] Crash instead intro dialogue

Started by Václav, October 24, 2010, 07:42:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Václav

On Windows (XP) from release 3862 game crashes after loading - instead intro dialogue - in both compilations - SDL and GDI. That is very strange and bothering and .... bla bla bla. I would like to play with new versions but I have to stay on version 3859.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Dwachs

Does simutrans crash before the pak selection dialogue is shown?

Which pakset do you want to play?
Parsley, sage, rosemary, and maggikraut.

Václav

Pak128 - but I tested it also on pak64 - and there it is the same.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Dwachs

Not reproducible for me ???

Maybe deleting settings.xml (or renaming) could help?
Parsley, sage, rosemary, and maggikraut.

Václav

#4
I am sorry. Deleting of settings.xml caused language choose dialogue appeared and then still the same - but I am going to try else language than Czech.

-->
No change.

-->
But attempt to start game via Experimental ended with the same and also with message as is on attached picture - but else  is a start under experimental settings/compilation okay.

-->
Oops... I am sorry for I was not exact in the first post. There should be new game dialogue instead the intro dialogue. I forgot somebody can have opened playing with more than one pakset - and then intro dialogue is else one.

But else problem is still not solved. I thought it might be in graphics files. So I tested it with files of last release of classical main pak128 (it means no openpak128) - but result was the same.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Dwachs

I still do not understand at which point simutrans crashes.

Do you see the Banner (welcome and all the names of Hajo and so on)? and then New-World Dialogue?

Or does it crash right away?

Does it crash if you chose another language (for example English)?

Maybe your local installation is corrupted the one or other way. Does it crash if you install simutrans 102.2.2 in a fresh directory and put pak64 (or pak128) and new executable from the nightly page there?

Sorry for these question.
Parsley, sage, rosemary, and maggikraut.

Václav

#6
Quote from: Dwachs on October 27, 2010, 10:55:19 AM
Do you see the Banner (welcome and all the names of Hajo and so on)? and then New-World Dialogue?
No.

Quote
Or does it crash right away?
No - after disappearing of black screen. It means after loading of graphics.

Quote
Does it crash if you chose another language (for example English)?
Yes.

Quote
Maybe your local installation is corrupted the one or other way. Does it crash if you install simutrans 102.2.2 in a fresh directory and put pak64 (or pak128) and new executable from the nightly page there?
I have tested it - and result is the same.
I copied only one pakset into new dir - but did not changed settings in simuconf.tab for loading of only one pakset.
Game began loading of only one accessible graphics and after loading of graphics it showed dialogue for choosing graphical set - but immediately after it game crashed again.

I began thinking about some missing files in my PC.

Quote
Sorry for these question.
No need to sorry here.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

prissi

Did you deleted all files (not directories) in Own Files\simutrans ?

Václav

No.

I tested it on PC (also with Win XP) where I have quest to correct access to internet - with currently latest (3914) and with my superset of pak128 (it means pak128 upgraded upto nightly 1062 and with great many add-ons) and there game did not crash.

So I think it can be caused by some system files.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

prissi

NO, it is most likely caused by a defect default.sve or settings.xml or simiconf.tab in your local directory.

Please delecte every FILE in the directory "Own Files\Simutrans" but keep the folder.

Václav

Then I did it - deleted default.sve, settings.xml and settings-experimental.xml, so there remained dirs maps, save and screenshot - but result is still the same.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Václav

#11
I am sorry for double post - it can be merged with previous one.
I managed to extract at least one part of error message - see attached picture.

-->
Minor comment to file compile.log:
I see there great many warnings. And regardless I know (only) PHP and JS, those warnings seem be quite serious.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

An_dz

I'm getting a similar error but in Win7.

Right now i'm without Visual Studio. But I'll install it and post the debug I get.

DirrrtyDirk

As far as I know it is "normal" for Simutrans to compile with a bunch a warnings.
  
***** PAK128 Dev Team - semi-retired*****

prissi

You get about 176 warning in MSVC and about 30 in GCC. None of them are serious, otherwise they would be errors ...

Václav

Of course... but as I wrote elsewhere, functions cannot have two or more input parameters with the same name.

-->
In according to else topic of this forum I tried to start Simutrans with option -server and it runs less that crash. Regard to I use only single player it is sufficient for me but it is a bit uncomfortable to start the game via command line every time. So I would like to know how to start the game with -server instantly without using command line, idea is to create any file replacing duty of using of command line.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

An_dz

Create a shortcut, and on proprieties in first box add -server in the end with a space between Simutrans path.

I'll get a Visual Studio tomorrow maybe, then I'll debug it.

Václav

With -server it runs okay - as I wrote. But game calls I am connected with server - regardless I disabled all server options in simuconf.tab - and by the way, I use only singleplayer. So it is useless. And what is more important, it makes game slower.

So I would like to know how can I really disable connection with server.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

An_dz

OK I debugged it here, strangely the crash didn't happened right after load as normal, but some seconds later, anyway here's what I got:

Quote
Unhandled exception at 0x7c91b21a in Simutrans.exe: 0xC0000005: Access violation writing location 0x00000010.

The call stack:
Quote
ntdll.dll!7c91b21a()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
ntdll.dll!7c901046()
libbz2.dll!_lock_file(_iobuf * pf)  Line 237

Václav

I understand it ... but what affect will it have for me? Your work has to be source for changes to somebody could make it stable.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

An_dz

For you, right now, nothing, the message was for developers so they can see what's the problem.
I guessed that creating a new topic just to post the same error reported here is useless.

Milko

Hello

I do not know if this information can be useful.
I have two PCs, a PC is eight years old, the other PC was bought this year.
Under the old PC the game crashes and I have to use the "-server", the game with the new PC has no problem. Both PCs have installed WinXP and all the latest updates, the old PC has a firewall installed, the new PC did not install a firewall.

Giuseppe

Dwachs

Quote from: An_dz on November 08, 2010, 06:16:11 PM
The call stack:
Quote
ntdll.dll!7c91b21a()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
ntdll.dll!7c901046()
libbz2.dll!_lock_file(_iobuf * pf)  Line 237
Thank you for testing. However, the call stack does not look very informative. One cannot see, which simutrans function calls the offending code.

It seems like a problem with libbz2.lib. What lib and header did you take for compiling?

@Vaclav: Can you please reinstall bzip2.dll from

http://simutrans-germany.com/stn/dll/bzip2.dll

and test again?
Parsley, sage, rosemary, and maggikraut.

Václav


Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Dwachs

@Vaclav: Could you please test again with the newest nightlies? I do not have high hopes that they will work now, but maybe we are lucky.

Please take all the dll's from the nightly-page into your program directory. Please test both SDL and GDI versions. Thank you :)
Parsley, sage, rosemary, and maggikraut.

Václav

Tested both versions - GDI and SDL. Downloaded All DLL files (mgwz, SDL, SDL_mixer and bzip2). Still without change. I have tried to recopy them with files from their source too.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Milko

Hi

I was thinking about something .... if the "Nightly 3862" does not work while "Nightly 3859" is ok, it may be that the changes between one or the other version is the cause?

---
@VaclavMacurek
How do you realized the "nightly pak128 upgraded upto 1062"? I'm trying but I am not sure of the results ....
----

Giuseppe

Václav

Quote from: Milko on November 10, 2010, 02:21:48 PM
How do you realized the "nightly pak128 upgraded upto 1062"? I'm trying but I am not sure of the results ....
I am not sure what do you think. But I do my upgrades of pak128 graphics by following: I select all files (and dirs) inside main dir as they are showed by my file manager and simply copy into pak128 dir. No more, no less. But this is not related to problem of this topic - I think.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

prissi

Please never do this. Delete the pak128 folder and the extract the new folder. All addons go into the addon folder in your poersonal simutrans directory. Otherwise there could be a faulty pak which prevents loading.

Václav

Thanks - but than I would like to know how that personal pak128 addons dir should be named.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

prissi

My Documents\SImutrans\pak128\ <- here goes the personal stuff

Václav

I divorced addons into that dir ... but its result is I cannot start game for missing files - and game ends itself so fast I cannot see what files game wants.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

An_dz

Quote from: Dwachs on November 10, 2010, 07:19:39 AM
It seems like a problem with libbz2.lib. What lib and header did you take for compiling?
I didn't understood so good what you asked. Anyway I compiled a libbz2.lib I downloaded 2 days ago(08/nov). In debug after the error happen _file.c is opened, I opened the containing folder and its on Program Files\Microsoft Visual Studio 10.0\VC\crt\src. The error looks really strange.

----------------------------------------
As the error from my compiled Simutrans (r3951) is different from the downloaded Simutrans (r3950) I debugged it in a new instance of VS. I got this error:
Quote
Unhandled exception at 0x005f6909 in Simutrans.exe: 0xC000001D: Illegal Instruction.

With this Call Stack:
Quote
Simutrans.exe!005f6909()
[Frames below may be incorrect and/or missing, no symbols loaded for Simutrans.exe]
Simutrans.exe!005f48d0()
Simutrans.exe!005f4e29()
Simutrans.exe!005f593e()
Simutrans.exe!005f417d()
Simutrans.exe!005c0332()
Simutrans.exe!005a3903()
Simutrans.exe!00430caa()
msvcrt.dll!77c1a52e()
Simutrans.exe!0057860c()
Simutrans.exe!005785a7()
ntdll.dll!7c90eadc()
ntdll.dll!7c916b17()
ntdll.dll!7c916aa0()
ntdll.dll!7c9158ff()
ntdll.dll!7c91988f()
ntdll.dll!7c911028()
ntdll.dll!7c9118c0()
ntdll.dll!7c911028()
ntdll.dll!7c911028()
ntdll.dll!7c911028()
ntdll.dll!7c9101db()
ntdll.dll!7c9101db()
msvcrt.dll!77c0c3c9()
msvcrt.dll!77c0c3e7()
msvcrt.dll!77c0c42e()
Simutrans.exe!00579593()
Simutrans.exe!0044674c()
Simutrans.exe!0063c36c()
Simutrans.exe!0060ef00()
Simutrans.exe!00425ba6()
ntdll.dll!7c910435()
ntdll.dll!7c91043e()
ntdll.dll!7c910460()
kernel32.dll!7c8021b9()
Simutrans.exe!0040123b()
Simutrans.exe!00401288()
kernel32.dll!7c817077()

----------------------------------------
Also changed the EXE in debug folder to the downloaded one and debugged:
Quote
Unhandled exception at 0x005f6909 in Simutrans.exe: 0xC000001D: Illegal Instruction.
Quote
Simutrans.exe!005f6909()
[Frames below may be incorrect and/or missing, no symbols loaded for Simutrans.exe]
Simutrans.exe!005f48d0()
Simutrans.exe!005f4e29()
Simutrans.exe!005f593e()
Simutrans.exe!005f417d()
Simutrans.exe!005c0332()
Simutrans.exe!005a3903()
Simutrans.exe!005717bd()
Simutrans.exe!005b115a()
Simutrans.exe!0057587e()
msvcrt.dll!77c1a52e()
Simutrans.exe!0057860c()
Simutrans.exe!005785a7()
ntdll.dll!7c90eadc()
ntdll.dll!7c916b17()
ntdll.dll!7c916aa0()
ntdll.dll!7c9158ff()
ntdll.dll!7c9196df()
winmm.dll!76b2ad6f()
winmm.dll!76b2ad9c()
Simutrans.exe!00579593()
Simutrans.exe!0044674c()
Simutrans.exe!0063c36c()
Simutrans.exe!0060ef00()
ntdll.dll!7c910435()
ntdll.dll!7c91043e()
ntdll.dll!7c910460()
kernel32.dll!7c8021b9()
Simutrans.exe!0040123b()
Simutrans.exe!00401288()
kernel32.dll!7c817077()

----------------------------------------
Milko idea looks good, but prissi and Dwachs do you still have a copy of 3862 and 3859?

Dwachs

Quote
[Frames below may be incorrect and/or missing, no symbols loaded for Simutrans.exe]
Is that message from the debug session of your compiled program? Are there no debug symbols generated?? (Usually the debugger can translate these memory addresses 0x00something to actual functions in the source code).

Did you run Simutrans in Visual Studio (ie pressing F5 should run it) ? Or did you start it in the Explorer and started the debugger after the crahs?

Quote
Milko idea looks good, but prissi and Dwachs do you still have a copy of 3862 and 3859?
The problem is that none of the changes done between 3859 and 3862 look suspicious.

You can browse them at github:

[3859 - last working version] https://github.com/aburch/simutrans/commit/8a7f57eed4ed2ef1de0265ab7957a8bbcd463331
[3860] https://github.com/aburch/simutrans/commit/99cb74574f869c9f174051f3ce55a449b862f1e4
[3861] https://github.com/aburch/simutrans/commit/5cb33f0b9cd8d101285aa6bcca3ef8c3df0b7d42
[3862] https://github.com/aburch/simutrans/commit/a8976860499750d4d841914ce58c6e1e27754abb (look very innocent to me)
Parsley, sage, rosemary, and maggikraut.

Milko

#34
Hello

I was looking at the change to the file "dataobj / umgebung.h" made in the 3861 release
I'm not an expert, but it may be that, "," positioned after 7 cause problems?
In fact the deleted row ("DATE_FMT_GERMAN = 4") did not have "," being the last line before "}," while the last row that was added (" DATE_FMT_GERMAN_NO_SEASON = 7 ") has been a comma more.

I try to look to the rest of the changes.

EDIT1:
simgraph16.cc: line 186 disp_actual_width is a KOORD_VAL, in line 543 function display_get_width(void) return disp_actual_width (line 545) but return type function is sint16 (line 543). So there is a cast or conversion type, but the conversion is correct?

Giuseppe