Le 27/01/2012 21:58, Thomas Mayer a écrit :
Hello,
Hi Thomas,
I have just uploaded new packages for Windows and Debian (i386) of PuREST JSON.
I just installed the Debian package on a Ubuntu Studio 10.04 LTS install into ~/pd-externals with Pd-extended 0.42-5 and it works fine for two things:
I had to add "_" instead of the spaces of the [print] objects of your help files.
I got a crash when trying to connect to couchdb through your example.
Here is the crash report.
OH
:~/purematter/purestjson$ pdextended tk scaling is 1.6821192052980132 *** glibc detected *** pdextended: corrupted double-linked list: 0x09609ac8 *** ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(+0x6b591)[0x37f591] /lib/tls/i686/cmov/libc.so.6(+0x6ce41)[0x380e41] /lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x383ecd] /usr/lib/libjson.so.0(array_list_free+0x47)[0x1b1aae7] /usr/lib/libjson.so.0(+0x23f5)[0x1b1b3f5] /usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6] /usr/lib/libjson.so.0(+0x1edd)[0x1b1aedd] /usr/lib/libjson.so.0(array_list_free+0x35)[0x1b1aad5] /usr/lib/libjson.so.0(+0x23f5)[0x1b1b3f5] /usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6] /usr/lib/libjson.so.0(+0x1edd)[0x1b1aedd] /usr/lib/libjson.so.0(array_list_free+0x35)[0x1b1aad5] /usr/lib/libjson.so.0(+0x23f5)[0x1b1b3f5] /usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6] /usr/lib/libjson.so.0(+0x21ff)[0x1b1b1ff] /usr/lib/libjson.so.0(lh_table_free+0x2c)[0x1b1d7bc] /usr/lib/libjson.so.0(+0x2b75)[0x1b1bb75] /usr/lib/libjson.so.0(json_object_put+0x26)[0x1b1adf6] /home/olivier/pd-externals/purest_json.pd_linux(json_encode_bang+0x2a0)[0x1ad1b20] pdextended(outlet_bang+0x33)[0x80b9783] ======= Memory map: ======== 00110000-00111000 r-xp 00000000 08:03 589083 /usr/lib/pd-extended/extra/libdir.pd_linux 00111000-00112000 r--p 00000000 08:03 589083 /usr/lib/pd-extended/extra/libdir.pd_linux 00112000-00113000 rw-p 00001000 08:03 589083 /usr/lib/pd-extended/extra/libdir.pd_linux 00113000-00119000 r-xp 00000000 08:03 168352 /usr/lib/libv4l2.so.0 00119000-0011a000 r--p 00005000 08:03 168352 /usr/lib/libv4l2.so.0 0011a000-0011e000 rw-p 00006000 08:03 168352 /usr/lib/libv4l2.so.0 0011e000-0018e000 r-xp 00000000 08:03 192404 /usr/lib/libquicktime.so.1.0.0 0018e000-0018f000 r--p 0006f000 08:03 192404 /usr/lib/libquicktime.so.1.0.0 0018f000-00191000 rw-p 00070000 08:03 192404 /usr/lib/libquicktime.so.1.0.0 00191000-00192000 rw-p 00000000 00:00 0 00192000-001a5000 r-xp 00000000 08:03 135097 /lib/libz.so.1.2.3.3 001a5000-001a6000 r--p 00012000 08:03 135097 /lib/libz.so.1.2.3.3 001a6000-001a7000 rw-p 00013000 08:03 135097 /lib/libz.so.1.2.3.3 001a7000-001c1000 r-xp 00000000 08:03 192396 /usr/lib/libdv.so.4.0.3 001c1000-001c2000 r--p 00019000 08:03 192396 /usr/lib/libdv.so.4.0.3 001c2000-001c4000 rw-p 0001a000 08:03 192396 /usr/lib/libdv.so.4.0.3 001c4000-001d0000 rw-p 00000000 00:00 0 001d0000-001de000 r-xp 00000000 08:03 147925 /usr/lib/libXext.so.6.4.0 001de000-001df000 r--p 0000d000 08:03 147925 /usr/lib/libXext.so.6.4.0 001df000-001e0000 rw-p 0000e000 08:03 147925 /usr/lib/libXext.so.6.4.0 001e1000-001f0000 r-xp 00000000 08:03 187000 /usr/lib/libjack.so.0.0.28 001f0000-001f1000 r--p 0000e000 08:03 187000 /usr/lib/libjack.so.0.0.28 001f1000-001f3000 rw-p 0000f000 08:03 187000 /usr/lib/libjack.so.0.0.28 001f3000-001fb000 rw-p 00000000 00:00 0 001fb000-0026c000 r-xp 00000000 08:03 143827 /usr/lib/libMagick++.so.2.0.1 0026c000-0026e000 r--p 00070000 08:03 143827 /usr/lib/libMagick++.so.2.0.1 0026e000-0026f000 rw-p 00072000 08:03 143827 /usr/lib/libMagick++.so.2.0.1 0026f000-00291000 r-xp 00000000 08:03 192394 /usr/lib/libmpeg3.so.1.5.4 00291000-00296000 rw-p 00022000 08:03 192394 /usr/lib/libmpeg3.so.1.5.4 00296000-002a9000 rw-p 00000000 00:00 0 002a9000-002ad000 r-xp 00000000 08:03 178565 /usr/lib/libXxf86vm.so.1.0.0 002ad000-002ae000 r--p 00003000 08:03 178565 /usr/lib/libXxf86vm.so.1.0.0 002ae000-002af000 rw-p 00004000 08:03 178565 /usr/lib/libXxf86vm.so.1.0.0 002af000-002cc000 r-xp 00000000 08:03 131184 /lib/libgcc_s.so.1 002cc000-002cd000 r--p 0001c000 08:03 131184 /lib/libgcc_s.so.1 002cd000-002ce000 rw-p 0001d000 08:03 131184 /lib/libgcc_s.so.1 002ce000-002fe000 r-xp 00000000 08:03 131141 /usr/lib/liblcms.so.1.0.18 002fe000-002ff000 r--p 0002f000 08:03 131141 /usr/lib/liblcms.so.1.0.18 002ff000-00300000 rw-p 00030000 08:03 131141 /usr/lib/liblcms.so.1.0.18 00300000-00302000 rw-p 00000000 00:00 0 00302000-00312000 r-xp 00000000 08:03 130355 /lib/libbz2.so.1.0.4 00312000-00313000 r--p 0000f000 08:03 130355 /lib/libbz2.so.1.0.4 00313000-00314000 rw-p 00010000 08:03 130355 /lib/libbz2.so.1.0.4 00314000-00467000 r-xp 00000000 08:03 132578 /lib/tls/i686/cmov/libc-2.11.1.so 00467000-00468000 ---p 00153000 08:03 132578 /lib/tls/i686/cmov/libc-2.11.1.so 00468000-0046a000 r--p 00153000 08:03 132578 /lib/tls/i686/cmov/libc-2.11.1.so 0046a000-0046b000 rw-p 00155000 08:03 132578 /lib/tls/i686/cmov/libc-2.11.1.so 0046b000-0046e000 rw-p 00000000 00:00 0 0046e000-0063d000 r-xp 00000000 08:03 238405 /usr/lib/libMagickCore.so.2.0.1 0063d000-00647000 r--p 001ce000 08:03 238405 /usr/lib/libMagickCore.so.2.0.1 00647000-0068c000 rw-p 001d8000 08:03 238405 /usr/lib/libMagickCore.so.2.0.1 0068c000-006a4000 rw-p 00000000 00:00 0 006a4000-006ab000 r-xp 00000000 08:03 159280 /usr/lib/libltdl.so.7.2.1 006ab000-006ac000 r--p 00006000 08:03 159280 /usr/lib/libltdl.so.7.2.1 006ac000-006ad000 rw-p 00007000 08:03 159280 /usr/lib/libltdl.so.7.2.1 006ad000-006b4000 r-xp 00000000 08:03 147937 /usr/lib/libSM.so.6.0.1 006b4000-006b5000 r--p 00006000 08:03 147937 /usr/lib/libSM.so.6.0.1 006b5000-006b6000 rw-p 00007000 08:03 147937 /usr/lib/libSM.so.6.0.1 006b6000-006cb000 r-xp 00000000 08:03 147931 /usr/lib/libICE.so.6.3.0 006cb000-006cc000 r--p 00014000 08:03 147931 /usr/lib/libICE.so.6.3.0 006cc000-006cd000 rw-p 00015000 08:03 147931 /usr/lib/libICE.so.6.3.0 006cd000-006cf000 rw-p 00000000 00:00 0 006cf000-006db000 r-xp 00000000 08:03 191815 /usr/lib/libgomp.so.1.0.0 006db000-006dc000 r--p 0000b000 08:03 191815 /usr/lib/libgomp.so.1.0.0 006dc000-006dd000 rw-p 0000c000 08:03 191815 /usr/lib/libgomp.so.1.0.0 006dd000-006de000 r-xp 00000000 08:03 539644 /usr/lib/nvidia-173/tls/libnvidia-tls.so.173.14.22 006de000-006df000 rw-p 00000000 08:03 539644 /usr/lib/nvidia-173/tls/libnvidia-tls.so.173.14.22 006e0000-006e2000 r-xp 00000000 08:03 132584 /lib/tls/i686/cmov/libdl-2.11.1.so 006e2000-006e3000 r--p 00001000 08:03 132584 /lib/tls/i686/cmov/libdl-2.11.1.so 006e3000-006e4000 rw-p 00002000 08:03 132584 /lib/tls/i686/cmov/libdl-2.11.1.so 006e4000-00753000 r-xp 00000000 08:03 148678 /usr/lib/libGLU.so.1.3.070701 00753000-00754000 r--p 0006e000 08:03 148678 /usr/lib/libGLU.so.1.3.070701 00754000-00755000 rw-p 0006f000 08:03 148678 /usr/lib/libGLU.so.1.3.070701 00755000-007dd000 r-xp 00000000 08:03 539652 /usr/lib/nvidia-173/libGL.so.173.14.22 007dd000-007f8000 rwxp 00088000 08:03 539652 /usr/lib/nvidia-173/libGL.so.173.14.22 007f8000-007f9000 rwxp 00000000 00:00 0 007f9000-00813000 r-xp 00000000 08:03 168353 /usr/lib/libv4lconvert.so.0 00813000-00815000 r--p 0001a000 08:03 168353 /usr/lib/libv4lconvert.so.0 00815000-00816000 rw-p 0001c000 08:03 168353 /usr/lib/libv4lconvert.so.0 00816000-00866000 rw-p 00000000 00:00 0 00866000-00869000 r-xp 00000000 08:03 132183 /lib/libuuid.so.1.3.0 00869000-0086a000 r--p 00002000 08:03 132183 /lib/libuuid.so.1.3.0 0086a000-0086b000 rw-p 00003000 08:03 132183 /lib/libuuid.so.1.3.0 0086c000-00887000 r-xp 00000000 08:03 131977 /lib/ld-2.11.1.so 00887000-00888000 r--p 0001a000 08:03 131977 /lib/ld-2.11.1.so 00888000-00889000 rw-p 0001b000 08:03 131977 /lib/ld-2.11.1.so 00889000-00892000 r-xp 00000000 08:03 192393 /usr/lib/liba52-0.7.4.so 00892000-00893000 r--p 00008000 08:03 192393 /usr/lib/liba52-0.7.4.so 00893000-00894000 rw-p 00009000 08:03 192393 /usr/lib/liba52-0.7.4.so 00894000-00895000 rw-p 00000000 00:00 0 00895000-008ad000 r-xp 00000000 08:03 147658 /usr/lib/libxcb.so.1.1.0 008ad000-008ae000 r--p 00017000 08:03 147658 /usr/lib/libxcb.so.1.1.0 008ae000-008af000 rw-p 00018000 08:03 147658 /usr/lib/libxcb.so.1.1.0 008af000-008b1000 r-xp 00000000 08:03 147650 /usr/lib/libXau.so.6.0.0 008b1000-008b2000 r--p 00001000 08:03 147650 /usr/lib/libXau.so.6.0.0 008b2000-008b3000 rw-p 00002000 08:03 147650 /usr/lib/libXau.so.6.0.0 008b3000-008b7000 r-xp 00000000 08:03 147656 /usr/lib/libXdmcp.so.6.0.0 008b7000-008b8000 r--p 00003000 08:03 147656 /usr/lib/libXdmcp.so.6.0.0 008b8000-008b9000 rw-p 00004000 08:03 147656 /usr/lib/libXdmcp.so.6.0.0 008b9000-008bb000 rwxp 00000000 00:05 1202 /dev/zero 008bb000-008bd000 r-xp 00000000 08:03 587980 /usr/lib/pd-extended/extra/ggee/vbap.pd_linux 008bd000-008be000 r--p 00001000 08:03 587980 /usr/lib/pd-extended/extra/ggee/vbap.pd_linux 008be000-008bf000 rw-p 00002000 08:03 587980 /usr/lib/pd-extended/extra/ggee/vbap.pd_linux 008bf000-008c0000 r-xp 00000000 08:03 588183 /usr/lib/pd-extended/extra/iemlib/iem_anything.pd_linux 008c0000-008c1000 r--p 00001000 08:03 588183 /usr/lib/pd-extended/extra/iemlib/iem_anything.pd_linux 008c1000-008c2000 rw-p 00002000 08:03 588183 /usr/lib/pd-extended/extra/iemlib/iem_anything.pd_linux 008c2000-008d7000 r-xp 00000000 08:03 133039 /lib/tls/i686/cmov/libpthread-2.11.1.so 008d7000-008d8000 r--p 00014000 08:03 133039 /lib/tls/i686/cmov/libpthread-2.11.1.so 008d8000-008d9000 rw-p 00015000 08:03 133039 /lib/tls/i686/cmov/libpthread-2.11.1.so 008d9000-008db000 rw-p 00000000 00:00 0 008db000-008e4000 r-xp 00000000 08:03 156163 /usr/lib/libesd.so.0.2.39 008e4000-008e5000 r--p 00008000 08:03 156163 /usr/lib/libesd.so.0.2.39 008e5000-008e6000 rw-p 00009000 08:03 156163 /usr/lib/libesd.so.0.2.39 008e6000-008e9000 r-xp 00000000 08:03 160574 /usr/lib/libpulse-simple.so.0.0.3 008e9000-008ea000 r--p 00002000 08:03 160574 /usr/lib/libpulse-simple.so.0.0.3 008ea000-008eb000 rw-p 00003000 08:03 160574 /usr/lib/libpulse-simple.so.0.0.3 008eb000-008ec000 r-xp 00000000 08:05 696349 /home/olivier/pd-externals/gridflow/gridflow_gem_loader.pd_linux 008ec000-008ed000 r--p 00000000 08:05 696349 /home/olivier/pd-externals/gridflow/gridflow_gem_loader.pd_linux 008ed000-008ee000 rw-p 00001000 08:05 696349 /home/olivier/pd-externals/gridflow/gridflow_gem_loader.pd_linux 008ef000-00913000 r-xp 00000000 08:03 132586 /lib/tls/i686/cmov/libm-2.11.1.so 00913000-00914000 r--p 00023000 08:03 132586 /lib/tls/i686/cmov/libm-2.11.1.so 00914000-00915000 rw-p 00024000 08:03 132586 /lib/tls/i686/cmov/libm-2.11.1.so 00915000-0096d000 r-xp 00000000 08:03 178675 /usr/lib/libtiff.so.4.3.2 0096d000-0096f000 r--p 00057000 08:03 178675 /usr/lib/libtiff.so.4.3.2 0096f000-00970000 rw-p 00059000 08:03 178675 /usr/lib/libtiff.so.4.3.2 00970000-00978000 r-xp 00000000 08:03 155660 /usr/lib/libfusion-1.2.so.0.8.0 00978000-00979000 r--p 00007000 08:03 155660 /usr/lib/libfusion-1.2.so.0.8.0 ------------------------------ caught Abort 1: /lib/tls/i686/cmov/libc.so.6(+0x2a6e8) [0x33e6e8] 2: /lib/ld-linux.so.2(+0x832) [0x86c832] 3: /lib/tls/i686/cmov/libc.so.6(abort+0x182) [0x341a82] 4: /lib/tls/i686/cmov/libc.so.6(+0x6149d) [0x37549d] 5: /lib/tls/i686/cmov/libc.so.6(+0x6b591) [0x37f591] 6: /lib/tls/i686/cmov/libc.so.6(+0x6ce41) [0x380e41] 7: /lib/tls/i686/cmov/libc.so.6(cfree+0x6d) [0x383ecd] 8: /usr/lib/libjson.so.0(array_list_free+0x47) [0x1b1aae7] 9: /usr/lib/libjson.so.0(+0x23f5) [0x1b1b3f5] 10: /usr/lib/libjson.so.0(json_object_put+0x26) [0x1b1adf6] 11: /usr/lib/libjson.so.0(+0x1edd) [0x1b1aedd] 12: /usr/lib/libjson.so.0(array_list_free+0x35) [0x1b1aad5] 13: /usr/lib/libjson.so.0(+0x23f5) [0x1b1b3f5] 14: /usr/lib/libjson.so.0(json_object_put+0x26) [0x1b1adf6] 15: /usr/lib/libjson.so.0(+0x1edd) [0x1b1aedd] 16: /usr/lib/libjson.so.0(array_list_free+0x35) [0x1b1aad5] 17: /usr/lib/libjson.so.0(+0x23f5) [0x1b1b3f5] 18: /usr/lib/libjson.so.0(json_object_put+0x26) [0x1b1adf6] 19: /usr/lib/libjson.so.0(+0x21ff) [0x1b1b1ff] 20: /usr/lib/libjson.so.0(lh_table_free+0x2c) [0x1b1d7bc] 21: /usr/lib/libjson.so.0(+0x2b75) [0x1b1bb75] 22: /usr/lib/libjson.so.0(json_object_put+0x26) [0x1b1adf6] 23: /home/olivier/pd-externals/purest_json.pd_linux(json_encode_bang+0x2a0) [0x1ad1b20] 24: pdextended(outlet_bang+0x33) [0x80b9783] -------- crash report displayed by segfault.pd_linux 1.0 (by matju)
pd_gui: pd process exited
PuREST JSON is a library for connecting Pd to HTTP services and encoding and decoding JSON data.
The library can issue GET, POST, PUT and DELETE statements, so consumation of RESTful services is possible, e.g. CouchDB.
https://github.com/residuum/PuRestJson/downloads
I have written compilation instructions in the wiki, and am currently trying to cross-compile for Windows on Debian. The next logical step is trying to get cross-compilation for Mac OS X working, any pointers on how to accomplish that?
Have fun, {"name": "Thomas"}