Scrolling in browser causes crash

Bug #1017111 reported by Minami-o
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phraymd
Fix Committed
Undecided
dmoore

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)

Tags: browser
Revision history for this message
Minami-o (minami-o) wrote :

Just missed one mistake in the code in the first attachment...

Revision history for this message
dmoore (damien-moore) wrote : Re: [Bug 1017111] Re: Scrolling in browser causes crash

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
>
> ** Attachment added: "Corrected browser.py (v2)"
>
> https://bugs.launchpad.net/phraymd/+bug/1017111/+attachment/3202464/+files/browser.py
>
> --
> You received this bug notification because you are subscribed to
> phraymd.
> https://bugs.launchpad.net/bugs/1017111
>
> Title:
> Scrolling in browser causes crash
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/phraymd/+bug/1017111/+subscriptions
>

Revision history for this message
Minami-o (minami-o) wrote :
Download full text (3.2 KiB)

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/+file...

Read more...

Revision history for this message
dmoore (damien-moore) wrote :

fix committed in rev600 of lp:phraymd. Thanks again.

Changed in phraymd:
assignee: nobody → dmoore (damien-moore)
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.