News:

Want to praise Simutrans?
Your feedback is important for us ;D.

[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.

An_dz

Quote from: Dwachs on November 11, 2010, 06:21:15 AM
Is that message from the debug session of your compiled program? Are there no debug symbols generated??
No it's the debug from the downloaded EXE.

Quote from: Dwachs on November 11, 2010, 06:21:15 AM
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?
After the crash in the first row and run inside on second.

I'm testing here and trying to find the problematic changed file.

prissi

Illegal instruction rather points to some broken binary.

An_dz

OK now I'm totally lost, I deleted my config folder from the debug folder (didn't realized I copied it), and now r3951 works great, but the download from nightly page give me errors. I can't track the bug, my compile works and the available download don't.

Milko

Hi

We can try to "uninstall" the three changes from 3860 - 61 - 62, to identify which is the change that creates the problem and leave it on hold? is already a month that the nightly (for some) are no longer utilized.

Giuseppe

Dwachs

Giuseppe, can you please post the simu.log-file if you start simutrans with '-log 1 -debug 3' ? And the simu-server.log file when you start with '-log 1 -debug 3 -server' ?

Parsley, sage, rosemary, and maggikraut.

An_dz

Quote from: Milko on November 16, 2010, 10:37:40 AM
We can try to "uninstall" the three changes from 3860 - 61 - 62, to identify which is the change that creates the problem and leave it on hold?
That's what I was trying to do, cause my PC also have this problem. I've downloaded r3859, r3860 and r3951, but when I compiled Simutrans by myself it works, if I download the exe from the site it crashes.

And I've uploaded my logs. Maybe it can help too.

Dwachs

#41
thank you.

The crash happens somewhere between simmain.cc, line 926, call to welt->reset_timer(); (last entry in crash log file) and simmain.cc, line 973, call to new-world-gui, which is the next entry in the server log file.

Edit: Could you post a log file if you start simutrans with a specific savegame (ie '-load yoursavegame' ) ?

Edit2: Please test with the next nightly (rev >= 3963) and post the log file. I added some debug messages to the code.
Parsley, sage, rosemary, and maggikraut.

An_dz

Quote from: Dwachs on November 16, 2010, 06:32:01 PM
Edit2: Please test with the next nightly (rev >= 3963) and post the log file. I added some debug messages to the code.
Sorry, I can't if it's still not available in Nighlty download page since if I compile I have no errors.

Anyway here's the log with the specific savegame.

Dwachs

Thanks for testing. No difference to starting without specifying savegame :/

Please test with nightly (rev 3965 is available now) and report the logs.
Parsley, sage, rosemary, and maggikraut.


prissi

Could you please run "cmd" and then type "ipconfig /all >cfg.txt" and post the context of text?

It should contain something like shown below:

Windows-IP-Konfiguration

        Hostname. . . . . . . . . . . . . : simutrans
        Primäres DNS-Suffix . . . . . . . :
        Knotentyp . . . . . . . . . . . . : Unbekannt
        IP-Routing aktiviert. . . . . . . : Ja
        WINS-Proxy aktiviert. . . . . . . : Nein
        DNS-Suffixsuchliste . . . . . . . : servegame.com

Ethernetadapter VMware Network Adapter VMnet8:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet8
        Physikalische Adresse . . . . . . : 00-50-56-C0-00-08
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : 192.168.5.1
        Subnetzmaske. . . . . . . . . . . : 255.255.255.0
        IP-Adresse. . . . . . . . . . . . : fe80::250:56ff:fec0:8%4
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%5
                                            fec0:0:0:ffff::2%5
                                            fec0:0:0:ffff::3%5

Ethernetadapter VMware Network Adapter VMnet1:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1
        Physikalische Adresse . . . . . . : 00-50-56-C0-00-01
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : 192.168.81.1
        Subnetzmaske. . . . . . . . . . . : 255.255.255.0
        IP-Adresse. . . . . . . . . . . . : fe80::250:56ff:fec0:1%5
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%4
                                            fec0:0:0:ffff::2%4
                                            fec0:0:0:ffff::3%4

Ethernetadapter AFS:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : Microsoft Loopbackadapter
        Physikalische Adresse . . . . . . : 02-00-4C-4F-4F-50
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : 10.254.254.253
        Subnetzmaske. . . . . . . . . . . : 255.255.255.252
        IP-Adresse. . . . . . . . . . . . : fe80::4cff:fe4f:4f50%6
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%3
                                            fec0:0:0:ffff::2%3
                                            fec0:0:0:ffff::3%3

Ethernetadapter LAN-Verbindung:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : Realtek RTL8168/8111 PCI-E Gigabit Ethernet NIC
        Physikalische Adresse . . . . . . : 00-1B-FC-1E-F8-D5
        DHCP aktiviert. . . . . . . . . . : Ja
        Autokonfiguration aktiviert . . . : Ja
        IP-Adresse. . . . . . . . . . . . : 192.168.1.10
        Subnetzmaske. . . . . . . . . . . : 255.255.255.0
        IP-Adresse. . . . . . . . . . . . : fe80::21b:fcff:fe1e:f8d5%7
        Standardgateway . . . . . . . . . : 192.168.1.1
        DHCP-Server . . . . . . . . . . . : 192.168.1.1
        DNS-Server. . . . . . . . . . . . : 192.168.1.1
                                            fec0:0:0:ffff::1%2
                                            fec0:0:0:ffff::2%2
                                            fec0:0:0:ffff::3%2
        Lease erhalten. . . . . . . . . . : Mittwoch, 17. November 2010 21:23:04
        Lease läuft ab. . . . . . . . . . : Donnerstag, 18. November 2010 21:23:04

Ethernetadapter TAP:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : TAP-Win32 Adapter V8
        Physikalische Adresse . . . . . . : 00-FF-73-59-C1-B3
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : 192.168.0.1
        Subnetzmaske. . . . . . . . . . . : 255.255.255.0
        IP-Adresse. . . . . . . . . . . . : fe80::2ff:73ff:fe59:c1b3%8
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1

Tunneladapter Teredo Tunneling Pseudo-Interface:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
        Physikalische Adresse . . . . . . : 00-00-FB-FA-AB-41-54-A1
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : 2001:0:5ef5:79fd:0:fbfa:ab41:54a1
        IP-Adresse. . . . . . . . . . . . : fe80::ffff:ffff:fffd%9
        Standardgateway . . . . . . . . . : ::
        NetBIOS über TCP/IP . . . . . . . : Deaktiviert

Tunneladapter Automatic Tunneling Pseudo-Interface:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : Automatic Tunneling Pseudo-Interface
        Physikalische Adresse . . . . . . : C0-A8-05-01
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : fe80::5efe:192.168.5.1%2
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%5
                                            fec0:0:0:ffff::2%5
                                            fec0:0:0:ffff::3%5
        NetBIOS über TCP/IP . . . . . . . : Deaktiviert

Tunneladapter Automatic Tunneling Pseudo-Interface:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : Automatic Tunneling Pseudo-Interface
        Physikalische Adresse . . . . . . : C0-A8-51-01
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : fe80::5efe:192.168.81.1%2
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%4
                                            fec0:0:0:ffff::2%4
                                            fec0:0:0:ffff::3%4
        NetBIOS über TCP/IP . . . . . . . : Deaktiviert

Tunneladapter Automatic Tunneling Pseudo-Interface:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : Automatic Tunneling Pseudo-Interface
        Physikalische Adresse . . . . . . : 0A-FE-FE-FD
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : fe80::5efe:10.254.254.253%2
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%3
                                            fec0:0:0:ffff::2%3
                                            fec0:0:0:ffff::3%3
        NetBIOS über TCP/IP . . . . . . . : Deaktiviert

Tunneladapter Automatic Tunneling Pseudo-Interface:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : Automatic Tunneling Pseudo-Interface
        Physikalische Adresse . . . . . . : C0-A8-01-0A
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : fe80::5efe:192.168.1.10%2
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%2
                                            fec0:0:0:ffff::2%2
                                            fec0:0:0:ffff::3%2
        NetBIOS über TCP/IP . . . . . . . : Deaktiviert

Tunneladapter Automatic Tunneling Pseudo-Interface:

        Verbindungsspezifisches DNS-Suffix:
        Beschreibung. . . . . . . . . . . : Automatic Tunneling Pseudo-Interface
        Physikalische Adresse . . . . . . : C0-A8-00-01
        DHCP aktiviert. . . . . . . . . . : Nein
        IP-Adresse. . . . . . . . . . . . : fe80::5efe:192.168.0.1%2
        Standardgateway . . . . . . . . . :
        DNS-Server. . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1
        NetBIOS über TCP/IP . . . . . . . : Deaktiviert


An_dz


Václav


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

Milko

Hi

Here my ipconfig

Giuseppe

Dwachs

@Vaclav: could you provide a log file of the crash?

@Andz and Milko: could you please test what happens if you specify a savegame ? i.e. starting simutrans with '-load yoursavegame' ?

And could you test please with GDI and SDL version and upload logs if it crashes?

@prissi: I think the crahs happens during some display stuff: in one of the logs the last message is the call to intr_refresh_display, in the other the call to show_banner.
Parsley, sage, rosemary, and maggikraut.

Václav

Here it is. I am sorry but due to filesize I could not attach it to this post. Instead of it I uploaded to rapidhare-like server. So for successfull download do following:

- click on Stáhnout
- rewrite Captcha text into form by it (under text Kód z obrázku)
- click on Stáhnout again

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

prissi

According to the logs, the world is loaded and then destroy at least once. And for the starting dialoge of langauge and pak set selection also the display is needed ...

Do you try the -nosound or -nomidi?

Dwachs

I asked wernieman to compile the versions 3860 and 3861,  hopefully we can locate the buggy commit (as 3859 is working, 3862 crashes).
Parsley, sage, rosemary, and maggikraut.

Milko

Hi

3968 still crash

@prissi - crash also using -nosound -nomidi

@dwachs - crash using sdl or gdi and also using -loadsavegame

Here my logs using sdl or gdi and -loadsavegame

http://simutrans-germany.com/files/upload/simu-r3968-log.zip

Giuseppe


Dwachs

all crashes happen at the same point. And as fas as I can tell, they happen at a slightly differetn location than the crashes reported by Vaclav or Milko.

Please try again with the next nightly. I add another debug message and commented out a section of code that is unnecessary but may trigger the crash.
Parsley, sage, rosemary, and maggikraut.

Dwachs

@all: wernieman compiled the nightlies 3859-3862 again. They are available at

http://www.wernieman.de/sim-winsdl.zip
http://www.wernieman.de/sim-wingdi.zip

Please retest and tell your results.
Parsley, sage, rosemary, and maggikraut.

Václav


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

wernieman

And please test the 3859 in the archive too.

If the 3859 have a Problem, then my Build-System have a Problem :o(
I hope you understand my English

Václav

#59
I have not tested new 3859 yet but 3860 seems be OK. 3861 and 3862 seems be wrong but - I don't know what he did - but all screen was shifted to the left - and after loading game crashed - but 3861 called koord3d invalid by game speed and time axis usage. Next time I hope I would call results of test of 3861 and 3862 with right screen.

-->
New 3859 is OK.

-->
In attachment is screen from 3862 in while before crash. This appears at all times and also in 3861.

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

Milko

#60
Hi

3859 - 3860 are ok (sdl and gdi)

3861 crash (sdl and gdi)

I have attached two parts of the bottom-right corner of the window (3860 and 3861).

I think that may be helpful to note the symbols (a calendar and a pause symbol) and a writing error "koord3d invalid"

Tomorrow I will test last nightlyes.

EDIT
------
Even my window (such as VaclavMacurek) is shifted to the left.
------

Giuseppe

prissi

#61
This is exactly, how it should look like, as those symbols were introduced in 3861. I wonder about the black edge however.

Using valgrind on Ubuntu did not reveal anything. This is quite a mistery to me.

Dwachs

Does this shifting of windows happen both in SDL and GDI?
Parsley, sage, rosemary, and maggikraut.

Dwachs

Here is a patch that adds some sanity check before calling screen update. As far as I understand, both the SDL and the GDI functions do no checks whether the given height/ width are sensible.

@prissi: do you think that the patch is worth a try for commit and test?
Parsley, sage, rosemary, and maggikraut.

wernieman

So .. it is not a build-server Problem?

And:
Everybody with this Problem: Witch Graphic-Card do you have?
I hope you understand my English

prissi

Windows definitely does not need such a check, as negative values in stretchbitblt are explicitely allowed.

But I submitted a slightly tuned version, to make explicitely sure also windows does not exceed the width. (Which according to docs should not matter ... )

Dwachs

Quote from: wernieman on November 24, 2010, 10:34:30 AM
So .. it is not a build-server Problem?
It seems so, as 3859 & 3860 work.

Quote from: prissi on November 24, 2010, 11:02:47 AM
But I submitted a slightly tuned version [...]
where?
Parsley, sage, rosemary, and maggikraut.

Václav

#67
Quote from: wernieman on November 24, 2010, 10:34:30 AM
Everybody with this Problem: Which Graphic-Card do you have?
ATI Radeon 9550

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

prissi

@Dwachs: to the svn, so next nightly can use it. It will be only active with DEBUG switch, which is default anyway.

Dwachs

I saw it; at the time when I wrote the post, you did not have committed it (or the svn did not update ).
Parsley, sage, rosemary, and maggikraut.