Comment 4 for bug 1017111

Revision history for this message
Minami-o (minami-o) wrote : Re: [Bug 1017111] Re: Scrolling in browser causes crash

Hello,
I'm using:
 - dev-python/pygtk-2.24.0-r2
 -
dev-python/pygtksourceview-2.10.1
 - x11-libs/gtk+-2.24.10-r1 and
-3.2.4-r1

I was also surprised that no one had mentioned this bug
earlier, but I thought my "corrected" file might be useful to anyone
with the same configuration as mine...
Probably a configuration issue,
although I can't see where it might come from... :p
Cheers

Le
2012-06-24 15:14, dmoore a écrit :

> Thanks for the report and patch.
I will take a look later tonight. What gtk
> and pygtk versions are you
using? I haven't had this problem on various
> Ubuntus through 12.04
>
On Jun 24, 2012 9:10 AM, "Minami-o" <email address hidden> wrote:
>
>>
Just missed one mistake in the code in the first attachment... **
Attachment removed: "Corrected browser.py"
https://bugs.launchpad.net/phraymd/+bug/1017111/+attachment/3202384/+files/browser.py
[2] ** Attachment added: "Corrected browser.py (v2)"
https://bugs.launchpad.net/phraymd/+bug/1017111/+attachment/3202464/+files/browser.py
[3] -- You received this bug notification because you are subscribed to
phraymd. https://bugs.launchpad.net/bugs/1017111 [4] Title: Scrolling in
browser causes crash To manage notifications about this bug go to:
https://bugs.launchpad.net/phraymd/+bug/1017111/+subscriptions [5]
>
>
--
> You received this bug notification because you are subscribed to
the bug
> report.
> https://bugs.launchpad.net/bugs/1017111
>
>
Title:
> Scrolling in browser causes crash
>
> Status in phraymd - An
Image Collection Manager:
> New
>
> Bug description:
> Hi there,
> Just
been using phraymd for a few minutes and facing a very annoying bug in
the browser: every now and then, when scrolling the vertical bar, the
app would just stop responding.
> The terminal behind showed some float
error in browser.py, so I just added an int() where it seemed necessary
and it happened to solve the issue.
>
> The first error was:
> ----
>
Traceback (most recent call last):
> File
"/usr/share/phraymd/modules/phraymd/browser.py", line 647, in
expose_signal
> self.realize_signal(event)
> File
"/usr/share/phraymd/modules/phraymd/browser.py", line 778, in
realize_signal
>
drawable.draw_pixbuf(None,overlay_pb,0,0,x+self.geo_pad/2+(self.geo_thumbwidth-thumbwidth)/2,ly,-1,-1)
>
TypeError: integer argument expected, got float
> ----
>
> After this
first correction, I had the very same issue in the line below:
> ----
>
Traceback (most recent call last):
> File
"/usr/share/phraymd/modules/phraymd/browser.py", line 647, in
expose_signal
> self.realize_signal(event)
> File
"/usr/share/phraymd/modules/phraymd/browser.py", line 779, in
realize_signal
> drawable.draw_layout(gc,lx,ly,l,white)
> TypeError:
integer argument expected, got float
> ----
>
> Enclosed is the
corrected browser.py
> (PHRAYMD_DIR/modules/phraymd/browser.py)
>
> My
configuration:
> Gentoo 3.2.12 - 32bits
> Python 2.7 (plus 3.2)
>
> To
manage notifications about this bug go to:
>
https://bugs.launchpad.net/phraymd/+bug/1017111/+subscriptions

Links:
------
[1]
https://bugs.launchpad.net/phraymd/+bug/1017111/+attachment/3202384/+files/browser.py
[2]
https://bugs.launchpad.net/phraymd/+bug/1017111/+attachment/3202464/+files/browser.py
[3]
https://bugs.launchpad.net/bugs/1017111
[4]
https://bugs.launchpad.net/phraymd/+bug/1017111/+subscriptions