On Fri, 29 Oct 2010, David Coppa wrote:
> On Fri, 29 Oct 2010, Jiri B. wrote:
>
> >
> > hi,
> >
> > I have found during testing keepassx that QT has some issues when
> > using GTK style :( Theme is OK of course.
> >
> > Using latest snapshots, latest ports snapshot. Is it working for you
> > correctly?
> >
> > $ qtconfig4
> > QGtkStyle was unable to detect the current GTK+ theme.
> > QGtkStyle was unable to detect the current GTK+ theme.
>
> That's not an issue. It's how the thing is designed.
> It requires some additional incantations if you're not using GNOME.
Damn. QGtkStyle doesn't work anymore on OpenBSD with Qt 4.7.0 :(
Here's the failure:
(<unknown>:20320): Pango-WARNING **: shaping failure, expect ugly output.
shape-engine='BasicEngineFc', font='DejaVu Serif 7.9990234375', text='â'
puzzle in free(): error: chunk is already free 0x7eba4c00
Abort trap (core dumped)
And the stack trace:
Thread 2 (process 6243, thread 0x7d318c00):
#0 0x0074d30d in kill () from /usr/lib/libc.so.57.0
#1 0x007aaa65 in abort () at /usr/src/lib/libc/stdlib/abort.c:68
#2 0x007a85ed in wrterror (msg=Variable "msg" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:387
#3 0x007aa4bc in realloc (ptr=0x80739b20, size=8037227) at
/usr/src/lib/libc/stdlib/malloc.c:1420
#4 0x00aee3f6 in g_realloc (mem=0x80739b20, n_bytes=32) at gmem.c:233
#5 0x00ab1bdb in g_array_maybe_expand (array=0x820ce2e8, len=1) at garray.c:686
#6 0x00ab1115 in g_array_append_vals (farray=0x820ce2e8, data=0xcfbf490c,
len=1) at garray.c:353
#7 0x0ba772d7 in pango_ot_ruleset_add_feature (ruleset=0x7f75b0c8,
table_type=PANGO_OT_TABLE_GSUB, feature_index=2, property_bit=65535) at
pango-ot-ruleset.c:345
#8 0x0ba77427 in pango_ot_ruleset_maybe_add_feature (ruleset=0x7f75b0c8,
table_type=PANGO_OT_TABLE_GSUB, feature_tag=1818847073, property_bit=65535)
at pango-ot-ruleset.c:391
#9 0x0ba775bd in pango_ot_ruleset_maybe_add_features (ruleset=0x7f75b0c8,
table_type=PANGO_OT_TABLE_GSUB, features=0x20388040, n_features=4) at
pango-ot-ruleset.c:434
#10 0x0ba77138 in pango_ot_ruleset_new_from_description (info=0x820ce420,
desc=0xcfbf4a38) at pango-ot-ruleset.c:295
#11 0x0ba76ddf in pango_ot_ruleset_get_for_description (info=0x820ce420,
desc=0xcfbf4a38) at pango-ot-ruleset.c:140
#12 0x003893b2 in basic_engine_shape (engine=0x7d400bf0, font=0x85ad13e8,
text=0x8abc8080 "The quick brown fox jumps over the lazy dog.", length=44,
analysis=0x86a2aa4c, glyphs=0x7d400bb0) at basic-fc.c:209
#13 0x0807c746 in _pango_engine_shape_shape (engine=0x7d400bf0,
font=0x85ad13e8, text=0x8abc8080 "The quick brown fox jumps over the lazy
dog.", length=44,
analysis=0x86a2aa4c, glyphs=0x7d400bb0) at pango-engine.c:71
#14 0x08094fed in pango_shape (text=0x8abc8080 "The quick brown fox jumps over
the lazy dog.", length=44, analysis=0x86a2aa4c, glyphs=0x7d400bb0) at shape.c:55
#15 0x08085b22 in shape_run (line=0x8bd0bcd8, state=0xcfbf4c54,
item=0x86a2aa40) at pango-layout.c:3120
#16 0x08085d9d in process_item (layout=0x8374b5c0, line=0x8bd0bcd8,
state=0xcfbf4c54, force_fit=1, no_break_at_end=0) at pango-layout.c:3231
#17 0x080866db in process_line (layout=0x8374b5c0, state=0xcfbf4c54) at
pango-layout.c:3529
#18 0x0808713f in pango_layout_check_lines (layout=0x8374b5c0) at
pango-layout.c:3850
#19 0x08084d11 in pango_layout_get_extents_internal (layout=0x8374b5c0,
ink_rect=0x0, logical_rect=0xcfbf4e98, line_extents=0x0) at pango-layout.c:2431
#20 0x080851d2 in pango_layout_get_extents (layout=0x8374b5c0, ink_rect=0x0,
logical_rect=0xcfbf4e98) at pango-layout.c:2611
#21 0x0474bd34 in _pango_cairo_font_get_metrics (font=0x85ad10f0,
language=0x8189948c) at pangocairo-font.c:334
#22 0x0807192e in pango_font_get_metrics (font=0x85ad10f0, language=0x8189948c)
at fonts.c:1640
#23 0x08087fa0 in pango_layout_get_empty_extents_at_index (layout=0x8374b540,
index=0, logical_rect=0xcfbf5054) at pango-layout.c:4387
#24 0x08088069 in pango_layout_line_get_empty_extents (line=0x8bd0bc58,
logical_rect=0xcfbf5054) at pango-layout.c:4422
#25 0x0808881f in pango_layout_line_get_extents (line=0x8bd0bc58,
ink_rect=0x8bd0bc74, logical_rect=0xcfbf5054) at pango-layout.c:4651
#26 0x06180df9 in gtk_entry_adjust_scroll (entry=0x812b1148) at gtkentry.c:5980
#27 0x0617a682 in gtk_entry_realize (widget=0x812b1148) at gtkentry.c:2811
#28 0x0304d39a in g_cclosure_marshal_VOID__VOID (closure=0x80806a50,
return_value=0x0, n_param_values=1, param_values=0x820ce5a0,
invocation_hint=0xcfbf532c,
marshal_data=0x617a411) at gmarshal.c:79
#29 0x0303435e in g_type_class_meta_marshal (closure=0x80806a50,
return_value=0x0, n_param_values=1, param_values=0x820ce5a0,
invocation_hint=0xcfbf532c,
marshal_data=0x74) at gclosure.c:877
#30 0x0303403a in g_closure_invoke (closure=0x80806a50, return_value=0x0,
n_param_values=1, param_values=0x820ce5a0, invocation_hint=0xcfbf532c) at
gclosure.c:766
#31 0x0304c3f3 in signal_emit_unlocked_R (node=0x8900d800, detail=0,
instance=0x812b1148, emission_return=0x0, instance_and_params=0x820ce5a0) at
gsignal.c:3182
#32 0x0304ba30 in g_signal_emit_valist (instance=0x812b1148, signal_id=16,
detail=0, var_args=0xcfbf557c "\214f\005\003À©Ë\205ÀÙ") at gsignal.c:2983
#33 0x0304bd65 in g_signal_emit (instance=0x812b1148, signal_id=16, detail=0)
at gsignal.c:3040
#34 0x06392f59 in IA__gtk_widget_realize (widget=0x812b1148) at gtkwidget.c:3522
#35 0x0d31cf23 in QGtkStylePrivate::addWidgetToMap (widget=0x812b1148)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:748
#36 0x0d31cfe1 in QGtkStylePrivate::addAllSubWidgets (widget=0x812b1148, v=0x0)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:767
#37 0x06163058 in gtk_combo_box_forall (container=0x812b1060,
include_internals=1, callback=0xd31cfc4
<QGtkStylePrivate::addAllSubWidgets(_GtkWidget*, void*)>,
callback_data=0x0) at gtkcombobox.c:2485
#38 0x0616f954 in IA__gtk_container_forall (container=0x812b1060,
callback=0xd31cfc4 <QGtkStylePrivate::addAllSubWidgets(_GtkWidget*, void*)>,
callback_data=0x0)
at gtkcontainer.c:1506
#39 0x0d31d064 in QGtkStylePrivate::addAllSubWidgets (widget=0x812b1060, v=0x0)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:769
#40 0x0d31d0a0 in QGtkStylePrivate::addWidget (widget=0x812b1060)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:826
#41 0x0d31d560 in QGtkStylePrivate::initGtkWidgets (this=0x7d0a9800)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:543
#42 0x0d317cd2 in QGtkStylePrivate::init (this=0x7d0a9800)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:287
#43 0x0d2feef9 in QGtkStyle (this=0x87336850) at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle.cpp:193
#44 0x0d24014e in QStyleFactory::create (k...@0xcfbf587c)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qstylefactory.cpp:177
#45 0x0ce6e092 in QApplication::style () at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/kernel/qapplication.cpp:1388
#46 0x0ce6ea10 in QApplicationPrivate::initialize (this=0x86619400)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/kernel/qapplication.cpp:930
#47 0x0ce71ada in QApplicationPrivate::construct (this=0x86619400, dpy=0x0,
visual=0, cmap=0)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/kernel/qapplication.cpp:794
#48 0x0ce72bd6 in QApplication (this=0xcfbf59c4, ar...@0xcfbf59e8,
argv=0xcfbf5a24, _internal=263936)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/kernel/qapplication.cpp:712
#49 0x1c007017 in main (argc=1, argv=0xcfbf5a24)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/examples/draganddrop/puzzle/main.cpp:49
Thread 1 (process 6243):
#0 0x0074d30d in kill () from /usr/lib/libc.so.57.0
#1 0x007aaa65 in abort () at /usr/src/lib/libc/stdlib/abort.c:68
#2 0x007a85ed in wrterror (msg=Variable "msg" is not available.
) at /usr/src/lib/libc/stdlib/malloc.c:387
#3 0x007aa4bc in realloc (ptr=0x80739b20, size=8037227) at
/usr/src/lib/libc/stdlib/malloc.c:1420
#4 0x00aee3f6 in g_realloc (mem=0x80739b20, n_bytes=32) at gmem.c:233
#5 0x00ab1bdb in g_array_maybe_expand (array=0x820ce2e8, len=1) at garray.c:686
#6 0x00ab1115 in g_array_append_vals (farray=0x820ce2e8, data=0xcfbf490c,
len=1) at garray.c:353
#7 0x0ba772d7 in pango_ot_ruleset_add_feature (ruleset=0x7f75b0c8,
table_type=PANGO_OT_TABLE_GSUB, feature_index=2, property_bit=65535) at
pango-ot-ruleset.c:345
#8 0x0ba77427 in pango_ot_ruleset_maybe_add_feature (ruleset=0x7f75b0c8,
table_type=PANGO_OT_TABLE_GSUB, feature_tag=1818847073, property_bit=65535)
at pango-ot-ruleset.c:391
#9 0x0ba775bd in pango_ot_ruleset_maybe_add_features (ruleset=0x7f75b0c8,
table_type=PANGO_OT_TABLE_GSUB, features=0x20388040, n_features=4) at
pango-ot-ruleset.c:434
#10 0x0ba77138 in pango_ot_ruleset_new_from_description (info=0x820ce420,
desc=0xcfbf4a38) at pango-ot-ruleset.c:295
#11 0x0ba76ddf in pango_ot_ruleset_get_for_description (info=0x820ce420,
desc=0xcfbf4a38) at pango-ot-ruleset.c:140
#12 0x003893b2 in basic_engine_shape (engine=0x7d400bf0, font=0x85ad13e8,
text=0x8abc8080 "The quick brown fox jumps over the lazy dog.", length=44,
analysis=0x86a2aa4c, glyphs=0x7d400bb0) at basic-fc.c:209
#13 0x0807c746 in _pango_engine_shape_shape (engine=0x7d400bf0,
font=0x85ad13e8, text=0x8abc8080 "The quick brown fox jumps over the lazy
dog.", length=44,
analysis=0x86a2aa4c, glyphs=0x7d400bb0) at pango-engine.c:71
#14 0x08094fed in pango_shape (text=0x8abc8080 "The quick brown fox jumps over
the lazy dog.", length=44, analysis=0x86a2aa4c, glyphs=0x7d400bb0) at shape.c:55
#15 0x08085b22 in shape_run (line=0x8bd0bcd8, state=0xcfbf4c54,
item=0x86a2aa40) at pango-layout.c:3120
#16 0x08085d9d in process_item (layout=0x8374b5c0, line=0x8bd0bcd8,
state=0xcfbf4c54, force_fit=1, no_break_at_end=0) at pango-layout.c:3231
#17 0x080866db in process_line (layout=0x8374b5c0, state=0xcfbf4c54) at
pango-layout.c:3529
#18 0x0808713f in pango_layout_check_lines (layout=0x8374b5c0) at
pango-layout.c:3850
#19 0x08084d11 in pango_layout_get_extents_internal (layout=0x8374b5c0,
ink_rect=0x0, logical_rect=0xcfbf4e98, line_extents=0x0) at pango-layout.c:2431
#20 0x080851d2 in pango_layout_get_extents (layout=0x8374b5c0, ink_rect=0x0,
logical_rect=0xcfbf4e98) at pango-layout.c:2611
#21 0x0474bd34 in _pango_cairo_font_get_metrics (font=0x85ad10f0,
language=0x8189948c) at pangocairo-font.c:334
#22 0x0807192e in pango_font_get_metrics (font=0x85ad10f0, language=0x8189948c)
at fonts.c:1640
#23 0x08087fa0 in pango_layout_get_empty_extents_at_index (layout=0x8374b540,
index=0, logical_rect=0xcfbf5054) at pango-layout.c:4387
#24 0x08088069 in pango_layout_line_get_empty_extents (line=0x8bd0bc58,
logical_rect=0xcfbf5054) at pango-layout.c:4422
#25 0x0808881f in pango_layout_line_get_extents (line=0x8bd0bc58,
ink_rect=0x8bd0bc74, logical_rect=0xcfbf5054) at pango-layout.c:4651
#26 0x06180df9 in gtk_entry_adjust_scroll (entry=0x812b1148) at gtkentry.c:5980
#27 0x0617a682 in gtk_entry_realize (widget=0x812b1148) at gtkentry.c:2811
#28 0x0304d39a in g_cclosure_marshal_VOID__VOID (closure=0x80806a50,
return_value=0x0, n_param_values=1, param_values=0x820ce5a0,
invocation_hint=0xcfbf532c,
marshal_data=0x617a411) at gmarshal.c:79
#29 0x0303435e in g_type_class_meta_marshal (closure=0x80806a50,
return_value=0x0, n_param_values=1, param_values=0x820ce5a0,
invocation_hint=0xcfbf532c,
marshal_data=0x74) at gclosure.c:877
#30 0x0303403a in g_closure_invoke (closure=0x80806a50, return_value=0x0,
n_param_values=1, param_values=0x820ce5a0, invocation_hint=0xcfbf532c) at
gclosure.c:766
#31 0x0304c3f3 in signal_emit_unlocked_R (node=0x8900d800, detail=0,
instance=0x812b1148, emission_return=0x0, instance_and_params=0x820ce5a0) at
gsignal.c:3182
#32 0x0304ba30 in g_signal_emit_valist (instance=0x812b1148, signal_id=16,
detail=0, var_args=0xcfbf557c "\214f\005\003À©Ë\205ÀÙ") at gsignal.c:2983
#33 0x0304bd65 in g_signal_emit (instance=0x812b1148, signal_id=16, detail=0)
at gsignal.c:3040
#34 0x06392f59 in IA__gtk_widget_realize (widget=0x812b1148) at gtkwidget.c:3522
#35 0x0d31cf23 in QGtkStylePrivate::addWidgetToMap (widget=0x812b1148)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:748
#36 0x0d31cfe1 in QGtkStylePrivate::addAllSubWidgets (widget=0x812b1148, v=0x0)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:767
#37 0x06163058 in gtk_combo_box_forall (container=0x812b1060,
include_internals=1, callback=0xd31cfc4
<QGtkStylePrivate::addAllSubWidgets(_GtkWidget*, void*)>,
callback_data=0x0) at gtkcombobox.c:2485
#38 0x0616f954 in IA__gtk_container_forall (container=0x812b1060,
callback=0xd31cfc4 <QGtkStylePrivate::addAllSubWidgets(_GtkWidget*, void*)>,
callback_data=0x0)
at gtkcontainer.c:1506
#39 0x0d31d064 in QGtkStylePrivate::addAllSubWidgets (widget=0x812b1060, v=0x0)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:769
#40 0x0d31d0a0 in QGtkStylePrivate::addWidget (widget=0x812b1060)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:826
#41 0x0d31d560 in QGtkStylePrivate::initGtkWidgets (this=0x7d0a9800)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:543
#42 0x0d317cd2 in QGtkStylePrivate::init (this=0x7d0a9800)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle_p.cpp:287
#43 0x0d2feef9 in QGtkStyle (this=0x87336850) at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qgtkstyle.cpp:193
#44 0x0d24014e in QStyleFactory::create (k...@0xcfbf587c)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/styles/qstylefactory.cpp:177
#45 0x0ce6e092 in QApplication::style () at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/kernel/qapplication.cpp:1388
#46 0x0ce6ea10 in QApplicationPrivate::initialize (this=0x86619400)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/kernel/qapplication.cpp:930
#47 0x0ce71ada in QApplicationPrivate::construct (this=0x86619400, dpy=0x0,
visual=0, cmap=0)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/kernel/qapplication.cpp:794
#48 0x0ce72bd6 in QApplication (this=0xcfbf59c4, ar...@0xcfbf59e8,
argv=0xcfbf5a24, _internal=263936)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/src/gui/kernel/qapplication.cpp:712
#49 0x1c007017 in main (argc=1, argv=0xcfbf5a24)
at
/usr/ports/pobj/qt4-4.7.0-debug/qt-everywhere-opensource-src-4.7.0/examples/draganddrop/puzzle/main.cpp:49