Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254601 - app-misc/alexandria-0.6.3 crashes on missing tooltip (book information)
Summary: app-misc/alexandria-0.6.3 crashes on missing tooltip (book information)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 253573
  Show dependency tree
 
Reported: 2009-01-12 02:57 UTC by Shyam Mani (RETIRED)
Modified: 2009-01-18 10:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Backport the fix from upstream SVN (alexandria-0.6.3-tooltips.patch,2.30 KB, patch)
2009-01-13 21:47 UTC, John Keeping
Details | Diff
Updated ebuild to apply the above patch (alexandria-0.6.3-r1.ebuild,1.71 KB, text/plain)
2009-01-13 21:48 UTC, John Keeping
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Shyam Mani (RETIRED) gentoo-dev 2009-01-12 02:57:33 UTC
Added a book to my collection (will add the exact ISBN to the bug when I get the book back) and after doing so, when I mouse over on the book in My Library, alexandria crashes with the following trace :

shyam@trinity ~ $ alexandria 
/usr/lib/ruby/site_ruby/1.8/alexandria/ui/iconview_tooltips.rb:85:in `label_for_book': undefined method `size' for nil:NilClass
	 from /usr/lib/ruby/site_ruby/1.8/alexandria/ui/iconview_tooltips.rb:116:in `on_motion'
	 from /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:51:in `call'
	 from /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:51:in `main'
	 from /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:51:in `start_gtk'
	 from /usr/lib/ruby/site_ruby/1.8/alexandria/ui.rb:57:in `main'
	 from /usr/lib/ruby/site_ruby/1.8/alexandria.rb:40:in `main'
	 from /usr/bin/alexandria:27

I'm blocking the stablereq bug, since I don't think this is stable enough, yet?
Comment 1 John Keeping 2009-01-12 09:10:07 UTC
This looks like bug #215634 to me. I definitely found that bug via Alexandria and your backtrace looks similar to what I remember. What version of ruby-gtk2 do you have installed?
Comment 2 Shyam Mani (RETIRED) gentoo-dev 2009-01-13 06:44:18 UTC
(In reply to comment #1)
> This looks like bug #215634 to me. I definitely found that bug via Alexandria
> and your backtrace looks similar to what I remember. What version of ruby-gtk2
> do you have installed?

# eix ruby-gtk2
[I] dev-ruby/ruby-gtk2
     Available versions:  0.16.0-r2 (~)0.16.0-r3 0.16.0-r4
     Installed versions:  0.16.0-r4(15:11:30 08/01/09)
     Homepage:            http://ruby-gnome2.sourceforge.jp/
     Description:         Ruby Gtk2 bindings
Comment 3 John Keeping 2009-01-13 09:22:09 UTC
Sorry, I wasn't thinking when I posted my last comment - that bug caused a segfault not a ruby backtrace but my mind saw tooltips and immediately jumped to it.

I've just recreated this on my install - it happens when you have a book with no publisher. You can't add a book like this manually, but you can delete the publisher after its been created.

Tonight I'll see if the problem exists in SVN and file a bug upstream if it does.
Comment 4 John Keeping 2009-01-13 21:47:31 UTC
Created attachment 178413 [details, diff]
Backport the fix from upstream SVN

This issue seems to be fixed in upstream SVN and this patch applies those changes to the current version.
Comment 5 John Keeping 2009-01-13 21:48:01 UTC
Created attachment 178414 [details]
Updated ebuild to apply the above patch
Comment 6 Shyam Mani (RETIRED) gentoo-dev 2009-01-15 05:00:58 UTC
(In reply to comment #4)
> Created an attachment (id=178413) [edit]
> Backport the fix from upstream SVN
> 
> This issue seems to be fixed in upstream SVN and this patch applies those
> changes to the current version.

John,

Verified the patch fixes the issue. 

Comment 7 John Keeping 2009-01-15 19:42:42 UTC
In which case, could someone please submit it to CVS?
Comment 8 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-01-18 10:53:38 UTC
(In reply to comment #7)
> In which case, could someone please submit it to CVS?
> 

[11:51:20] <+CIA-22> a3li * gentoo-x86/app-misc/alexandria/ (3 files in 2 dirs): 
[11:51:20] <+CIA-22> Revbump to fix bug 254601, thanks to John Keeping for the patch.
[11:51:20] <+CIA-22> (Portage version: 2.2_rc22/cvs/Linux 2.6.28-gentoo x86_64)

done. :)