Discussion:
[BitPim-devel] Won't run on Linux
Roger Binns
2006-03-21 04:58:04 UTC
Permalink
I'm seeing a problem on Linux (Redhat 9). I get the following
crash starting up the app. If I do a clean checkout then that
does work for a while. Any ideas?

Traceback (most recent call last):
File "src/gui.py", line 1038, in DataAddItemUpdateUIEvent
AttributeError: 'MainWindow' object has no attribute 'widget'

Variables by last 8 frames, innermost last

Frame __init__ in src/gui.py at line 891
sz = wx.Size(32, 32)
ib = <wx._gdi.IconBundle; proxy of C++ wxIconBundle instance at _40846808_p_wxIconBun
impmenu = <wx._core.Menu; proxy of C++ wxMenu instance at _38e66708_p_wxMenu>
help = 'Export Call History to CSV'
parent = None
title = 'BitPim'
menu = <wx._core.Menu; proxy of C++ wxMenu instance at _98a96908_p_wxMenu>
self = <gui.MainWindow; proxy of C++ wxFrame instance at _00fc6408_p_wxFrame>
expmenu = <wx._core.Menu; proxy of C++ wxMenu instance at _d8126908_p_wxMenu>
func = <function OnFileExportCallHistory at 0x42a3780c>
x = 237
sb = <guiwidgets.MyStatusBar; proxy of C++ wxStatusBar instance at _d80e6508_p_wxStat
menuBar = <wx._core.MenuBar; proxy of C++ wxMenuBar instance at _489c6808_p_wxMenuBar>
config = <gui.Config instance at 0x402de6cc>
id = -1
desc = 'CSV Call History...'

Frame needconfig in src/guiwidgets.py at line 688
self = <guiwidgets.ConfigDialog; proxy of C++ wxDialog instance at _68556e08_p_wxDialog

Frame setfromconfig in src/guiwidgets.py at line 603
self = <guiwidgets.ConfigDialog; proxy of C++ wxDialog instance at _68556e08_p_wxDialog

Frame ApplyBitFlingSettings in src/guiwidgets.py at line 526
self = <guiwidgets.ConfigDialog; proxy of C++ wxDialog instance at _68556e08_p_wxDialog
_ = None

Frame __call__ in src/bitflingscan.py at line 210
self = <bitflingscan.MethodIndirect instance at 0x42bbc4ac>
args = ()
kwargs = Keys []
{}

Frame callfunc in src/bitflingscan.py at line 176
qres = <Queue.Queue instance at 0x42bbc3cc>
self = <BitFlingWorkerThread(BitFling worker thread, started daemon)>
args = ()
loopfunc = <function SafeYield at 0x4054c2cc>
func = <bound method flinger.unconfigure of <bitflingscan.flinger instance at 0x41a0ff6
kwargs = Keys []
{}

Frame SafeYield in /usr/lib/python2.3/site-packages/wx-2.6-gtk2-unicode/wx/_core.py at line 7437
args = ()
kwargs = Keys []
{}

Frame DataAddItemUpdateUIEvent in src/gui.py at line 1038
self = <gui.MainWindow; proxy of C++ wxFrame instance at _00fc6408_p_wxFrame>
event = <wx._core.UpdateUIEvent; proxy of C++ wxUpdateUIEvent instance at _30adffbf_p_wx
Simon C
2006-03-21 05:19:13 UTC
Permalink
Post by Roger Binns
I'm seeing a problem on Linux (Redhat 9). I get the following
crash starting up the app. If I do a clean checkout then that
does work for a while. Any ideas?
It sounds like the update handler is being called before the widgets
variable is declared.
I've checked in a change that should prevent this.

Simon
Roger Binns
2006-03-21 06:07:02 UTC
Permalink
Post by Simon C
It sounds like the update handler is being called before the widgets
variable is declared.
I've checked in a change that should prevent this.
Thanks - that explains the behaviour. I already did the branch and build
for this release so the fix isn't in 0.8.09. We can just do .10 sooner
rather than later.

Roger

Loading...