www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - DWT Release 3.4-1

reply Frank Benoit <keinfarbton googlemail.com> writes:
The DWT release 3.4-1 is available from
http://www.dsource.org/projects/dwt/wiki/Releases#Release3.4-1
This uses Tango 0.99.7 and DMD 1.033
Jul 27 2008
next sibling parent davidl <davidl 126.com> writes:
在 Sun, 27 Jul 2008 22:07:35 +0800,Frank Benoit  
<keinfarbton googlemail.com> 写道:

 The DWT release 3.4-1 is available from
 http://www.dsource.org/projects/dwt/wiki/Releases#Release3.4-1
 This uses Tango 0.99.7 and DMD 1.033
IT IS AWESOME!! Thanks for the great job you've been always doing! -- 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
Jul 27 2008
prev sibling parent reply maelp <mael.primet gmail.com> writes:
Here using last dmd and tango on ubuntu 7.10, it doesn't work (compilation
works, but almost 
all samples segfault )

 
Jul 30 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
maelp schrieb:
 Here using last dmd and tango on ubuntu 7.10, it doesn't work (compilation
works, but almost 
 all samples segfault )
 
  
32/64 bit OS? gtk version? can you get a stacktrace? to get stacktrace you can use gdb or use Jive http://downloads.dsource.org/projects/dwt/jive.zip
Jul 30 2008
parent reply maelp <mael.primet gmail.com> writes:
32bit, last gtk version 1.2 / 2.0 of Ubuntu 7.10,
(I think 1.2.10 for Gtk 1.2)

backtrace :
Starting program: /home/primet/tmp/dwt-samples/examples/clipboard/ClipboardExample
[Thread debugging using libthread_db enabled]
[New Thread -1219475792 (LWP 12613)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1219475792 (LWP 12613)]
0x00000001 in ?? ()
(gdb) backtrace


dgets5Event5EventZv ()

dgets5Event5EventZv ()

dgets5Event5EventZv ()

gets5Event5EventbZv ()




ctangle9RectangleZv ()

posite9CompositebZv ()




    ()





s7Display7DisplayZv ()



Backtrace stopped: previous frame inner to this frame (corrupt stack?)


When I tried to investigate the bug, I think there's a problem when calling
        while (!shell.isDisposed ()) {
              if (!display.readAndDispatch ()) display.sleep ();
         }
I think it crashes right when it calls the shell.setSize(...) in the open( ...
) function of ClipboardExample. Couldn't trace efficiently the program since
gdb is reluctant to load the D symbols for some reason I couldn't really get,
so I just traced to where it crashed. 




Frank Benoit Wrote:

 maelp schrieb:
 Here using last dmd and tango on ubuntu 7.10, it doesn't work (compilation
works, but almost 
 all samples segfault )
 
  
32/64 bit OS? gtk version? can you get a stacktrace? to get stacktrace you can use gdb or use Jive http://downloads.dsource.org/projects/dwt/jive.zip
Aug 04 2008
parent reply maelp <mael.primet gmail.com> writes:
 When I tried to investigate the bug, I think there's a problem when calling
         while (!shell.isDisposed ()) {
               if (!display.readAndDispatch ()) display.sleep ();
          }
Sorry, the bug is not here, but in the setSize function .. however, I think I remember I had the same bug a month or so ago, and it was crashing when the shell.isDisposed() function was called.. maybe it's a kind of "random bug" hope you'll find it, I'd love to be able to use DWT !!
Aug 04 2008
parent reply Frank Benoit <keinfarbton googlemail.com> writes:
maelp schrieb:
 When I tried to investigate the bug, I think there's a problem when
 calling while (!shell.isDisposed ()) { if (!display.readAndDispatch
 ()) display.sleep (); }
Sorry, the bug is not here, but in the setSize function .. however, I think I remember I had the same bug a month or so ago, and it was crashing when the shell.isDisposed() function was called.. maybe it's a kind of "random bug" hope you'll find it, I'd love to be able to use DWT !!
Can you please try to follow exactly the instructions from the quick install? (if not already done) http://www.dsource.org/projects/dwt/wiki/Installation#QuickInstallationonWindows http://www.dsource.org/projects/dwt/wiki/Installation#QuickInstallationonLinux Using exactly those downloads and versions. On linux you can get good stacktraces with jive : http://downloads.dsource.org/projects/dwt/jive.zip Most examples have a version(JIVE) import jive.stacktrace; When building those, give the additional arguements: -version=JIVE -Ipath/to/jive -g
Aug 04 2008
next sibling parent Frank Benoit <keinfarbton googlemail.com> writes:
Frank Benoit schrieb:
 On linux you can get good stacktraces with jive : 
 http://downloads.dsource.org/projects/dwt/jive.zip
Jive needs the libbfd which is part of the package "binutils"
Aug 04 2008
prev sibling parent reply maelp <mael.primet gmail.com> writes:
Well, if I compile the examples as written on your wiki page (ie. by including
the DWT source each time) it runs just fine, however, if I do dsss build &&
dsss install on dwt-linux, then try to compile the dwt-samples by dsss build,
it segfaults 

 
Aug 04 2008
parent Frank Benoit <keinfarbton googlemail.com> writes:
maelp schrieb:
 Well, if I compile the examples as written on your wiki page (ie. by
 including the DWT source each time) it runs just fine, however, if I
 do dsss build && dsss install on dwt-linux, then try to compile the
 dwt-samples by dsss build, it segfaults
 
 
I work with direct sources all the time. I found libs just making problems with no real benefit. The build time is not relevant faster and i have much less problems. On the other hand with libs, i have to troubleshoot the build process all the time, keep several places uptodate, have to change directories more often,...
Aug 04 2008