Comments (9)
Do you have gtk3 installed on the system?
from gtkd.
Yes, I am using gnome 3.4.
I tested glade 3.12 and the previewer works.
from gtkd.
if it can help, this is gdb trace:
(gdb) where
#0 0x00000000 in ?? ()
#1 0x084812e6 in glib.Module.Module.open() (flags=, fileName=...)
at glib/Module.d:181
#2 0x084e8b79 in gtk.Builder.Builder.gtk_builder_real_get_type_from_name_override() (builder=0x87bd518, name=0x8812a88 "GtkButton") at gtk/Builder.d:445
#3 0xb7014776 in gtk_builder_get_type_from_name (builder=builder@entry=0x87bd518,
type_name=0x8812a88 "GtkButton")
at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkbuilder.c:2041
#4 0xb7015847 in _gtk_builder_construct (builder=0x87bd518, info=0x8812e40,
error=error@entry=0xbffff154)
at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkbuilder.c:591
#5 0xb70163ee in builder_construct (error=0xbffff154,
object_info=, data=)
at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkbuilderparser.c:195
#6 builder_construct (object_info=object_info@entry=0x8812e40,
error=error@entry=0xbffff154,
data=<error reading variable: Unhandled dwarf expression opcode 0xfa>)
at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkbuilderparser.c:182
#7 0xb70181f5 in end_element (error=0xbffff154, user_data=0x87af338,
element_name=0x87ad730 "object", context=)
at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkbuilderparser.c:993
#8 end_element (context=0x87ad5c8, element_name=,
user_data=0x87af338, error=0xbffff154)
at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkbuilderparser.c:927
#9 0xb7aaad90 in g_markup_parse_context_parse ()
from /lib/i386-linux-gnu/libglib-2.0.so.0
#10 0xb70185b9 in _gtk_builder_parser_parse_buffer (
builder=builder@entry=0x87bd518,
filename=filename@entry=0xb7d6df40 "builderTest.glade",
buffer=0x87ad310 "\n <object class="GtkWindow" id="window1">\n <property name="can_focus">False\n <property name="default_width">200\n <property name="default_height">15</property"...,
length=609, requested_objs=requested_objs@entry=0x0,
error=error@entry=0xbffff200)
at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkbuilderparser.c:1175
#11 0xb70136cc in gtk_builder_add_from_file (builder=0x87bd518,
filename=0xb7d6df40 "builderTest.glade", error=0xbffff23c)
at /build/buildd-gtk+3.0_3.4.2-4-i386-QQNfyz/gtk+3.0-3.4.2/./gtk/gtkbuilder.c:897
#12 0x084e9313 in gtk.Builder.Builder.addFromFile() (this=0xb7d6df60,
filename=603944140656345105) at gtk/Builder.d:653
#13 0x0845c8b8 in D main (args=...) at builderTest.d:41
#14 0x085e0de4 in rt.dmain2._d_run_main() ()
#15 0x085e0a90 in rt.dmain2._d_run_main() ()
#16 0x085e0e22 in rt.dmain2._d_run_main() ()
#17 0x085e0a90 in rt.dmain2._d_run_main() ()
#18 0x085e0a61 in _d_run_main ()
#19 0x085e0934 in main ()
from gtkd.
I'm setting up an 32bits vm to take closer look at this, there seems to be an bug in the name_override function.
from gtkd.
Same problem on LMDE 64-bit. No problem running it on Ubuntu 12.04 and 12.10 64-bit
from gtkd.
thanks for trying :)
for information, i'm on debian wheezy up to date.
from gtkd.
I finally found why:
in gtkc/glibtypes.d (line 88) , i set _utfPostfix = "" (it was to "_utf8" for d2/linux)
and to re-compile, gtkc/glib.o must be clean too (cause of mixin, i guess)
I took a look to my libgtk-3 src and g_module_open doesn't have "_utf8" suffix.
maybe a problem of libgtk-3-0 version ?
my libgtk-3 : 3.4.2-4 with libgtk-3.so.0.400.2
from gtkd.
Thanks
from gtkd.
_utfPostfix should indeed be an empty string on linux, as the utf8 less functions are macros in the windows version of gtk.
from gtkd.
Related Issues (20)
- Unable to implement CellRenderer.render with ImplementClass HOT 2
- [QUESTION] MainWindow or ApplicationWindow? HOT 4
- Add Support for Composite Templates HOT 2
- Status of custom GObjects HOT 4
- Wrong code format in Widget.d
- Add Gda bindings
- Undefined reference to _D3std6string9toStringzFNaNbNeMNkAyaZPya with ldc2 HOT 11
- bindings for LibAdwaita HOT 3
- Memory allocation failed when compiling with gdc HOT 1
- ListBoxItem toggle_refs_notify: assertion failed HOT 1
- How to Wrap GObject Introspection-based libraries for begginers HOT 4
- cairo win32 support
- New release? HOT 2
- wrapper for Dialog.getHeaderBar returns Widget instead of HeaderBar HOT 1
- Compile failed on Linux with gdc
- GTK4 HOT 2
- Unicode.utf8Validate issue ? HOT 5
- Gtk4 fails loading some icons HOT 1
- Create new tag/release for 3.11
- Need Gtk+ runtime in zip format
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtkd.