Hi Ico<div><br></div><div><br></div><div>Ive got it working and have loaded some libraries, Gem, Gridflow, Zexy, pdp - however PD crashes out when I ctrl-1 to put an object on the canvas.</div><div><br></div><div>I&#39;ve done a backtrace (thanks Mathieu for the tip previously) with the following results:</div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Starting program: /usr/local/bin/pd -oss -channels 2 my-bug-test.pd</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">[Thread debugging using libthread_db enabled]</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;init&gt; : Avifile RELEASE-0.7.48-100119-21:44-../src/configure</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;init&gt; : Available CPU flags: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc nonstop_tsc extd_api</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">&lt;init&gt; : 800.00 MHz AMD Phenom(tm) II X2 555 Processor detected</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">[New Thread 0xb47e1b70 (LWP 4084)]</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Program received signal SIGSEGV, Segmentation fault.</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">0x00000011 in ?? ()</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">(gdb) where</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#0  0x00000011 in ?? ()</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#1  0x080a94d5 in gobj_displace_withtag (x=0x8206cb8, </font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    dx=&lt;value optimised out&gt;, dy=0) at g_editor.c:68</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#2  canvas_displaceselection (x=0x8206cb8, dx=&lt;value optimised out&gt;, dy=0)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    at g_editor.c:1900</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#3  0x080a98a5 in canvas_motion (x=0x8206cb8, xpos=232, ypos=76, fmod=2)</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    at g_editor.c:2089</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#4  0x080ca4f6 in pd_typedmess (x=0x8206cb8, s=0x8135eb8, argc=3, </font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    argv=0xbffff08c) at m_class.c:792</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#5  0x080ca0dc in pd_typedmess (x=0x814ac60, s=0x8135eb8, argc=3, </font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    argv=0xbffff08c) at m_class.c:813</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#6  0x080cfbaa in binbuf_eval (x=0x8149688, target=&lt;value optimised out&gt;, </font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    argc=0, argv=0x0) at m_binbuf.c:726</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#7  0x080dde5f in socketreceiver_read (x=0x81496a8, fd=6) at s_inter.c:560</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#8  0x080dd81a in sys_domicrosleep (microsec=&lt;value optimised out&gt;, </font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">    pollem=&lt;value optimised out&gt;) at s_inter.c:198</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#9  0x080de502 in sys_pollgui () at s_inter.c:862</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#10 0x080d9321 in m_pollingscheduler () at m_sched.c:490</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#11 m_mainloop () at m_sched.c:560</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#12 0x080dc8a9 in sys_main (argc=5, argv=0xbffff4e4) at s_main.c:310</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">#13 0x080e556b in main (argc=5, argv=0xbffff4e4) at s_entry.c:32</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">(gdb)  quit</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">A debugging session is active.</font></div><div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><span class="Apple-tab-span" style="white-space:pre"><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">        </font></span><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Inferior 1 [process 4078] will be killed.</font></div>
<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><br></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">Quit anyway? (y or n) y</font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace">socket receive error: Connection reset by peer (104)</font></div>
<div><br></div>Thanks for your help with this! It&#39;s a great package to work from</div><div>Cheers</div><div><br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">On Wed, Nov 24, 2010 at 5:29 AM, Ivica Ico Bukvic <span dir="ltr">&lt;<a href="mailto:ico@vt.edu">ico@vt.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">&gt; Notice that both [cyclone/Scope~] and [flatspace/entry] have a<br>
&gt; bug: a sudden increase in height/width by about 5-10 pixels when you<br>
&gt; initially drag to resize.  This makes it difficult if not<br>
&gt; impossible to make minor size changes (especially since there is no<br>
&gt; Properties dialogue).<br>
<br>
</div>Good to know. I will look into this when I get there. Currently working on accelerating iemgui objects as well as exposing them to sarlo&#39;s highlighting magic.<br>
<div class="im"><br>
&gt; Wouldn&#39;t it be easier just to toggle the text for that menu option<br>
&gt; between &quot;Edit mode&quot; and &quot;Run mode&quot;? (That&#39;s what they&#39;re called in<br>
&gt; the manual.)<br>
<br>
</div>Sure. There are other options, too, like the one 0.43 and now l2ork version of 0.42 uses by changing option&#39;s background which works visually relatively well (albeit at the expense of consistency). This is however not the issue. The issue is finding out that after an hour of debugging the problem is not in you or your code but the toolkit you are using and in 2010 for a toolkit that has been around for more than a decade that is plainly sad.<br>

<div class="im"><br>
&gt; How would you go about doing that?<br>
<br>
</div>A: Ugly path: Isolate pd&lt;-&gt;gui hooks and port the entire thing to Qt.<br>
<br>
B: Better (albeit more time-consuming) path: clean-up code first so that all objects can utilize the same gobj_&lt;whatever&gt; calls and then do the A: (which at that point won&#39;t be nearly as ugly or difficult to maintain).<br>

<br>
FWIW, my first ever GUI app was RTMix I did back in 2001 and it was (and remains) the ugliest hack ever (basically I tried to learn how to program doing that app). Yet, the fact remains even in 2001 qt was way better than what Tk is today. Another advantage is avoiding socket bottlenecks as the entire thing could be done simply in C. License-wise it should be fine and cross-platform-wise miles ahead of Tcl/Tk. Heck, you could even throw in Qt for mobile devices for good measure since that is apparently hot item these days.<br>

<br>
That said, I need some more time working with Pd code before I can undertake this. Perhaps more importantly, I just need a generous, uninterrupted chunk of time to do this.<br>
<br>
Best wishes,<br>
<font color="#888888"><br>
Ico<br>
</font><div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div>