Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111707 - ruby-1.8.4_pre1 can't load some of qtruby's widgets
Summary: ruby-1.8.4_pre1 can't load some of qtruby's widgets
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Ruby Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-06 10:04 UTC by Andreas Schäfer
Modified: 2005-12-07 11:05 UTC (History)
1 user (show)

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


Attachments
Test code to reproduce the bug (test.rb,512 bytes, text/plain)
2005-11-06 10:05 UTC, Andreas Schäfer
Details
This is how it should NOT look (screenshot_failed.png,32.00 KB, image/png)
2005-11-06 10:07 UTC, Andreas Schäfer
Details
Yepp, this is what I expected (screenshot_ok.png,32.66 KB, image/png)
2005-11-06 10:08 UTC, Andreas Schäfer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schäfer 2005-11-06 10:04:10 UTC
I've written a short test program which creates two widgets using qtruby. 
This code fails if i emerge ruby-1.8.4_pre1 (i.e. displays nothing but a grey
box) and works (i.e. displays the right widgets) when i emerge ruby-1.8.3. 

I suspect, the widget which causes the failure is Qt::MainWindow. But without
this, qtruby is rendered merely useless.

Please see the screenshots for the results I get respectively I'm expecting.

The weird thing is, that I don't even get any error messages - just a blank window.

I hope this was helpful, please let me know if you need to know anything more!
-Andreas

Reproducible: Always
Steps to Reproduce:
1. emerge =dev-lang/ruby-1.8.4_pre1
2. emerge qtruby
3. ruby test.rb

Actual Results:  
A blank window appears (see screenshot_failed.png)

Expected Results:  
A window including a green box should appear (see screenshot_ok.png)

wintermute ~ # emerge info
Portage 2.0.53_rc7 (default-linux/x86/2005.1, gcc-3.3.6, glibc-2.3.5-r3,
2.6.13-gentoo-r5 i686)
=================================================================
System uname: 2.6.13-gentoo-r5 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.12.0_pre9
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-O3 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/
http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/
http://gd.tuwien.ac.at/opsys/linux/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/
http://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo
ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo
ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/"
LINGUAS="de en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aac alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts
browserplugin cdr crypt cups curl dba divx4linux dvd dvdread eds emacs emboss
encode f77 fam foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib
ipv6 java jpeg kde libg++ libwww lirc mad mikmod mjpeg mmx motif mp3 mpeg
musicbrainz mysql ncurses nls nvidia ogg oggvorbis opengl oss pam pdflib perl
png ppds python qt quicktime readline ruby sdl session slang spell sse ssl tcltk
tcpd tetex threads tiff truetype truetype-fonts type1-fonts udev usb vorbis x86
xine xml2 xmms xprint xscreensaver xv xvid zlib linguas_de linguas_en
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Andreas Schäfer 2005-11-06 10:05:52 UTC
Created attachment 72319 [details]
Test code to reproduce the bug
Comment 2 Andreas Schäfer 2005-11-06 10:07:03 UTC
Created attachment 72320 [details]
This is how it should NOT look
Comment 3 Andreas Schäfer 2005-11-06 10:08:31 UTC
Created attachment 72321 [details]
Yepp, this is what I expected
Comment 4 Andreas Schäfer 2005-11-06 10:11:50 UTC
btw: I'm using kde-base/qtruby-3.4.3 (if that is important)
Comment 5 Caleb Tennis (RETIRED) gentoo-dev 2005-11-06 11:21:03 UTC
There was a thread on ruby-lang just a few days about about this same thing, only it was in Debian.  The 
problem hasn't  been found yet, though, so it's not yet fixed.
Comment 6 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-05 16:50:58 UTC
Sigh, same goes on 3.5 on amd64. 
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-05 16:53:40 UTC
FWIW, the problem seems to be the "super" call. After that, no code is execute 
in initialize function, at least on my case. 
 
Comment 8 Caleb Tennis (RETIRED) gentoo-dev 2005-12-05 17:03:56 UTC
See here for another user report:

http://lists.kde.org/?l=kde-bindings&m=113259105123269&w=2
Comment 9 Caleb Tennis (RETIRED) gentoo-dev 2005-12-06 12:53:15 UTC
Bumped qtruby versions in the tree with patches to fix this error. 
Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-07 03:32:05 UTC
qtruby 3.5.0-r1 does not fix this for me, at least when using korundum. 
The xmlmenudemo.rb example in kdebindings package still fails. 
 
Comment 11 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-12-07 11:05:34 UTC
Should be fixed after rebuilding korundum with the patch, too.