First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 48948
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Stephen Isaac <Stephen.Isaac@ic24.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
j2 gnometris patch patch Jonathan Briggs 2004-08-14 03:37 0000 2.17 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 48948 depends on: Show dependency tree
Show dependency graph
Bug 48948 blocks: 59768
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-04-25 09:24 0000
On running Gnometris from command line or application menu, gnometris fails to
start with 'The Application "gnometris" has quit unexpectedly. I've got AMD 64
processor and emerged Gnome 2.6 a week or so ago from 2004.0 base build. I'm
quite new to Linux (1 year) and Gentoo (two months) so hopefully this isn't
something I've screwed up myself.

Running from the Command line I have a few warnings about:
 Gtk-WARNING **: Unable to locate theme engine in module_path: "redmond95",
(four times) and 
 Gtk-WARNING **: Ignoring the separator setting
All other Gnome games launch OK. 
Have tried changing my desktop themes a few times, but still get the warnings. 

Reproducible: Always
Steps to Reproduce:
1. Start game.
2. It crashes
3.

Actual Results:  
error window came up immediately.

Expected Results:  
Shown gnometris application.

AMD64, 3200+, 1GB Ram, Gentoo 2004.0, Gnome 2.6


Portage 2.0.50-r3 (default-amd64-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.5-gentoo)
=================================================================
System uname: 2.6.5-gentoo x86_64 4
Gentoo Base System version 1.4.6
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-O2"
CHOST="x86_64-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/usr/X11R6/lib/X11/xkb /usr/kde/3.2/share/config
/usr/lib/mozill
a/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/te
xmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/plat
ex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://212.219.247.20/sites/www.ibiblio.org/gentoo/
http://212.2
19.247.14/sites/www.ibiblio.org/gentoo/
http://212.219.247.18/sites/www.ibiblio.
org/gentoo/ http://212.219.247.19/sites/www.ibiblio.org/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa amd64 apm arts avi berkdb cdr crypt cups encode esd
foomaticdb
 gdbm gif gnome gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww mikmod
motif
 mozilla mpeg mysql ncurses nls nogcj oggvorbis opengl oss pam pdflib perl png
p
ostgres ppds python qt quicktime readline ruby scanner sdl slang spell ssl
tcltk
 tcpd tetex truetype usb xml2 xmms xv zlib"

------- Comment #1 From Danny van Dyk (RETIRED) 2004-04-25 10:11:13 0000 -------
not "critical"

------- Comment #2 From Jason Huebel 2004-05-25 14:00:50 0000 -------
Backtrace....

#0  0x0000002a9952aa00 in strchr () from /lib/libc.so.6
#1  0x0000002a98ba2962 in g_param_spec_pool_lookup () from /usr/lib/libgobject-2.0.so.0
#2  0x0000002a98b9dea3 in g_object_set_valist () from /usr/lib/libgobject-2.0.so.0
#3  0x0000002a960d4c5e in gnome_canvas_item_construct ()
   from /usr/lib/libgnomecanvas-2.so.0
#4  0x0000002a960d48a3 in gnome_canvas_item_new () from /usr/lib/libgnomecanvas-2.so.0
#5  0x0000000000407c5c in Field::updateSize(_GdkPixbuf*) ()
#6  0x0000000000409353 in Tetris::setupPixmap() ()
#7  0x0000000000408ac4 in Tetris::Tetris(int) ()
#8  0x0000000000406a4e in main ()

------- Comment #3 From Mr. Bones. 2004-06-07 23:33:43 0000 -------
amd64 guys, any thoughts on this bug?

------- Comment #4 From Mr. Bones. 2004-06-21 15:36:16 0000 -------
gnome-games is maintained by gnome.

------- Comment #5 From foser (RETIRED) 2004-06-21 16:40:57 0000 -------
Jason are you seeing the same thing ? Also on amd64 ?

Can you get a backtrace with full debugging output ?

------- Comment #6 From Travis Tilley (RETIRED) 2004-06-21 17:30:05 0000 -------
#0  0x0000002a99748350 in strchr () from /lib/libc.so.6
#1  0x0000002a98d6f092 in g_param_spec_pool_lookup (pool=0x518f50,
    param_name=0x2a00000000 <Address 0x2a00000000 out of bounds>,
    owner_type=7521056, walk_ancestors=1) at gparam.c:745
#2  0x0000002a98d68410 in g_object_set_valist (object=0x72ea70,
    first_property_name=0x2a00000000 <Address 0x2a00000000 out of bounds>,
    var_args=0x7fbfffedc0) at gobject.c:1090
#3  0x0000002a960f8d01 in gnome_canvas_item_construct (item=0x72ea70,
    parent=0x5a6300, first_arg_name=0x40d7ce "fill_color", args=0x7fbfffedc0)
    at gnome-canvas.c:295
#4  0x0000002a960f8f64 in gnome_canvas_item_new (parent=0x5a6300,
    type=7521056, first_arg_name=0x40d7ce "fill_color") at gnome-canvas.c:203
#5  0x0000000000408f83 in Tetris (this=0x52e1b0, cmdlLevel=58) at field.h:35
#6  0x0000000000406a3e in main (argc=5431728, argv=0x7fbffff298) at main.cpp:54

------- Comment #7 From Benjamin Schindler (RETIRED) 2004-07-05 10:24:51 0000 -------
I just tried to trace through the program and foud some things, but not enough
to resolve - I just would like to share:

I'm now working on gnometris from gnome-games-2.6.1 - it also crashes on
startup.

Jason brought in that backtrace, and it failed on:

#5  0x0000000000407c5c in Field::updateSize(_GdkPixbuf*) ()

It's in field.cpp, it fails on line 61, where it calls gnome-canvas-new. The
function updateSize gets called twice until the program crashes, it crashes the
second time. The first time, field->w is not void, however, when called for the
second time, w is zero which is most likely why gnome_canvas_item_new crashes. 
What I have not yet figured out: There is only one Object of type field in
class  tetris and I haven't been able to figure out when the w member of field
gets set to 0x1 (That's the value the debugger showed me)
Suggestions?

------- Comment #8 From Jonathan Briggs 2004-08-14 03:37:57 0000 -------
Created an attachment (id=37404) [edit]
gnometris patch

replace 0 with NULL to terminate gnome_canvas_item_new

------- Comment #9 From Jonathan Briggs 2004-08-14 03:38:42 0000 -------
The bug is because gnometris uses 0 instead of NULL to terminate
gnome_canvas_item_new calls.  gnome_canvas_item_new is a variable argument
function so it is very important that each argument is exactly the expected
size.  0 is a integer.  NULL is a pointer.  On 64-bit systems like AMD64 these
are different sizes.

------- Comment #10 From foser (RETIRED) 2004-08-19 16:03:54 0000 -------
amd64 please test & patch, thnx

------- Comment #11 From Benjamin Schindler (RETIRED) 2004-08-20 00:00:17 0000 -------
Sorry for not coming back to this - but I can confirm that this patch is
working.

------- Comment #12 From Richard Hoelscher 2004-08-23 11:37:34 0000 -------
I'm pretty sure this is the same as upstream
http://bugs.gnome.org/show_bug.cgi?id=148618 . Added link to this bug from
there.

------- Comment #13 From Callum McKenzie 2004-08-23 23:51:52 0000 -------
This has now been fixed in CVS upstream. Thanks for tracking this down.

------- Comment #14 From Stephen Isaac 2004-10-16 06:05:23 0000 -------
Can confirm that this has been fixed and works in gnome-games 2.8.1 on AMD64

------- Comment #15 From Stephen Isaac 2004-10-16 06:14:44 0000 -------
Sorry. Am new to bugzilla. Just realised that I shouldn't have closed this as
am needs to be changed for everyone else that is sticking with gnome 2.6. Sorry
- too keen. 

------- Comment #16 From Alastair Tse (RETIRED) 2004-10-17 12:04:22 0000 -------
added patch to gnome-games 2.6.3

First Last Prev Next    No search results available      Search page      Enter new bug