crash in itempicker dockscreen

Bug reports for the stable versions go here.
Post Reply
User avatar
pixelfck
Militia Captain
Militia Captain
Posts: 571
Joined: Tue Aug 11, 2009 8:47 pm
Location: Travelling around in Europe

I think I found a bug related to the itempicker dockscreen. The issue can be reproduced with this pasted code snipped.

When the item list appears, moving the selection cursor up and down a few times replaces the listed items with other (non-related) items. Move the selection cursor up and down some more and the game crashes.

Update: added a debug.log excerpt.

Code: Select all

04/04/2013 21:24:23	Start logging session
04/04/2013 21:24:24	Transcendence 1.1
04/04/2013 21:24:27	Loaded extension: Extensions\Debug.xml
04/04/2013 21:24:32	Loaded game file version: 1019000
04/04/2013 21:25:02	Exception in shpInstallArmor; arg = (gPlayerShip gItem 0)
04/04/2013 21:25:02	Exception in shpInstallArmor; arg = (gPlayerShip gItem 0) [(gPlayerShip gItem 0)] ### (shpInstallArmor gPlayerShip gItem 0) ###
04/04/2013 21:25:03	Unable to continue due to program error.

program state: OnAnimate
program state: updating object
obj class: CShip
obj name: Debug-class gunship
obj pointer: 7e13240
CPlayerShipController
m_pStation: 7dfbe58 Debug station (CStation)
m_pTarget: none
m_pDestination: none
game state: docked


Please contact [email protected] with a copy of Debug.log and your save file. We are sorry for the inconvenience.

04/04/2013 21:25:03	End logging session
04/04/2013 22:00:39	--------------------------------------------------------------------------------
Image
Download the Black Market Expansion from Xelerus.de today!
My other mods at xelerus.de
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

It looks like you're trying to install an item from inside <OnPaneInit>, in other words, while displaying a list of items (as opposed to inside an <Action>). Is that your intent?
User avatar
pixelfck
Militia Captain
Militia Captain
Posts: 571
Joined: Tue Aug 11, 2009 8:47 pm
Location: Travelling around in Europe

It was, at the time, my intend to create a weapon that would replace itself by a duel version of the weapon if you installed a second one.

I think the problem arose because I did not have a clear picture in my mind of which event fires when and at what point an action completes.

I think now that what I tried to do is a non-possible outcome for the event at hand. Yet, a crash-to-desktop suggests some other internal error (uncaught exception maybe?) that may need fixing.

Hope this helps,

Cheers,
Pixelfck
Image
Download the Black Market Expansion from Xelerus.de today!
My other mods at xelerus.de
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

pixelfck wrote:... Yet, a crash-to-desktop suggests some other internal error (uncaught exception maybe?) that may need fixing.
Agreed! The easiest fix is to have the function fail with an error, but I wasn't sure if you also needed a feature request. Thank you!
Post Reply