[taxipilot-develop] [ taxipilot-Bugs-1250774 ] Compiles w/out error. Crashes @ start.
Status: Beta
Brought to you by:
tfry
|
From: SourceForge.net <no...@so...> - 2005-08-29 17:41:49
|
Bugs item #1250774, was opened at 2005-08-03 07:28 Message generated for change (Comment added) made by tfry You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=409706&aid=1250774&group_id=33948 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: jda (jaddin) Assigned to: Thomas Friedrichsmeier (tfry) Summary: Compiles w/out error. Crashes @ start. Initial Comment: **Re-submitted with contact info** v0.9.1 Seemed to compile fine with no errors. After launch, aRts immdiately crashes when you advance to the game screen. The intro screen continues to run with all animation and text scroller functioning. When you press 'Space' to begin the game, Taxipilot crashes completely. Configuration : KDE 3.3.2 alsa 1.0.8 aRts 1.3.2 ---------------------------------------------------------------------- >Comment By: Thomas Friedrichsmeier (tfry) Date: 2005-08-29 19:41 Message: Logged In: YES user_id=300591 Thanks for all your answers! Ok, so now I know, where exactly the crash occurs (actually it's already visible in the backtrace, but I just couldn't believe it really showed the problem). It's in lines 178-219 of taxipilotapp.cpp. More specifically in line 181. Now the problem is, this code is perfectly valid. I've searched google and various bug databases but could not find any pointers. So I'm not really attaching high hopes to this attempt: Could you replace lines 178-219 of taxipilotapp.cpp with this slightly modified version? bool TaxipilotApp::eventFilter(QObject *, QEvent *event) { if (event->type() == QEvent::AccelOverride) { KKey key (static_cast<QKeyEvent*> (event)); if (SUp.contains (key)) { tp->current_key_ud = -1; } else if (SDown.contains (key)) { tp->current_key_ud = 1; } else if (SLeft.contains (key)) { tp->current_key_lr = -1; } else if (SRight.contains (key)) { tp->current_key_lr = 1; } else { return false; } return true; } else if (event->type() == QEvent::KeyRelease) { KKey key(static_cast<QKeyEvent*> (event)); if (SUp.contains (key)) { if (tp->current_key_ud == -1) { tp->current_key_ud = 0; } } else if (SDown.contains (key)) { if (tp->current_key_ud == 1) {; tp->current_key_ud = 0; } } else if (SLeft.contains (key)) { if (tp->current_key_lr == -1) { tp->current_key_lr = 0; } } else if (SRight.contains (key)) { if (tp->current_key_lr == 1) { tp->current_key_lr = 0; } } else { return false; } return true; } return false; } In theory it should not really affect the crash (unfortunately), but at least it's slightly better code. And who knows, maybe the previous version triggered some obscure compiler bug that this version does not... ---------------------------------------------------------------------- Comment By: jda (jaddin) Date: 2005-08-26 07:45 Message: Logged In: YES user_id=1323063 1) Right you are. Apparently it is crashing no matter what key is pressed. I tried 'F', 'L', ans several other random keys. They all have the same result. 2) I attempted to start the game with Game>New. The game did start! Then I pressed the arrow key and it crashed. Thanks. ---------------------------------------------------------------------- Comment By: Thomas Friedrichsmeier (tfry) Date: 2005-08-25 22:32 Message: Logged In: YES user_id=300591 Ok, this is still mysterious. Your answers to 1) and 4) seem to indicate, that this has little to do with actually starting the game. Maybe it's really more about handling the space-key. In order to confirm/disconfirm this suspicion, could you try out the following things, and tell me what happens (if anything): 1) Press some other key instead of space. In particular, please try the 'F'-key (that keypress should trigger some of the same lines of code). 2) Instead of pressing space, start the game via Game->New. For the time being, I believe the crash in aRTs is probably a separate issue. I'll try to figure out the more severe one first. Thanks for your patience! ---------------------------------------------------------------------- Comment By: jda (jaddin) Date: 2005-08-25 21:28 Message: Logged In: YES user_id=1323063 Thanks for your help. I know that these things are difficult with the countless variables the Linux environment presents. 1) In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->idle->data': Info: sound-element not given. In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->idle->data': Info: alpha-attribute not given. Assuming 'no' In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': Info: Adding prefix '/usr/share/apps/taxipilot/game_data/old_mission/passengers/' to filename: 'evilbot/idle2_0000.png' In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': Info: Found animation '/usr/share/apps/taxipilot/game_data/old_mission/passengers/evilbot/idle2_%1.png' in cache. In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->idle->data': Info: anim_oscillating-attribute not given. Assuming 'no' In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->idle->data': Info: sound-element not given. In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->teleporting': Info: alpha-attribute not given. Assuming 'no' In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': Info: Adding prefix '/usr/share/apps/taxipilot/game_data/old_mission/passengers/' to filename: 'evilbot/teleporting_0000.png' In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': Info: Found animation '/usr/share/apps/taxipilot/game_data/old_mission/passengers/evilbot/teleporting_%1.png' in cache. In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->teleporting': Info: anim_frame_period-attribute not given. Assuming 50 In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->teleporting': Info: sound-element not given. In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->still': Info: alpha-attribute not given. Assuming 'no' In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': Info: Adding prefix '/usr/share/apps/taxipilot/game_data/old_mission/passengers/' to filename: 'evilbot/still.png' In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': Info: Found animation '/usr/share/apps/taxipilot/game_data/old_mission/passengers/evilbot/still.png' in cache. In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->still': Info: anim_frame_period-attribute not given. Assuming 50 In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->still': Info: anim_oscillating-attribute not given. Assuming 'no' In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document->still': Info: sound-element not given. In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node 'document': Info: hello-element not given. In file '/usr/share/apps/taxipilot/game_data/old_mission/passengers/passenger2.passenger': In node '#INVALID#': Info: sound-element not given. KCrash: Application 'taxipilot' crashing... 2) The aRts crash only occurs when sound is active. The final crash that exits the TaxiPilot occurs no matter which state the sound is in. 3) The gcc version is 3.4.3 . I just double checked the entire compilation process and it does not give any indication of a problem that I can see. No errors or warnings are printed at the end of the process. 4) Yes, the game does crash on any mission. They will all do as earlier described. It all seems to go well up until you press the space bar to begin. ---------------------------------------------------------------------- Comment By: Thomas Friedrichsmeier (tfry) Date: 2005-08-24 13:38 Message: Logged In: YES user_id=300591 I must admit I don't really have a clue, what might be going wrong. A few questions (blind guesses, but maybe they do shed some light): 1) Could you run "taxipilot --debug-level 3" and post the last 20 lines of output? 2) Since the crash does not seem to be directly related to sound: Does aRTs crash consistently on every launch of Taxipilot or only sometimes (on my system, lately, I see soundserver crashes every now and then for a variety of apps)? 3) Which version of gcc are you using? Any chance this may have something to do with the transition to gcc 4? Any warnings during the linking stage? 4) Does the game crash regardless of which mission you chose? Thanks! ---------------------------------------------------------------------- Comment By: jda (jaddin) Date: 2005-08-23 23:32 Message: Logged In: YES user_id=1323063 Thanks for the response. I did attempt to run the program with sound un-checked with the same results. When simply running in the console, it gives the message 'Application TaxiPilot crashing' Kcrash gives SIG 11 dialog. This is the backtrace information... Using host libthread_db library "/lib/tls/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1242732864 (LWP 27578)] [KCrash handler] #7 0xb6c8bc05 in KKey::init () from /usr/lib/libkdecore.so.4 #8 0xb6c8bc84 in KKey::KKey () from /usr/lib/libkdecore.so.4 #9 0x0807128d in TaxipilotApp::eventFilter () #10 0xb66c397e in QObject::activate_filters () from /usr/lib/qt3/lib/libqt-mt.so.3 #11 0x08186318 in ?? () #12 0x0818b668 in ?? () #13 0xbfffef40 in ?? () #14 0xb7ff3d68 in _dl_lookup_symbol_x ( undef_name=0xf684086 <Address 0xf684086 out of bounds>, undef_map=0x9684086, ref=0x0, symbol_scope=0x0, version=0x8186318, type_class=135844584, flags=0, skip_map=0x8190310) at dl-lookup.c:251 --------- This is some other debug (gdb) data... Starting program: /usr/bin/taxipilot [Thread debugging using libthread_db enabled] [New Thread -1242732864 (LWP 26273)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -1242732864 (LWP 26273)] 0xb6c8bc05 in KKey::init () from /usr/lib/libkdecore.so.4 Run till exit from #0 0xb6c8bc05 in KKey::init () from /usr/lib/libkdecore.so.4 KCrash: Application 'taxipilot' crashing... Detaching after fork from child process 26509. Program exited with code 0375. ----------- I have libkdecore/devel 4 3.3.2-124.2 Thanks! ---------------------------------------------------------------------- Comment By: Thomas Friedrichsmeier (tfry) Date: 2005-08-23 16:48 Message: Logged In: YES user_id=300591 Sorry for the long delay! Could you please try running taxipilot from the console and post any error-messages shown? Also, in order to confirm whether or not this really is an issue related to sound, could you try to disable sound prior to pressing 'Space' (Settings->Configure Taxipilot), and check whether it still crashes? Thanks for your feedback! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=409706&aid=1250774&group_id=33948 |