www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - dwt-linux simple example execution error

reply JDavidLS <jdavidls gmail.com> writes:
(name:14929): GLib-GObject-WARNING **: specified class size for type
`SwtFixed' is smaller than the parent type's `GtkFixed' class size

(name:14929): GLib-GObject-WARNING **: specified class size for type
`SwtTextRenderer' is smaller than the parent type's `GtkCellRendererText'
class size

(name:14929): GLib-GObject-WARNING **: specified class size for type
`SwtPixbufRenderer' is smaller than the parent type's `GtkCellRendererPixbuf'
class size

(name:14929): GLib-GObject-WARNING **: specified class size for type
`SwtToggleRenderer' is smaller than the parent type's `GtkCellRendererToggle'
class size
Segmentation Fault
Jul 21 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
Do you run a standard linux 32 bit? Which distro? Which gtk version (see 
the name of the lib, e.g. /usr/lib/libgtk-x11-2.0.so.0.1200.9)

My news client cannot show your attachment.
Is it the simple.d from the dwt-samples project or the installation wiki 
page?

Frank

JDavidLS schrieb:
 (name:14929): GLib-GObject-WARNING **: specified class size for type
 `SwtFixed' is smaller than the parent type's `GtkFixed' class size
 
 (name:14929): GLib-GObject-WARNING **: specified class size for type
 `SwtTextRenderer' is smaller than the parent type's `GtkCellRendererText'
 class size
 
 (name:14929): GLib-GObject-WARNING **: specified class size for type
 `SwtPixbufRenderer' is smaller than the parent type's `GtkCellRendererPixbuf'
 class size
 
 (name:14929): GLib-GObject-WARNING **: specified class size for type
 `SwtToggleRenderer' is smaller than the parent type's `GtkCellRendererToggle'
 class size
 Segmentation Fault
 begin 644 simple.d
 M;6]D=6QE(&5X86UP;&4N<VEM<&QE.PH*:6UP;W)T(&1W="Y$5U0["FEM<&]R
 M="!D=W0N979E;G1S+E-E;&5C=&EO;D5V96YT.PII;7!O<G0 9'=T+F5V96YT
 M<RY396QE8W1I;VY,:7-T96YE<CL*:6UP;W)T(&1W="YW:61G971S+D)U='1O
 M;CL*:6UP;W)T(&1W="YW:61G971S+D1I<W!L87D["FEM<&]R="!D=W0N=VED
 M9V5T<RY3:&5L;#L*:6UP;W)T(&1W="YW:61G971S+E1E>'0[" II;7!O<G0 
 M=&%N9V\N:6\N4W1D;W5T.PH*=F]I9"!M86EN*"E[" H ("` =')Y>PH*("` 
 M("` ("!$:7-P;&%Y(&1I<W!L87D /2!N97< 1&ES<&QA>2 I.PH ("` ("` 
 M(%-H96QL('-H96QL(#T ;F5W(%-H96QL*&1I<W!L87DI.PH ("` ("` ('-H
 M96QL+G-E=%-I>F4H,S`P+"`R,#`I.PH ("` ("` ('-H96QL+G-E=%1E>'0H
 M(E-I;7!L92!$5U0 4V%M<&QE(BD["B` ("` ("` 875T;R!B=&X /2!N97< 
 M0G5T=&]N*"!S:&5L;"P 1%=4+E!54T  *3L*("` ("` ("!B=&XN<V5T0F]U
 M;F1S*#0P+"`U,"P ,3`P+"`U,"D["B` ("` ("` 8G1N+G-E=%1E>'0H(")H
 M97DB("D[" H ("` ("` (&%U=&\ ='AT(#T ;F5W(%1E>'0H<VAE;&PL($17
 M5"Y"3U)$15(I.PH ("` ("` ('1X="YS971";W5N9',H,3<P+"`U,"P ,3`P
 M+"`T,"D[" H ("` ("` (&)T;BYA9&1396QE8W1I;VY,:7-T96YE<BAN97< 
 M8VQA<W, *"D 4V5L96-T:6]N3&ES=&5N97( >PH ("` ("` ("` ("!P=6)L
 M:6, =F]I9"!W:61G971396QE8W1E9"A396QE8W1I;VY%=F5N="!E=F5N="D 
 M>PH ("` ("` ("` ("` ("` ='AT+G-E=%1E>'0H(DYO('!R;V)L96TB*3L*
 M("` ("` ("` ("` ?0H ("` ("` ("` ("!P=6)L:6, =F]I9"!W:61G971$
 M969A=6QT4V5L96-T960H4V5L96-T:6]N179E;G0 979E;G0I('L*("` ("` 
 M("` ("` ("` ('1X="YS971497AT*").;R!W;W)R:65S(2(I.PH ("` ("` 
 M("` ("!]"B` ("` ("` ?2D[" H ("` ("` ('-H96QL+F]P96XH*3L*("` 
 M("` ("!W:&EL92`H(7-H96QL+FES1&ES<&]S960H*2D >PH ("` ("` ("` 
 M("!I9B`H(61I<W!L87DN<F5A9$%N9$1I<W!A=&-H*"DI('L*("` ("` ("` 
 M("` ("` (&1I<W!L87DN<VQE97`H*3L*("` ("` ("` ("` ?0H ("` ("` 
 M('T*("` ('T*("` (&-A=&-H("A%>&-E<'1I;VX 92D >PH ("` ("` (%-T
 E9&]U="YF;W)M871L;B`H92YT;U-T<FEN9RD["B` ("!]"GT*" ``
 `
 end

Jul 21 2008
parent reply JDavidLS <jdavidls gmail.com> writes:
Yes, the snippet is the simple.d from the dwt-examples, I have a Ubuntu hardy
neron in a x86-64 (AMD) with libgtk-x11-2.0.so.0.1200.9. The libDG-dwt and the
code example has been compiled with gdmd. When i running one of the example
binaries, always get a similar message. I need help for this. Tanks
Jul 22 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
JDavidLS schrieb:
 Yes, the snippet is the simple.d from the dwt-examples, I have a Ubuntu hardy
 neron in a x86-64 (AMD) with libgtk-x11-2.0.so.0.1200.9. The libDG-dwt and the
 code example has been compiled with gdmd. When i running one of the example
 binaries, always get a similar message. I need help for this. Tanks

yes, i though it is a non 32 bit OS, hence my question about 32 bit :) DWT was only tested with 32 bit and DMD. If you are willing to get involved in helping DWT to get GDC and 64 bit ready, this would be awesome.
Jul 22 2008
parent reply GeraldK <ger_k gmx.de> writes:
I have exactly the same problem here. I checked the class_size values used in
Display.d and it seems that there is a constant difference of 4 compared with
the
values returned by this C-Code:

GTypeQuery query;
g_type_query(GTK_TYPE_XXX, &query);
printf("Class size: %d\n", query.class_size);


Here are the exact values:

GtkFixed: 824 C and 820 D
GtkCellRendererText: 264 C and 260 D
GtkCellRendererPixbuf: 256 C and 260 D
GtkCellRendererToggle: 264 C and 264 D

I don't know if this is of any use, but I'm willing to help in making dwt
runnable
with gdc and x64 :)
Aug 18 2008
parent Frank Benoit <keinfarbton googlemail.com> writes:
GeraldK schrieb:
 I have exactly the same problem here. I checked the class_size values used in
 Display.d and it seems that there is a constant difference of 4 compared with
the
 values returned by this C-Code:
 
 GTypeQuery query;
 g_type_query(GTK_TYPE_XXX, &query);
 printf("Class size: %d\n", query.class_size);
 
 
 Here are the exact values:
 
 GtkFixed: 824 C and 820 D
 GtkCellRendererText: 264 C and 260 D
 GtkCellRendererPixbuf: 256 C and 260 D
 GtkCellRendererToggle: 264 C and 264 D
 
 I don't know if this is of any use, but I'm willing to help in making dwt
runnable
 with gdc and x64 :)

Thats brilliant news :) If you want, join the IRC channel #dwt on freenode, so we can "talk" directly. From those values i would think it is an alignment problem. in dwt-linux/dwt/internal/c/gtk.d line 68 i found an align(4) statement. Can you test to remove it? Did you get those values by using the dwt-samples/devhelpers/structslinux ? Where these the only differences?
Aug 18 2008