The International Simutrans Forum

 

Author Topic: [R3862 and up] Crash instead intro dialogue  (Read 25242 times)

0 Members and 1 Guest are viewing this topic.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4898
  • Languages: EN, DE, AT
Re: [R3862 and up] Crash instead intro dialogue
« Reply #105 on: November 30, 2010, 06:09:29 AM »
Apparently DrMingW does not work with symbols generated by current gcc compiler with option '-g' :(

@Wernieman: could you please compile such a debug executable but with option '-gstabs' instead of '-g' ? Thank you!

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: [R3862 and up] Crash instead intro dialogue
« Reply #106 on: November 30, 2010, 08:31:00 AM »
O.K.

I added to the config.default:
Code: [Select]
CCFLAGS += -gstabs
CXXFLAGS += -gstabs

file: sim-win-debug-3995.zip
download: http://www.wernieman.de/sim-win-debug-3995.zip
size: 22 MByte
include: sdl and gdi

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4898
  • Languages: EN, DE, AT
Re: [R3862 and up] Crash instead intro dialogue
« Reply #107 on: November 30, 2010, 08:51:48 AM »
Thank you very much! Hope this helps to locate the crash :P

Offline Václav

  • Devotee
  • *
  • Posts: 3325
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: [R3862 and up] Crash instead intro dialogue
« Reply #108 on: November 30, 2010, 08:30:30 PM »
Small stupid question: with which options to start debug version of game?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4898
  • Languages: EN, DE, AT
Re: [R3862 and up] Crash instead intro dialogue
« Reply #109 on: December 01, 2010, 06:42:35 AM »
Every combination that leads to a crash and a crash report from drmingw is good :)

'-debug 3' is ok.

Offline Václav

  • Devotee
  • *
  • Posts: 3325
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: [R3862 and up] Crash instead intro dialogue
« Reply #110 on: December 01, 2010, 10:56:59 AM »
Thanks.

Offline Milko

  • Devotee
  • *
  • Posts: 869
Re: [R3862 and up] Crash instead intro dialogue
« Reply #111 on: December 01, 2010, 09:52:50 PM »
Hi

With 3995 -gstabs, drmingw report the same error of 3991 (no symbols...)
(for gdi and for sdl)

---
sim-wingdi-3995.exe caused an Illegal Instruction at location 005fb079 in module sim-wingdi-3995.exe.

Registers:
eax=00000000 ebx=00728230 ecx=0000000c edx=00000000 esi=00000000 edi=00000001
eip=005fb079 esp=0022e440 ebp=00000000 iopl=0         nv up ei pl zr na po nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000             efl=00000246

Call stack:
----

Other tests
A) I start simutrans with -load pressing "p" key, next I try to start a new world, game crashed, I attach the logs, could help?
B) I start simutrans with -load pressing "p" key, next I try to run actual world (exit the pause), game crash....

http://simutrans-germany.com/files/upload/simu-3995-logs.zip

Giuseppe

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4898
  • Languages: EN, DE, AT
Re: [R3862 and up] Crash instead intro dialogue
« Reply #112 on: December 02, 2010, 08:11:06 AM »
How bad :( Did you use the drmingw version from here:

http://code.google.com/p/jrfonseca/wiki/DrMingw ?

Edit: drmingw is also contained in this package:

http://sourceforge.net/projects/mingw/files/MinGW/Utilities/mingw-utils/mingw-utils-0.3/mingw-utils-0.3.tar.gz/download

I do not know, which of the two versions is the most recent one.
« Last Edit: December 02, 2010, 08:15:52 AM by Dwachs »

Offline Milko

  • Devotee
  • *
  • Posts: 869
Re: [R3862 and up] Crash instead intro dialogue
« Reply #113 on: December 02, 2010, 08:24:18 AM »
Hi

Yes, drmingw 0.4.4

I use
drmingw -i
At crash appear a window with three buttons "debug","don't send","send", I click debug.

My two new "logs" can you help?

Giuseppe

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4898
  • Languages: EN, DE, AT
Re: [R3862 and up] Crash instead intro dialogue
« Reply #114 on: December 02, 2010, 08:28:20 AM »
No call stack in that window ?

The logs are helpfuls as they show, where the bug is not. :/ I will have to add further log messages soon.

Edit: Revision 4000 has some more debug messages, please run test with '-debug 4' with the next nighlies.
« Last Edit: December 02, 2010, 08:59:13 AM by Dwachs »

Offline Milko

  • Devotee
  • *
  • Posts: 869
Re: [R3862 and up] Crash instead intro dialogue
« Reply #115 on: December 02, 2010, 08:57:27 AM »
Call stack section is blank... Only registers are shown.

It may be that the bug manifests itself in a dll and then drmingw do not see any data?

Giuseppe

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: [R3862 and up] Crash instead intro dialogue
« Reply #116 on: December 02, 2010, 08:59:05 AM »
Did you need more "special nighty's"?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4898
  • Languages: EN, DE, AT
Re: [R3862 and up] Crash instead intro dialogue
« Reply #117 on: December 02, 2010, 09:03:16 AM »
Call stack section is blank... Only registers are shown.

It may be that the bug manifests itself in a dll and then drmingw do not see any data?
Could be. Googling tells me that in such case drmingw tell something like
Code: [Select]
pidgin.exe caused an Access Violation at location 7626ce0a in module msvcrt.dll


Offline Milko

  • Devotee
  • *
  • Posts: 869
Re: [R3862 and up] Crash instead intro dialogue
« Reply #118 on: December 02, 2010, 09:33:01 AM »
In my crash error is in module sim-wingdi-3995.exe; it appear to be in simutrans, and not in a dll....

Giuseppe

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 10820
  • Languages: De,EN,JP
Re: [R3862 and up] Crash instead intro dialogue
« Reply #119 on: December 02, 2010, 09:33:43 AM »
Not if it is SDL, as simutrans main is called from SDL and thus both run under the same context.

Please try also the following executable: http://www.physik.tu-berlin.de/~prissi/simutrans/sim.zip

Offline Václav

  • Devotee
  • *
  • Posts: 3325
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: [R3862 and up] Crash instead intro dialogue
« Reply #120 on: December 02, 2010, 10:12:44 AM »
Splendid...

The first comment: It runs by me.

The second comment: I have to test it more for possible else bugs. The first one I found is crash after using of "windows key". I wanted to keep game running and so I used that key and after switching back to game, it crashed. Soon I will give more reports.

Intro dialogue needs better face.

-->
Game freezes after some time after some actions (still not fully identified). But it may be caused by game age - number of moving vehicles (about one thousand), transportation web size and so on. So it seems I am going to have to begin new game.
« Last Edit: December 02, 2010, 11:06:17 AM by VaclavMacurek »

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 10820
  • Languages: De,EN,JP
Re: [R3862 and up] Crash instead intro dialogue
« Reply #121 on: December 02, 2010, 12:51:32 PM »
Since this was build on windows, maybe we have run into a compiler or library bug in the Mingw Linux build. Probably a new version of those tool chains may solve this; but as werniman is quite busy, I am afraid we might first release a new stable before you could use the nightlies on your specific system.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: [R3862 and up] Crash instead intro dialogue
« Reply #122 on: December 02, 2010, 12:57:49 PM »
If you want I could try to make a new mingw-Compiler ......

btw:
Yesterday I get my contractual notice of dismissal

(De: Ist das richtiges englisch für "Ordentliche Kündigung erhalten"??)

So after 1.1.2011 I have enough time for it ;o)

Offline Milko

  • Devotee
  • *
  • Posts: 869
Re: [R3862 and up] Crash instead intro dialogue
« Reply #123 on: December 02, 2010, 09:31:56 PM »
Hi

Very good!, new version work also for me  :).

Giuseppe

Online prissi

  • Developer
  • Administrator
  • *
  • Posts: 10820
  • Languages: De,EN,JP
Re: [R3862 and up] Crash instead intro dialogue
« Reply #124 on: December 02, 2010, 09:34:36 PM »
Aparently the Mingw linux system has a bug on certain windows configurations. Not sure, how to handle that. Maybe a newer Mingw build can help this.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: [R3862 and up] Crash instead intro dialogue
« Reply #125 on: December 02, 2010, 10:25:37 PM »
I will try ... next week ...

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: [R3862 and up] Crash instead intro dialogue
« Reply #126 on: December 13, 2010, 10:55:17 AM »
Sorry, but only next week .....

Edit:
..... now ;o)

please test next nightly!!
« Last Edit: December 13, 2010, 12:29:02 PM by wernieman »

Offline Václav

  • Devotee
  • *
  • Posts: 3325
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: [R3862 and up] Crash instead intro dialogue
« Reply #127 on: December 16, 2010, 10:44:30 AM »
Number 4047 runs by me.

Offline Milko

  • Devotee
  • *
  • Posts: 869
Re: [R3862 and up] Crash instead intro dialogue
« Reply #128 on: December 16, 2010, 09:37:34 PM »
Hi

WOW!!!!

4059 it's ok!

Thanks

Giuseppe

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2920
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: [R3862 and up] Crash instead intro dialogue
« Reply #129 on: December 16, 2010, 10:49:18 PM »
R4059 is working for me too.

Thanks for the work.

Now new stable Simutrans can be lauched! :D

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4898
  • Languages: EN, DE, AT
Re: [R3862 and up] Crash instead intro dialogue
« Reply #130 on: December 17, 2010, 07:17:20 AM »
Yeah !!!!!  :D

Offline Václav

  • Devotee
  • *
  • Posts: 3325
  • formerly VaclavMacurek
  • Languages: CZ, EN
Re: [R3862 and up] Crash instead intro dialogue
« Reply #131 on: December 17, 2010, 04:56:02 PM »
Of course.

But I will have to begin new game. Because in currently played game I achieved point where it became boring - especially if some days ago I began creation of railway station extension of such size that I cannot place it anywhere.

Offline wernieman

  • Devotees (Inactive)
  • *
  • Posts: 713
    • Werniemans-Webside (only German)
Re: [R3862 and up] Crash instead intro dialogue
« Reply #132 on: December 19, 2010, 10:36:55 AM »
Next year (January) I update SDL too .....
(I hope)