News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

[10.26] crash on rotate

Started by melee, February 12, 2013, 10:33:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

melee


Using base Simutrans 111.2.1 with Experimental 10.26 (simutrans-exp-2013-01-31-cf89a7d) on Linux.


Occasionally when rotating [Shift-R] the game crashes.  I can't figure out any particular pattern, sorry; sometimes it's the first time I hit the button, sometimes it's the fourth time, as I'm coming back to the normal view. Seems to happen at various zooms and in various locations. Sometimes I can replicate by going to the same area and rotating, but not always. The only odd thing I'm doing is running the window very large, across two monitors. (expose: x=2558, y=946)


When it happens I get this message on the console:


simutrans-exp-2013-01-31-cf89a7d-dbg: simcity.cc:2178: void stadt_t::rotate90(sint16): Assertion `k != koord::invalid' failed.
Aborted



I downloaded the debug version to see if I could get any more detail; its report is above, but exactly the same as the message from the non-dbg version.


The problem seems to happen more often on the non-debug version. I couldn't say the frequency, but it took hours to trigger under debug, and seemed to be a common problem on the normal version--not every rotation, but every third maybe. I don't rotate a lot, so any notions of frequency may be way off.

jamespetts

Melee,

thank you very much for your report. Would you be able to upload a saved game in which you can reproduce this bug? It would help me very much in trying to fix it. Thank you!
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

melee

See https://www.dropbox.com/s/znbzwjvgpdanvpv/NewEnglandOnFastRails.sve

It may or may not matter, but I am able to crash it pretty consistently by visiting the Currantham/Huntingfield area and doing 4 rotations in various places. But no particular place.

jamespetts

Having some trouble reproducing this, I am afraid, in Windows. If the Linux version was compiled without the DEBUG flag enabled, you wouldn't get the assertion failure, although there might be other errors; but, in any event, I can't get any assertion failure at all. This is somewhat odd, I must say.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

greenling

Hello Melee
what for a pakset have you be use?
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!

melee

D'oh. Dunno how I forgot that. It's Pak128.Britain-Ex-0.8.3.

I'll see if I can't get a post-mortem report out of gdb.

melee

simutrans-exp-2013-01-31-cf89a7d-dbg: simcity.cc:2178: void stadt_t::rotate90(sint16): Assertion `k != koord::invalid' failed.

Program received signal SIGABRT, Aborted.
0xb7fe1424 in __kernel_vsyscall ()
(gdb) bt
#0  0xb7fe1424 in __kernel_vsyscall ()
#1  0xb7caae71 in raise () from /lib/i386-linux-gnu/libc.so.6
#2  0xb7cae34e in abort () from /lib/i386-linux-gnu/libc.so.6
#3  0xb7ca3888 in __assert_fail () from /lib/i386-linux-gnu/libc.so.6
#4  0x08226987 in stadt_t::rotate90 (this=0xd485588, y_size=383)
    at simcity.cc:2178
#5  0x082cdeca in karte_t::rotate90 (this=0xd03d408) at simworld.cc:2806
#6  0x0829aa3a in wkz_rotate90_t::init (this=0xb2901ff0, welt=0xd03d408)
    at simwerkz.h:756
#7  0x082ce31c in karte_t::local_set_werkzeug (this=0xd03d408, w=0xb2901ff0,
    sp=0xd8311b8) at simworld.cc:2688
#8  0x082ce509 in karte_t::set_werkzeug (this=0xd03d408, w=0xb2901ff0,
    sp=0xd8311b8) at simworld.cc:2673
#9  0x082ce9cb in karte_t::interactive_event (this=0xd03d408, ev=...)
    at simworld.cc:6096
#10 0x082ead50 in karte_t::interactive (this=0xd03d408, quit_month=2147483647)
    at simworld.cc:6646
#11 0x082905c2 in simu_main (argc=1, argv=0xbffff374) at simmain.cc:1160
#12 0x0829efbe in sysmain (argc=1, argv=0xbffff374) at simsys.cc:109
#13 0x0832b472 in main (argc=Cannot access memory at address 0x18a8
) at simsys_s.cc:600

I've looked at some of the stack data, but there's a large amount of probably worthless stuff. Let me know if there's anything specific you're interested in, and I can get it for you.

jamespetts

Still can't reproduce this, I'm afraid.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.