Yes, bad choice of words sorry... Actually I find it's strange that it refers to the file algorithm from MSCV 10, and at the line 3665 mentioned by the error there's:
Quote
// TEMPLATE FUNCTION sort WITH PRED template<cl**** _BidIt, cl**** _Pr, cl**** _Ty> inline void _Insertion_sort1(_BidIt _First, _BidIt _Last, _Pr _Pred, _Ty *) { // insertion sort [_First, _Last), using _Pred if (_First != _Last) for (_BidIt _Next = _First; ++_Next != _Last; ) { // order next element _BidIt _Next1 = _Next; _Ty _Val = _Move(*_Next);
if (_DEBUG_LT_PRED(_Pred, _Val, *_First)) { // found new earliest element, move to front _Move_backward(_First, _Next, ++_Next1); *_First = _Move(_Val); } else { // look for insertion point after first for (_BidIt _First1 = _Next1; _DEBUG_LT_PRED(_Pred, _Val, *--_First1); _Next1 = _First1) *_Next1 = _Move(*_First1); // move hole down *_Next1 = _Move(_Val); // insert element in hole } } }
I just downloaded the last nightly version r4954 and since then I can't load anygames. It can start a new game and save it but not load it. The error is as following:
I didn't know... Anyway in this map i still have no planes... Are there other things in the pak that can cause this in addition to planes? Anyway sanna had the same problem with pak64, but maybe there's something on pak64 bigger also...
I've just discover another thing... If you load any savegame and the first you do it's zoom in, it crashes. If you zoom out, then you can zoom in without problems. Anyway this happens just with the gcc4 version. I've downloaded the gcc3 and gcc4 r2935 nightly version and it happens only with the gcc4 version. And with the old version RC102.2.1 r2896 gcc4 this doesn't happen. :S
[red]{ When you have the last post in a thread, and it's been less than 24 hours, please use the Modify button to edit your post, instead of posting again - that's called "double posting" when you do. Thanks! -Isaac.Eiland-Hall }[/red]
Actually the bug is quite difficult to reproduce... But after several tries I've managed to do it under gdb. Here's the info with the backtrace: (I've reproduced it with the new version on the trunk r2935)
gdb sim_2935 GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... (gdb) run Starting program: /home/tomasfg/simutrans/sim_2935 [Thread debugging using libthread_db enabled] Reading low level config data ... p****_simuconf() at config/simuconf.tab: Reading simuconf.tab successful! [New Thread 0xb741e6d0 (LWP 7164)] Preparing display ... Screen Flags: requested=10, actual=10 Loading font 'font/prop.fnt' font/prop.fnt sucessfully loaded as old format prop font! Init done. p****_simuconf() at pak128-779/config/simuconf.tab: Reading simuconf.tab successful! [New Thread 0xb6d19b90 (LWP 7170)] Reading compatibility sound data ... Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-diesel-1.wav to sample 0. Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-diesel_d.wav to sample 1. Loaded /home/tomasfg/simutrans/pak128-779/sound/train-horn-diesel-0.wav to sample 2. Loaded /home/tomasfg/simutrans/pak128-779/sound/train-horn-steam-0.wav to sample 3. Loaded /home/tomasfg/simutrans/pak128-779/sound/click.wav to sample 4. Loaded /home/tomasfg/simutrans/pak128-779/sound/boing.wav to sample 5. Loaded /home/tomasfg/simutrans/pak128-779/sound/jackhammer.wav to sample 6. Loaded /home/tomasfg/simutrans/pak128-779/sound/gavel.wav to sample 7. Loaded /home/tomasfg/simutrans/pak128-779/sound/dock.wav to sample 8. Loaded /home/tomasfg/simutrans/pak128-779/sound/explosion.wav to sample 9. Loaded /home/tomasfg/simutrans/pak128-779/sound/cash.wav to sample 10. could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/beaches.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/forest.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/Water.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/desert.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/tropic.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/mediterran.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/temperate.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/tundra.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/rocky.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/arctic.wav) Loading BDF font 'font/Prop-Latin1.bdf' Unexpected character (255) for 255 character font! Loading BDF font font/Prop-Latin1.bdf with 255 characters Reading city configuration ... Reading speedbonus configuration ... Reading forest configuration ... Reading menu configuration ... Reading object data from pak128-779/... Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-diesel-0.wav to sample 11. Loaded /home/tomasfg/simutrans/pak128-779/sound/ship-horn_a.wav to sample 12. Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-petrol-2.wav to sample 13. could not load wav (MPEG Layer 3 data not supported) Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-petrol-0.wav to sample 14. Loaded /home/tomasfg/simutrans/pak128-779/sound/ship-horn_b.wav to sample 15. Loaded /home/tomasfg/simutrans/pak128-779/sound/train-horn-steam-1.wav to sample 16. Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-petrol-1.wav to sample 17. could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) tunnel_reader_t::register_obj(): Tunnel RailTunnel geladen tunnel_reader_t::register_obj(): Tunnel RoadTunnel geladen could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/truck.wav) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) Reading menu configuration ... Midi disabled ... Calculating textures ...done Creating cities ... simcity:: placed city 0 its= 0 simcity:: number of iterations 0 Distributing 1 tourist attractions ... Preparing startup ... Loading BDF font 'font/Prop-Latin1.bdf' Unexpected character (255) for 255 character font! Loading BDF font font/Prop-Latin1.bdf with 255 characters World destroyed. Calculating textures ...done set_zoom_factor() : set 2 (4/3)
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb741e6d0 (LWP 7164)] 0x0824d9aa in recode_img_src_target (h=1, src=0xe81c558, target=0xe822318) at simgraph16.cc:720 720 *target++ = rgbmap_day_night[*src++]; (gdb) backtrace #0 0x0824d9aa in recode_img_src_target (h=1, src=0xe81c558, target=0xe822318) at simgraph16.cc:720 #1 0x0824feac in recode_normal_img (n=12828) at simgraph16.cc:741 #2 0x0825acbb in display_img_aux (n=12828, xp=0, yp=326, dirty=0, use_player=false) at simgraph16.cc:1965 #3 0x0808934e in grund_t::display_boden (this=0xd812730, xpos=0, ypos=326) at boden/grund.cc:846 #4 0x081eee3c in planquadrat_t::display_boden (this=0xb4f7afd8, xpos=0, ypos=326) at simplan.cc:362 #5 0x081f2f1b in karte_ansicht_t::display (this=0xcbe0d30, force_dirty=true) at simview.cc:127 #6 0x081db355 in intr_refresh_display (dirty=false) at simintr.cc:75 #7 0x08218a14 in karte_t::sync_step (this=0x9dbe7a8, delta_t=68, sync=true, display=true) at simworld.cc:2562 #8 0x081db301 in interrupt_check (caller_info=0x828063d "karte_t::interactive()") at simintr.cc:101 #9 0x08226b48 in karte_t::interactive (this=0x9dbe7a8, quit_month=2147483647) at simworld.cc:5302 #10 0x081e393f in simu_main (argc=1, argv=0xbfa78114) at simmain.cc:1010 #11 0x0825b664 in main (argc=1, argv=0xbfa78114) at simsys_s.cc:721
I'm using the latest version on the trunk r2934 with the nightly version of pak128: 779. Compiled with gcc-4.3.4 on gentoo linux.
The problem happened when accidentaly my finger p****ed over the right side of the touchpad which zooms. The game crashed and this is the messages since the beginning:
/sim_2934 Reading low level config data ... p****_simuconf() at config/simuconf.tab: Reading simuconf.tab successful! Preparing display ... Screen Flags: requested=10, actual=10 Loading font 'font/prop.fnt' font/prop.fnt sucessfully loaded as old format prop font! Init done. p****_simuconf() at pak128-779/config/simuconf.tab: Reading simuconf.tab successful! Reading compatibility sound data ... Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-diesel-1.wav to sample 0. Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-diesel_d.wav to sample 1. Loaded /home/tomasfg/simutrans/pak128-779/sound/train-horn-diesel-0.wav to sample 2. Loaded /home/tomasfg/simutrans/pak128-779/sound/train-horn-steam-0.wav to sample 3. Loaded /home/tomasfg/simutrans/pak128-779/sound/click.wav to sample 4. Loaded /home/tomasfg/simutrans/pak128-779/sound/boing.wav to sample 5. Loaded /home/tomasfg/simutrans/pak128-779/sound/jackhammer.wav to sample 6. Loaded /home/tomasfg/simutrans/pak128-779/sound/gavel.wav to sample 7. Loaded /home/tomasfg/simutrans/pak128-779/sound/dock.wav to sample 8. Loaded /home/tomasfg/simutrans/pak128-779/sound/explosion.wav to sample 9. Loaded /home/tomasfg/simutrans/pak128-779/sound/cash.wav to sample 10. could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/beaches.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/forest.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/Water.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/desert.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/tropic.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/mediterran.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/temperate.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/tundra.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/rocky.wav) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/arctic.wav) Loading BDF font 'font/Prop-Latin1.bdf' Unexpected character (255) for 255 character font! Loading BDF font font/Prop-Latin1.bdf with 255 characters Reading city configuration ... Reading speedbonus configuration ... Reading forest configuration ... Reading menu configuration ... Reading object data from pak128-779/... Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-diesel-0.wav to sample 11. Loaded /home/tomasfg/simutrans/pak128-779/sound/ship-horn_a.wav to sample 12. Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-petrol-2.wav to sample 13. could not load wav (MPEG Layer 3 data not supported) Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-petrol-0.wav to sample 14. Loaded /home/tomasfg/simutrans/pak128-779/sound/ship-horn_b.wav to sample 15. Loaded /home/tomasfg/simutrans/pak128-779/sound/train-horn-steam-1.wav to sample 16. Loaded /home/tomasfg/simutrans/pak128-779/sound/engine-start-petrol-1.wav to sample 17. could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) tunnel_reader_t::register_obj(): Tunnel RailTunnel geladen tunnel_reader_t::register_obj(): Tunnel RoadTunnel geladen could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) could not load wav (Couldn't open /home/tomasfg/simutrans/pak128-779/sound/truck.wav) could not load wav (MPEG Layer 3 data not supported) could not load wav (MPEG Layer 3 data not supported) Reading menu configuration ... Midi disabled ... Calculating textures ...done Creating cities ... simcity:: placed city 0 its= 0 simcity:: number of iterations 0 Distributing 1 tourist attractions ... Preparing startup ... Loading BDF font 'font/Prop-Latin1.bdf' Unexpected character (255) for 255 character font! Loading BDF font font/Prop-Latin1.bdf with 255 characters ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured World destroyed. Calculating textures ...done expose: x=1280, y=727 textur_resize()::screen=0x9d511c8 Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL Warning: gui_textinput_t::infowin_event() called but text is NULL ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured ALSA lib pcm.c:7234:(snd_pcm_recover) underrun occured set_zoom_factor() : set 2 (4/3) Violación de segmento
The last means Segment violation for those who doesn't speak Spanish... This happened also yesterday night but I didn't know way thus way I executed it today on the terminal to see if it could help understand what happened... And as I see it it remember that it happened when I used the wheel of the mouse... I'll recompile it now with DEBUG = 3 and try to reproduce it... But it's hard to do it... So long I haven't been able to do it... Anyway it's related to the depot, since I'm renewing the tram lines in my cities and both times it was selected... If you need it I can upload the savegame...
I'm using the last revision on the svn repository: r2873 and pak128-1.4.5 under Gentoo Linux.
The problem is that somehow the new version when it saves the file settings.xml it does it wrongly or in a strange way. Because as you can see on the first screenshot when you start the game it's with day/night mode activated and as you see on the second screenshot it shows the windows close buttons, etc. on the right as if I had that option enabled on simuconf.tab and it also starts with hidden trees... I attached my settings.xml file. Anyway if i delete it and start the game as usual for the first time it asks for the language and shows everything correctly, but if you close it and then open it again it happens this again... I don't know if i did something wrong and it's normal that this happens or whether it's a bug...
I've just downloaded the last version on the svn repository in windows and compiled it. And i got the same problem... But it's the "sell mode" button not the "sell" button. As seen on the latest attachement
We'll maybe it's something just in linux or maybe it's because i have sdl or something installed in gentoo without some required USE flags... I dunno... But I've observed that it starts always with ~86 millions and then everytime I sell something on the depot (after closing it) it increases aroung ~45 millions... Don't know how to reproduce it in windows... But i'll switch now there and compile it and see if i have it or not...
Edit: We'll I've observed that with the original executable from the version 102.2.0 this bug doesn't happpen. It happens also with the allegro version that i just compiled. And it's not pushing the sell button but below on the sell mode as on the second attached image.
I'm using the last revision availible on the svn repository: r2866 under Gentoo Linux with pak128-1.4.5--102.0.
As you can see on the attached pictures after selling some vehicles and having negative money (maybe also with normal money but i didn't try it) you get some bizarre numbers on ****ets and net wealth. In the next monthly update they're gone and everything is back to normal, but if you sell some vehicles again you get it again till next month...
Here you got the savegame before selling anything:
and this is the one after the bug and before the next monthly update... Anyway I don't know if it's saved or not but you can try to reproduce it with the first savegame attached. Just go to the depot sell something and you get the bizarre numbers.
#OSTYPE = beos #OSTYPE = cygwin #OSTYPE = freebsd OSTYPE = linux #OSTYPE = mingw #OSTYPE = mac
#DEBUG = 1 # Level 1-3, higher number means more debug-friendly, see Makefile OPTIMISE = 1 # Add umpteen optimisation flags #PROFILE = 1
# Define these as empty strings, if you don't have allegro/sdl-config #ALLEGRO_CONFIG = allegro-config SDL_CONFIG = sdl-config
#VERBOSE = 1
# Do not determine dependencies # Header dependencies get NOT tracked this way, so if a header changes you're # on your own (i.e. manually run a make clean) # Uncomment this if this stage takes exceptionally long, which happens on some # broken filesystems # NO_DEPS = 1
# Following flags exists # DOUBLE_GROUNDS: Enables two height tiles # HALF_HEIGHT: Enables half height tiles (8 pixel instead 16) # OTTD_LIKE: Enables half height tiles and crossconnected industries; defaul folder pak.ttd/ # DESTINATION_CITYCARS: Citycars can have a destination (not recommended) # USE_C: no ****embler for copying # BIG_ENDIAN: MUST by set for PPC/Motorola byte order! (old mac, amiga) # STEPS16: 16 steps per tile - nicer on pak64 FLAGS = -DSTEPS16
I don't know if you need some extra info... Anyway just ask...
EDIT: It happens only using the "sell mode" button, not the "sell" button... As shown on the last attachement on my next post.
Por lo que veo esto avanza a muy buen paso. Yo creo que sería interesante que se avise a quien corresponda para que el link a nuestra comunidad se incluya aquí:
Well i introduce myself here too. I already did it in the spanish subforum, but i hadn't seen this topic. I'll also try to becoma an active member of the community even though my experience in the game is quite limited compared to others...
Thanks for it. It's always interesting to know how other people play the game. I always start with Freight transport. But next time i start a game i'll try what you suggest
Bienvenido! Y no tengas miedo en exponer tus dudas todos empezamos desde cero y por lo menos cuando yo lo hice no había una comunidad como esta para resolver los problemas...
Bueno pues yo llevo mucho tiempo jugando, desde la versión 0.88 creo que es... Eso sí con pausas de diversa duración, pero al final siempre acabo volviendo a jugar :-)
Nunca me he presentado por aquí, así que ya va siendo hora de hacerlo. Soy Tomás y vivo en Almería aunque ahora me encuentro en Alemania.