kynikos / outspline

Extensible outliner and personal time organizer to manage todo lists, schedule tasks, remind events.
http://kynikos.github.io/outspline/
GNU General Public License v3.0
47 stars 9 forks source link

Race: EVT_WINDOW_CREATE sent too early in some window managers #366

Closed lahwaacz closed 9 years ago

lahwaacz commented 9 years ago

Having outspline-0.8.1 from AUR and wxpython-3.0.1.1 installed:

$ outspline 
/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
CRITICAL: Uncaught exception
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/outspline/interfaces/wxgui/rootw.py", line 192, in _handle_creation
    databases.dbpropmanager.post_init()
  File "/usr/lib/python2.7/site-packages/outspline/interfaces/wxgui/dbprops.py", line 52, in post_init
    self.nb_icon_index = wx.GetApp().nb_right.add_image(
AttributeError: 'GUI' object has no attribute 'nb_right'
kynikos commented 9 years ago

Ouch... I can't reproduce... Can you please post the output of outspline -L30?

lahwaacz commented 9 years ago

Sure, here it is:

$ outspline -L30
90 | :: Start logging (level 30, file /home/lahwaacz/.config/outspline/outspline.log) [logger 199 MainThread]
90 | :: Outspline version 0.8.1 (2014-11-29) [logger 202 MainThread]
100 | :: Loaded extension: copypaste [addons 209 MAIN]
102 | :: Loaded extension: organism [addons 209 MAIN]
104 | :: Loaded extension: organism_timer [addons 209 MAIN]
105 | :: Loaded extension: organism_alarms [addons 209 MAIN]
107 | :: Loaded extension: organism_basicrules [addons 209 MAIN]
/usr/lib/python2.7/site-packages/wx-3.0-gtk2/wx/_core.py:16629: UserWarning: wxPython/wxWidgets release number mismatch
  warnings.warn("wxPython/wxWidgets release number mismatch")
382 | CRITICAL: Uncaught exception [__init__ 40 MAIN]
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/outspline/interfaces/wxgui/rootw.py", line 192, in _handle_creation
    databases.dbpropmanager.post_init()
  File "/usr/lib/python2.7/site-packages/outspline/interfaces/wxgui/dbprops.py", line 52, in post_init
    self.nb_icon_index = wx.GetApp().nb_right.add_image(
AttributeError: 'GUI' object has no attribute 'nb_right'
kynikos commented 9 years ago

I can only think of a race bug... What is your window manager?

lahwaacz commented 9 years ago

i3

kynikos commented 9 years ago

Yep, as I thought, I can reproduce it in i3, and also awesome... It's all right in openbox and xfwm... i3 and awesome issue the window creation event too early, I'll work on it... Thanks for your help!!! (I'm going to update the title of the report)

kynikos commented 9 years ago

Fixed in 0.8.2

lahwaacz commented 9 years ago

Indeed, thanks.

kynikos commented 9 years ago

Again, I thank you, it was practically broken for I guess 75% of the Arch users XD I would have never thought there could be a bug like that if it wasn't for you eheh