Description of problem: Just finished a rectangle in my first game. Version-Release number of selected component: apx-0.1-3.fc23 Additional info: reporter: libreport-2.6.2 cmdline: /usr/bin/python2 /usr/bin/apx dso_list: python-gobject-base-3.18.0-1.fc23.x86_64 executable: /usr/bin/apx kernel: 4.2.2-300.fc23.x86_64 runlevel: N 5 type: Python uid: 1000 Truncated backtrace: module.py:137:__getattr__:AttributeError: 'gi.repository.Gdk' object has no attribute 'rectangle_union' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/apx/lib/graphics.py", line 1975, in do_draw sprite._draw(context) File "/usr/lib/python2.7/site-packages/apx/lib/graphics.py", line 1282, in _draw sprite._draw(context, self.opacity * opacity, matrix * parent_matrix) File "/usr/lib/python2.7/site-packages/apx/lib/graphics.py", line 1282, in _draw sprite._draw(context, self.opacity * opacity, matrix * parent_matrix) File "/usr/lib/python2.7/site-packages/apx/lib/graphics.py", line 1282, in _draw sprite._draw(context, self.opacity * opacity, matrix * parent_matrix) File "/usr/lib/python2.7/site-packages/apx/lib/graphics.py", line 1252, in _draw self.graphics._draw_as_bitmap(context, self.opacity * opacity) File "/usr/lib/python2.7/site-packages/apx/lib/graphics.py", line 589, in _draw_as_bitmap extents = gdk.rectangle_union(extents, exts) File "/usr/lib64/python2.7/site-packages/gi/overrides/__init__.py", line 39, in __getattr__ return getattr(self._introspection_module, name) File "/usr/lib64/python2.7/site-packages/gi/module.py", line 137, in __getattr__ self.__name__, name)) AttributeError: 'gi.repository.Gdk' object has no attribute 'rectangle_union' Local variables in innermost frame: info: None self: <IntrospectionModule 'Gdk' from '/usr/lib64/girepository-1.0/Gdk-3.0.typelib'> name: 'rectangle_union'
Created attachment 1080993 [details] File: backtrace
Created attachment 1080994 [details] File: environ
This is a bug in pygobject3 as backtrace identicates, reassigning to there. It's not possible to use BuildRequires and check for valid dependencies at build time cause of introspection usage in apx' python source. Though, we'd never seen such a crash in prior, maybe some strange things happened into F23 packages.
I have issued a pull request to upstream that fixes the problem from within apx. However, I have no equipment nor time to test it with older GTK/GDK versions right now. I'm not sure this is a pygobject error, as pygobject is not involved at all; both Gtk and Gdk are pulled in from the GI repository. Calling Gdk.rectangle_union() is a bad habit anyway, as far as I understand. Calling rect_a.union(rect_b) is more Gdk'ish.
I backported the upstream fix to pygobject3-3.18.0-2.fc23, can you try if this helps, please?
pygobject3-3.18.0-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-90e6da9e85
pygobject3-3.18.0-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update pygobject3' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-90e6da9e85
pygobject3-3.18.0-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.