delorie.com/archives/browse.cgi   search  
Mail Archives: geda-help/2021/03/02/15:00:36

X-Authentication-Warning: delorie.com: mail set sender to geda-help-bounces using -f
X-Recipient: geda-help AT delorie DOT com
X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7+dev
X-Exmh-Isig-CompType: repl
X-Exmh-Isig-Folder: inbox
From: "karl AT aspodata DOT se [via geda-help AT delorie DOT com]" <geda-help AT delorie DOT com>
To: geda-help AT delorie DOT com
Subject: Re: [geda-help] Re: Gschem segfaults
In-reply-to: <20210302185121.27316.qmail@stuge.se>
References: <xnh7nchcyj DOT fsf AT envy DOT delorie DOT com> <4b1d3d85-7f93-9eac-c4eb-9f84f2a47e61 AT bitflipper DOT ca> <CAMw9acBn7xNo5jvrvS6Dof6JtYgOOLVKJwFFTu93S+CoPszjHw AT mail DOT gmail DOT com> <20210225212042 DOT 16269 DOT qmail AT stuge DOT se> <20210226140333 DOT 7D5E78248737 AT turkos DOT aspodata DOT se> <20210226203024 DOT 8107 DOT qmail AT stuge DOT se> <20210226220140 DOT D69CD824873C AT turkos DOT aspodata DOT se> <20210302145834 DOT 24761 DOT qmail AT stuge DOT se> <20210302154815 DOT 39C3682475BD AT turkos DOT aspodata DOT se> <20210302185121 DOT 27316 DOT qmail AT stuge DOT se>
Comments: In-reply-to "Peter Stuge (peter AT stuge DOT se) [via geda-help AT delorie DOT com]" <geda-help AT delorie DOT com>
message dated "Tue, 02 Mar 2021 18:51:21 +0000."
Mime-Version: 1.0
Message-Id: <20210302200007.E0E2082475BF@turkos.aspodata.se>
Date: Tue, 2 Mar 2021 21:00:07 +0100 (CET)
X-Virus-Scanned: ClamAV using ClamSMTP
Reply-To: geda-help AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-help AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Peter:
...
> What's your gtk version? You can check with emerge or:
> 
> echo /var/db/pkg/*/gtk+*

$ ls -1d /var/db/pkg/*/gtk+*
/var/db/pkg/x11-libs/gtk+-2.24.32-r1
/var/db/pkg/x11-libs/gtk+-3.24.24-r1
/var/db/pkg/x11-libs/gtk+extra-3.3.4
$

Well, this is Gentoo, I can have multiple versions installed.

$ grep gtk+ config.log 
configure:17495: checking for gtk+-2.0 >= 2.18.0
configure:17502: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18.0"
configure:17519: $PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.18.0"
$ ldd /usr/local/bin/gschem | grep gtk
        libgtk-x11-2.0.so.0 => /usr/lib64/libgtk-x11-2.0.so.0 (0x00007f18ae5aa000)
$

...
> Please apply it onto the 1.10.2 source and let's see what happens when
> starting gschem then:
> 
> cd geda-gaf-1.10.2
> patch -p0 < /tmp/geda-gaf-1.10.2-text-drawable.patch

I need this change for it to compile:

  //GdkWidget *window;
  GdkWindow *window;

$ /usr/local/bin/gschem
...
;;; compiled /home/karl/.cache/guile/ccache/2.0-LE-8-2.0/home/local/share/gEDA/scheme/auto-place-netname.scm.go

(gschem:24247): Gdk-CRITICAL **: 20:35:35.704: IA__gdk_drawable_get_size: assertion 'GDK_IS_DRAWABLE (drawable)' failed

** (gschem:24247): CRITICAL **: 20:35:35.704: gschem_page_geometry_set_values: assertion 'screen_width > 0' failed

** (gschem:24247): CRITICAL **: 20:35:35.704: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:24247): CRITICAL **: 20:35:35.704: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:24247): CRITICAL **: 20:35:35.704: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:24247): CRITICAL **: 20:35:35.704: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:24247): CRITICAL **: 20:35:35.704: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:24247): CRITICAL **: 20:35:35.704: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

(gschem:24247): Gdk-CRITICAL **: 20:35:35.704: IA__gdk_drawable_get_size: assertion 'GDK_IS_DRAWABLE (drawable)' failed

** (gschem:24247): CRITICAL **: 20:35:35.704: gschem_page_geometry_set_values: assertion 'screen_width > 0' failed

** (gschem:24247): CRITICAL **: 20:35:35.732: gschem_page_geometry_set_values: assertion 'viewport_left != viewport_right' failed

** (gschem:24247): CRITICAL **: 20:35:35.732: gschem_page_geometry_set_values: assertion 'viewport_left != viewport_right' failed

 yes, the window gets mapped, and a lot of the viewport messages, both
 in the terminal and in the log window. The main canvas is light grey,
 menus, statusbar below, scrollbars and toolbar are visible.

 The next time I start gschem, I get dark theme as per config file, I get this:

$ /usr/local/bin/gschem 

(gschem:25901): Gdk-CRITICAL **: 20:40:56.427: IA__gdk_drawable_get_size: assertion 'GDK_IS_DRAWABLE (drawable)' failed

** (gschem:25901): CRITICAL **: 20:40:56.427: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:25901): CRITICAL **: 20:40:56.427: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:25901): CRITICAL **: 20:40:56.427: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:25901): CRITICAL **: 20:40:56.427: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:25901): CRITICAL **: 20:40:56.427: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

** (gschem:25901): CRITICAL **: 20:40:56.427: o_text_get_rendered_bounds: assertion '(window != NULL)' failed

(gschem:25901): libgedacairo-CRITICAL **: 20:40:56.443: file edarenderer.c: line 585 (eda_renderer_draw_hatch): should not be reached

(gschem:25901): libgedacairo-WARNING **: 20:40:56.443: (edacairo.c:401):eda_cairo_stroke: code should not be reached

(gschem:25901): libgedacairo-WARNING **: 20:40:56.443: (edacairo.c:401):eda_cairo_stroke: code should not be reached

(gschem:25901): libgedacairo-CRITICAL **: 20:40:56.443: file edarenderer.c: line 585 (eda_renderer_draw_hatch): should not be reached

(gschem:25901): libgedacairo-WARNING **: 20:40:56.443: (edacairo.c:401):eda_cairo_stroke: code should not be reached

(gschem:25901): libgedacairo-WARNING **: 20:40:56.443: (edacairo.c:401):eda_cairo_stroke: code should not be reached
^C

 The third time, I'm back to the grey canvas and the viewport messages.
 Using File->Quit, I get:

** (gschem:27138): CRITICAL **: 20:45:08.685: gschem_page_geometry_set_values: assertion 'viewport_left != viewport_right' failed

** (gschem:27138): CRITICAL **: 20:45:11.666: update_cap_style_widget: assertion 'dialog->line_end != NULL' failed
Segmentation fault (core dumped)

 Nxt, back at black theme, where all things seem to work, ehh, I get 
 pairs of this.

(gschem:27793): libgedacairo-CRITICAL **: 20:48:28.093: file edarenderer.c: line 585 (eda_renderer_draw_hatch): should not be reached

(gschem:27793): libgedacairo-WARNING **: 20:48:28.093: (edacairo.c:401):eda_cairo_stroke: code should not be reached

///

 When reporting thoose failed messages to the log window, it would be 
 nice if you could add a '\n', I get overlong lines with errors:

gschem_page_geometry_set_values: assertion 'screen_width > 0' failedo_text_get_rendered_bounds: assertion '(window != NULL)' failedo_text_get_rendered_bounds: assertion '(window != NULL)' failedo_text_get_rendered_bounds: assertion '(window != NULL)' failedo_text_get_rendered_bounds: assertion '(window != NULL)' failedo_text_get_rendered_bounds: assertion '(window != NULL)' failedo_text_get_rendered_bounds: assertion '(window != NULL)' failedo_text_get_rendered_bounds: assertion '(window != NULL)' failedo_
[...]

Regards,
/Karl Hammar


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019