Mail Archives: geda-help/2021/03/02/15:00:36
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 -