Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60151 - Audacity window doesn't open and it crashes - using GTK2
Summary: Audacity window doesn't open and it crashes - using GTK2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-12 09:44 UTC by Marcelo Coraça de Freitas
Modified: 2005-03-04 07:52 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcelo Coraça de Freitas 2004-08-12 09:44:22 UTC
When I start audacity (compiled with gtk2) I get the followed output:

(audacity:32507): Gtk-CRITICAL **: file gtkaccellabel.c: line 214 (gtk_accel_label_new): assertion `string != NULL' failed

(audacity:32507): Gtk-CRITICAL **: file gtkmisc.c: line 211 (gtk_misc_set_alignment): assertion `GTK_IS_MISC (misc)' failed

(audacity:32507): Gtk-CRITICAL **: file gtkcontainer.c: line 949 (gtk_container_add): assertion `GTK_IS_WIDGET (widget)' failed

(audacity:32507): Gtk-CRITICAL **: file gtkaccellabel.c: line 400 (gtk_accel_label_set_accel_widget): assertion `GTK_IS_ACCEL_LABEL (accel_label)' failed
Falha de segmenta
Comment 1 Marcelo Coraça de Freitas 2004-08-12 09:44:22 UTC
When I start audacity (compiled with gtk2) I get the followed output:

(audacity:32507): Gtk-CRITICAL **: file gtkaccellabel.c: line 214 (gtk_accel_label_new): assertion `string != NULL' failed

(audacity:32507): Gtk-CRITICAL **: file gtkmisc.c: line 211 (gtk_misc_set_alignment): assertion `GTK_IS_MISC (misc)' failed

(audacity:32507): Gtk-CRITICAL **: file gtkcontainer.c: line 949 (gtk_container_add): assertion `GTK_IS_WIDGET (widget)' failed

(audacity:32507): Gtk-CRITICAL **: file gtkaccellabel.c: line 400 (gtk_accel_label_set_accel_widget): assertion `GTK_IS_ACCEL_LABEL (accel_label)' failed
Falha de segmentação


Reproducible: Always
Steps to Reproduce:
as root:
1. set USE to "oggvorbis dvd cdr gtk gtk2 qt java gnome kde gnustep alsa esd artsd jack icq aim msn yahoo jabber aalib opengl xv videos xml2 zlib bzlib X 3dnow gd gd-external gif png jpg innodb v4l v4l2 bttv mpeg avi"
2. emerge audacity

as a regular user:

1. audacity

Actual Results:  
I get the followed output:

(audacity:32507): Gtk-CRITICAL **: file gtkaccellabel.c: line 214
(gtk_accel_label_new): assertion `string != NULL' failed

(audacity:32507): Gtk-CRITICAL **: file gtkmisc.c: line 211
(gtk_misc_set_alignment): assertion `GTK_IS_MISC (misc)' failed

(audacity:32507): Gtk-CRITICAL **: file gtkcontainer.c: line 949
(gtk_container_add): assertion `GTK_IS_WIDGET (widget)' failed

(audacity:32507): Gtk-CRITICAL **: file gtkaccellabel.c: line 400
(gtk_accel_label_set_accel_widget): assertion `GTK_IS_ACCEL_LABEL (accel_label)'
failed
Falha de segmentação

Expected Results:  
the program to start

ebuild: audacity-1.2.1
Comment 2 y0zza 2004-08-15 18:21:11 UTC
Same issue here.

(audacity:4407): Gtk-CRITICAL **: file gtkaccellabel.c: line 214 (gtk_accel_label_new): assertion `string != NULL' failed

(audacity:4407): Gtk-CRITICAL **: file gtkmisc.c: line 211 (gtk_misc_set_alignment): assertion `GTK_IS_MISC (misc)' failed

(audacity:4407): Gtk-CRITICAL **: file gtkcontainer.c: line 949 (gtk_container_add): assertion `GTK_IS_WIDGET (widget)' failed

(audacity:4407): Gtk-CRITICAL **: file gtkaccellabel.c: line 400 (gtk_accel_label_set_accel_widget): assertion `GTK_IS_ACCEL_LABEL (accel_label)' failed
Segmentation fault
--
Other info:
Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.4.20040619-r1, 2.6.8.1-nitro1
System uname: 2.6.8.1-nitro1 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.5.2
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O3 -mcpu=pentium4 -march=pentium4 -pipe -ftracer -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
Comment 3 Jeremy Huddleston (RETIRED) gentoo-dev 2004-08-29 03:35:16 UTC
Can you pleasse try CFLAGS="-O2 -pipe"
Comment 4 slur 2004-09-05 00:28:40 UTC
I get the same problem.  
My CFLAGS has -O2.

Any help with this bug would be greatly apprecieated!!

regards, 
slur 
Comment 5 Marcelo Coraça de Freitas 2004-09-05 09:28:28 UTC
The problem is with wxGTK when compiled against gtk2.


The one solution I've found was to do:
# USE="-gtk2" emerge wxGTK audacity

It's working as expected now, but it's still GTK 1 - that shouldn't be a BIG problem...

Hope that helps.
Comment 6 Rob Cakebread (RETIRED) gentoo-dev 2004-12-09 14:03:26 UTC
I can't reproduce this. It works fine with various versions of gtk2 I've tried. A search on google reveals a German page with this problem. From what I can make of it they suggest removing ~/.audacity then try running it.
http://audacity.fuchsi.de/51
Comment 7 Richard Ash 2004-12-29 13:43:09 UTC
Audacitry 1.2.x has never officially supported wxgtk (2.4.x) built with unicode or gtk2 support. Unofficially gtk2 builds usually work in english, but often break internationalised builds with errors like these.

The ~/.audacity file stores user preferences so removing it restores defaults, including english language

This is more or less independant of GTK2 versions - it affects all of the wxGTK builds against GTK2. This was always an experimantal option in wxGTK2.4.2 anyway, although often used.

The current wxgtk 2.4.2 ebuild will install separate gtk 1 and gtk 2 versions of the libs (and possibly unicode), allowing audacity to use the gtk 1 version, which should resolve this problem.

Works here anyway. Just don't try and use wxgtk 2.5.x - everything comes apart. Wait for audacity 1.3.x for that.
Comment 8 Nick Hadaway 2005-01-03 23:58:30 UTC
If you are using the latest builds of wxGTK in the 2.4 (and the 2.5) series.. they are installing 3 different versions of the wx libraries and configurations.

So if we...
1. inherit wxwidgets globally in the audacity-1.2.* ebuild... 
2. add WX_GTK_VER="2.4" globally as audacity doesn't support 2.5
3. and set-wxconfig wxgtk globally to use the gtk1 linked wxGTK
4. Remove the pkg_setup() section as it no longer applies with this fix

Everything compiles and runs fine here in ~x86 land for audacity 1.2.2 AND 1.2.3

I wish I was still the maintainer... oh well... life goes on.
Comment 9 PiFactorial 2005-01-16 21:23:04 UTC
This can be resolved by running:
LANG=en_US audacity
(you may need to delete ~/.audacity first)

Audacity uses the language you select on your first run for the main window, but it uses the LANG environment variable to determine the language of popup windows.  As a result, everything worked fine when I was running Canadian English, but when I clicked "Preferences", it crashed with the aforementioned error.

If you don't speak English, you're out of luck it seems.
Comment 10 Marcelo Coraça de Freitas 2005-01-17 06:02:37 UTC
Well, I had to compile everything in my computer and now audacity is working fine with gtk2 (even in pt_BR language).


regards.
Comment 11 Colin Macdonald 2005-02-24 10:20:15 UTC
After reading #39931, Nick's suggestions in Comment #7 seem like the right thing to do.  At least thats what other ebuilds have been doing (mkvtoolnix, amule, etc).
Comment 12 Rob Cakebread (RETIRED) gentoo-dev 2005-03-03 13:36:06 UTC
Closing - all wxGTK-2.4* versions have a patch to fix this.
Comment 13 Colin Macdonald 2005-03-04 00:25:40 UTC
I would push for reopening and reiterate that comment #7 is the thing to do here...
Comment 14 Rob Cakebread (RETIRED) gentoo-dev 2005-03-04 07:52:40 UTC
Colin, please check out bug# 74224
The attachment does everything in #7, except limit audacity to gtk1 only. I beleive people only have problems with gtk2 if its compiled with unicode, but if there are other problems, its easy enough to remove gtk2 support:
http://bugs.gentoo.org/attachment.cgi?id=52572