[Python-apps-team] Bug#848356: [mypaint]Fullscreen mode destroys canvas area

Aleksey Samoilov samoilov.lex at gmail.com
Fri Dec 16 16:02:44 UTC 2016


Package: mypaint

Version: 1.2.0-3

Severity: important

With GTK 3.22.4 from Debian testing pressing F11 to fullscreen MyPaint 
makes the canvas area disappear. Pressing a key in this state results in 
an assertion error about the active TDW being null.


        Steps to reproduce

This is reproducible with either a fresh config or an existing one.

 1. Start MyPaint
 2. Press F11, mypaint goes full-screen. Canvas area disappears, widgets
    are drawn with the default theme colour.
 3. Press a key such as space. The following assertion pops up from the
    keyboard handler:

Traceback:

```python
Mypaint version: 1.2.0+gitexport.f62444e
System information: Linux-4.8.0-1-amd64-x86_64-with-debian-stretch-sid
Traceback (most recent call last):
   File "/usr/share/mypaint/gui/keyboard.py", line 153, 
_key_press_cb(self=<gui.keyboard.KeyboardManager instance>, 
widget=<drawwindow.DrawWindow object at 0x7f782a509410 
(MyPaintDrawWindow at 0x5581c7542280)>, event=<Gdk.EventKey object at 
0x7f7821a3a050 (void at 0x5581c89a93c0)>)
             # Otherwise, dispatch the event to the active doc.
             return self._dispatch_fallthru_key_press_event(widget, event)
   variables: {'self._dispatch_fallthru_key_press_event': ('local', 
<bound method KeyboardManager._dispatch_fallthru_key_press_event of 
<gui.keyboard.KeyboardManager instance at 0x7f782a504fc8>>), 'widget': 
('local', <drawwindow.DrawWindow object at 0x7f782a509410 
(MyPaintDrawWindow at 0x5581c7542280)>), 'event': ('local', 
<Gdk.EventKey object at 0x7f7821a3a050 (void at 0x5581c89a93c0)>)}
   File "/usr/share/mypaint/gui/keyboard.py", line 230, 
_dispatch_fallthru_key_press_event(self=<gui.keyboard.KeyboardManager 
instance>, win=<drawwindow.DrawWindow object at 0x7f782a509410 
(MyPaintDrawWindow at 0x5581c7542280)>, event=<Gdk.EventKey object at 
0x7f7821a3a050 (void at 0x5581c89a93c0)>)
             # Fall-through behavior: handle via the active document.
             target_doc, target_tdw = self._get_active_doc()
             if target_doc is None:
   variables: {'self._get_active_doc': ('local', <bound method 
KeyboardManager._get_active_doc of <gui.keyboard.KeyboardManager 
instance at 0x7f782a504fc8>>), 'target_doc': (None, []), 'target_tdw': 
(None, [])}
   File "/usr/share/mypaint/gui/keyboard.py", line 222, 
_get_active_doc(self=<gui.keyboard.KeyboardManager instance>)
             # event dispatch.
             active_tdw = 
gui.tileddrawwidget.TiledDrawWidget.get_active_tdw()
             for doc in gui.document.Document.get_instances():
   variables: {'active_tdw': (None, []), 
'gui.tileddrawwidget.TiledDrawWidget.get_active_tdw': ('global', <bound 
method GObjectMeta.get_active_tdw of <class 
'gui.tileddrawwidget.TiledDrawWidget'>>)}
   File "/usr/share/mypaint/gui/tileddrawwidget.py", line 75, 
get_active_tdw(kin=<class 'gui.tileddrawwidget.TiledDrawWidget'>)
             kin.__tdw_refs.extend(invis_refs)
             assert active_tdw is not None
             return active_tdw
   variables: {'active_tdw': ('local', None), 'None': ('builtin', None)}
AssertionError:

Upstream bug https://github.com/mypaint/mypaint/issues/735

Fixed in https://github.com/mypaint/mypaint/releases/tag/v1.2.1-beta.1

-- System Information:
Debian Release: stretch/sid
   APT prefers testing
   APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mypaint depends on:
ii  gir1.2-gtk-3.0       3.22.4-1
ii  libatk1.0-0          2.22.0-1
ii  libc6                2.24-7
ii  libcairo-gobject2    1.14.6-1.1
ii  libcairo2            1.14.6-1.1
ii  libgcc1              1:6.2.1-5
ii  libgdk-pixbuf2.0-0   2.36.0-1
ii  libglib2.0-0         2.50.2-2
ii  libgomp1             6.2.1-5
ii  libgtk-3-0           3.22.4-1
ii  libjson-c3           0.12.1-1.1
ii  liblcms2-2           2.7-1
ii  libpango-1.0-0       1.40.3-3
ii  libpangocairo-1.0-0  1.40.3-3
ii  libpng16-16          1.6.26-2
ii  libpython2.7         2.7.13~rc1-1
ii  libstdc++6           6.2.1-5
ii  mypaint-data         1.2.0-3
ii  python-gi-cairo      3.22.0-1
ii  python-numpy         1:1.11.2-1
pn  python2.7:any        <none>
pn  python:any           <none>

Versions of packages mypaint recommends:
ii  shared-mime-info  1.7-1

Versions of packages mypaint suggests:
pn  mypaint-data-extras  <none>

-- no debconf information

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-apps-team/attachments/20161217/0d319672/attachment.html>


More information about the Python-apps-team mailing list