[lazarus] Wierd crash

Andrew Johnson acjgenius at earthlink.net
Thu Dec 18 10:01:51 EST 2003


this happened for me on my laptop as well, so I took a look, I am not
for sure why, but for some reason GTK_RC_GET_STYLE is not always
returning NIL in some situations. And a few places that use GetStyle
don't check to make sure its returning a valid Style, thus the crash. 

In any event, I have committed a change to use gtk_widget_get_style
instead, and it appears to work again.

Andrew

On Thu, 2003-12-18 at 03:55, A.J. Venter wrote:
> New CVS checkout this morning, compiled fine but when I try to run it:
> 
> 
> Gdk-WARNING **: locale not supported by Xlib, locale set to C
> 
> Gdk-WARNING **: can not set locale modifiers
> 
> Gtk-CRITICAL **: file gtkwidget.c: line 3398 (gtk_widget_set_style):
> assertion `style != NULL' failed.
> NOTE: editor options config file not found - using defaults
> NOTE: miscellaneous options file not found - using defaults
> NOTE: codetools config file not found - using defaults
> 
> Gtk-CRITICAL **: file gtkwidget.c: line 3398 (gtk_widget_set_style):
> assertion `style != NULL' failed.
> 
> Gtk-CRITICAL **: file gtkwidget.c: line 3398 (gtk_widget_set_style):
> assertion `style != NULL' failed.
> TMainIDE.DoNewProject A
> TMainIDE.DoNewEditorFile A NewFilename=
> TPascalParserTool.BuildTree B OnlyIntf=FALSE  project1.lpr
> 
> Gtk-CRITICAL **: file gtkwidget.c: line 3398 (gtk_widget_set_style):
> assertion `style != NULL' failed.
> [TCustomFormEditor.CreateComponent] Class='TFORM'
> TPascalParserTool.BuildTree B OnlyIntf=FALSE  project1.lpr
> 
> Gtk-CRITICAL **: file gtkwidget.c: line 3398 (gtk_widget_set_style):
> assertion `style != NULL' failed.
> 
> Gtk-CRITICAL **: file gtkwidget.c: line 3398 (gtk_widget_set_style):
> assertion `style != NULL' failed.
> TMainIDE.DoNewEditorFile end unit1.pas
> TMainIDE.DoNewProject end 0
> TApplication.HandleException Access violation
> TApplication.HideAllFormsWithStayOnTop :TSPLASHFORM
> 
> Gtk-CRITICAL **: file gtkwidget.c: line 3398 (gtk_widget_set_style):
> assertion `style != NULL' failed.
> TApplication.HandleException: there was another exception during showing
> the first exception
> TApplication.HandleException: there was another exception during showing
> the first exception
> [TMainIDE.Destroy] A
> lazarus.pp - unhandled exception
> [FORMS.PP] ExceptionOccurred
> 
> Any idea what's up ? 
> The system is slackware 9.1






More information about the Lazarus mailing list