Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1269901 - [abrt] apx: module.py:137:__getattr__:AttributeError: 'gi.repository.Gdk' object has no attribute 'rectangle_union'
Summary: [abrt] apx: module.py:137:__getattr__:AttributeError: 'gi.repository.Gdk' obj...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: pygobject3
Version: 23
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: John (J5) Palmieri
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:024dc1cec7a14730eb67ba4a10b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-08 13:01 UTC by Gergely Polonkai
Modified: 2015-11-01 02:33 UTC (History)
5 users (show)

Fixed In Version: pygobject3-3.18.0-2.fc23
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-01 02:33:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.47 KB, text/plain)
2015-10-08 13:02 UTC, Gergely Polonkai
no flags Details
File: environ (1.56 KB, text/plain)
2015-10-08 13:02 UTC, Gergely Polonkai
no flags Details

Description Gergely Polonkai 2015-10-08 13:01:57 UTC
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'

Comment 1 Gergely Polonkai 2015-10-08 13:02:02 UTC
Created attachment 1080993 [details]
File: backtrace

Comment 2 Gergely Polonkai 2015-10-08 13:02:05 UTC
Created attachment 1080994 [details]
File: environ

Comment 3 Raphael Groner 2015-10-08 13:55:53 UTC
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.

Comment 4 Gergely Polonkai 2015-10-08 19:43:48 UTC
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.

Comment 5 Kalev Lember 2015-10-19 11:50:05 UTC
I backported the upstream fix to pygobject3-3.18.0-2.fc23, can you try if this helps, please?

Comment 6 Fedora Update System 2015-10-19 12:00:13 UTC
pygobject3-3.18.0-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-90e6da9e85

Comment 7 Fedora Update System 2015-10-19 16:24:28 UTC
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

Comment 8 Fedora Update System 2015-11-01 02:33:38 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.