After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 318772 - Program crashes when new Color is created
Program crashes when new Color is created
Status: VERIFIED FIXED
Product: java-gnome
Classification: Bindings
Component: GTK
mainline
Other All
: High critical
: ---
Assigned To: Ismael Juma
Ismael Juma
Depends on:
Blocks:
 
 
Reported: 2005-10-13 15:04 UTC by Adam Jocksch
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Adam Jocksch 2005-10-13 15:04:17 UTC
Steps to reproduce:
The following test case crashes:

import org.gnu.gdk.Color;
import org.gnu.gtk.Gtk;

public class ColorTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Gtk.init(args);
		
		Color c = new Color(0,0,0);
		System.gc();
		Gtk.main();
	}
}

Stack trace:
Could not generate a stack trace, but the following message is displayed:
Gdk-ERROR **: file gdkcolor.c: line 145 (gdk_color_free): assertion failed:
(color_chunk != NULL)

Other information:
Comment 1 Ismael Juma 2005-10-13 20:51:19 UTC
Thanks for reporting this. Fixed in CVS HEAD.