Re: [Chicken-users] segfault using cairo/SDL
* Markus Klotzbuecher m...@marumbi.de [120104 13:00]: I will further investigate. Thanks! Just let me know if I can test something. I have just released an update to the cairo egg which should fix your problem. Thanks to Felix and Peter for their help on this. Please let me know when you run into further troubles. Kind regards, Christian -- Who can (make) the muddy water (clear)? Let it be still, and it will gradually become clear. Who can secure the condition of rest? Let movement go on, and the condition of rest will gradually arise. -- Lao Tse. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] segfault using cairo/SDL
On Sun, Jan 15, 2012 at 03:12:36PM +0100, Christian Kellermann wrote: * Markus Klotzbuecher m...@marumbi.de [120104 13:00]: I will further investigate. Thanks! Just let me know if I can test something. I have just released an update to the cairo egg which should fix your problem. Thanks to Felix and Peter for their help on this. Wonderful, thanks a lot! Please let me know when you run into further troubles. I will! Best regards Markus ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] segfault using cairo/SDL
On Tue, Jan 03, 2012 at 10:06:51PM +0100, Christian Kellermann wrote: * Markus Klotzbuecher m...@marumbi.de [120103 21:11]: I took another attempt to figure out this crash. I still don't see the problem, but I've found a smaller testcase that reliably crashes (for me, at least): (use cairo) (define t1 (make-cairo-text-extents-type)) (display t1) (cairo-text-extents-x-bearing-set! t1 1) (display t1) I also discovered a bug in the record printer for the extents types, patch attached. Thanks for that, I noticed this today as well. Your bug however seems unrelated to cairo or SDL. I have come to the following test case that uses the same FFI procedures in core (modulo some struct layout, the original has 6 doubles there or so): http://paste.call-cc.org/paste?id=78a52e65f6c4f52014f049e71a384ac380c63b62 I ran it for a couple of hours, but no crash. amd64, CHICKEN 4.7.0.4-st. I will further investigate. Thanks! Just let me know if I can test something. Markus ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] segfault using cairo/SDL
Hi All, On Fri, Dec 23, 2011 at 04:56:07PM +0100, Markus Klotzbuecher wrote: On Thu, Dec 22, 2011 at 10:57:39AM +0100, Markus Klotzbuecher wrote: On Thu, Dec 22, 2011 at 09:41:05AM +0100, Christian Kellermann wrote: * Markus Klotzbuecher m...@marumbi.de [111221 21:12]: Dear All, I'm trying to use the cairo and sdl eggs for a small visualization tool. One thing I would like to do is to use the mouse to move around the current figure by clicking and holding it. However, I am getting frequent segfaults after a few seconds of this moving around. The crash happens both when running compiled and interpreted. Below an slightly modified version of the test-cairo.scm from the cairo egg that implements this dragging (I would have pasted it to http://paste.call-cc.org/ , but the service seems down) Is anyone else using these eggs and has seen such problems? Does anyone have a suggestions how to track this down? Yes, I am currently using it for a small doodle framework for easy visualisations and games. I haven't looked (yet) into mouse support. The SDL egg is rather dusty and there might be such dark corners. I will file this as a bug and will have a look at it during the holidays. Great, much appreciated! If you find the time you could build a chicken with debugging information (add DEBUGBUILD=1 to the make call) and show be the backtrace of that. This might be of more help than the standard backtrace. Fine, i'll try to do that during the holidays! The problem seems to be triggered by the use of text-extents. I uploaded a newer testcase to the bug report that makes heavier use of extents and also crashes almost immediately on my machine. I also added a backtraces from a CHICKEN built with DEBUGBUILD=1. I took another attempt to figure out this crash. I still don't see the problem, but I've found a smaller testcase that reliably crashes (for me, at least): (use cairo) (define t1 (make-cairo-text-extents-type)) (display t1) (cairo-text-extents-x-bearing-set! t1 1) (display t1) I also discovered a bug in the record printer for the extents types, patch attached. Thanks in advance for any suggestions! Markus From a93a5743232fe11399fbffdb0a12c1dd0f587be5 Mon Sep 17 00:00:00 2001 From: Markus Klotzbuecher markus.klotzbuec...@mech.kuleuven.be Date: Tue, 3 Jan 2012 21:09:05 +0100 Subject: [PATCH] Fix record printing of cairo-text-extents-type --- release/4/cairo/trunk/cairo.scm | 30 +++--- 1 files changed, 15 insertions(+), 15 deletions(-) diff --git a/release/4/cairo/trunk/cairo.scm b/release/4/cairo/trunk/cairo.scm index c2ad2b5..d568bcf 100644 --- a/release/4/cairo/trunk/cairo.scm +++ b/release/4/cairo/trunk/cairo.scm @@ -308,14 +308,14 @@ EOF (lambda () (maker (make-blob sizeof-cairo-text-extents) (define-record-printer (cairo-text-extents-type te out) - (for-each (lambda (x) (display x out) -(list #cairo-text-extents - (cairo-text-extents-x-bearing te) - (cairo-text-extents-y-bearing te) - (cairo-text-extents-width te) - (cairo-text-extents-height te) - (cairo-text-extents-x-advance te) - (cairo-text-extents-y-advance te) + (for-each (lambda (x) (display x out)) + (list #cairo-text-extents + (cairo-text-extents-x-bearing te) + (cairo-text-extents-y-bearing te) + (cairo-text-extents-width te) + (cairo-text-extents-height te) + (cairo-text-extents-x-advance te) + (cairo-text-extents-y-advance te (define-foreign-type cairo_text_extents_t scheme-pointer) @@ -341,13 +341,13 @@ EOF (lambda () (maker (make-blob sizeof-cairo-font-extents) (define-record-printer (cairo-font-extents-type e out) - (for-each (lambda (x) (display x out) -(list #cairo-font-extents - (cairo-font-extents-ascent e) - (cairo-font-extents-descent e) - (cairo-font-extents-height e) - (cairo-font-extents-max-x-advance e) - (cairo-font-extents-max-y-advance e) + (for-each (lambda (x) (display x out)) + (list #cairo-font-extents + (cairo-font-extents-ascent e) + (cairo-font-extents-descent e) + (cairo-font-extents-height e) + (cairo-font-extents-max-x-advance e) + (cairo-font-extents-max-y-advance e (define-foreign-type cairo_font_extents_t scheme-pointer) -- 1.7.7.3 ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] segfault using cairo/SDL
* Markus Klotzbuecher m...@marumbi.de [120103 21:11]: I took another attempt to figure out this crash. I still don't see the problem, but I've found a smaller testcase that reliably crashes (for me, at least): (use cairo) (define t1 (make-cairo-text-extents-type)) (display t1) (cairo-text-extents-x-bearing-set! t1 1) (display t1) I also discovered a bug in the record printer for the extents types, patch attached. Thanks for that, I noticed this today as well. Your bug however seems unrelated to cairo or SDL. I have come to the following test case that uses the same FFI procedures in core (modulo some struct layout, the original has 6 doubles there or so): http://paste.call-cc.org/paste?id=78a52e65f6c4f52014f049e71a384ac380c63b62 I will further investigate. Thanks, Christian -- Who can (make) the muddy water (clear)? Let it be still, and it will gradually become clear. Who can secure the condition of rest? Let movement go on, and the condition of rest will gradually arise. -- Lao Tse. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] segfault using cairo/SDL
On Thu, Dec 22, 2011 at 10:57:39AM +0100, Markus Klotzbuecher wrote: On Thu, Dec 22, 2011 at 09:41:05AM +0100, Christian Kellermann wrote: * Markus Klotzbuecher m...@marumbi.de [111221 21:12]: Dear All, I'm trying to use the cairo and sdl eggs for a small visualization tool. One thing I would like to do is to use the mouse to move around the current figure by clicking and holding it. However, I am getting frequent segfaults after a few seconds of this moving around. The crash happens both when running compiled and interpreted. Below an slightly modified version of the test-cairo.scm from the cairo egg that implements this dragging (I would have pasted it to http://paste.call-cc.org/ , but the service seems down) Is anyone else using these eggs and has seen such problems? Does anyone have a suggestions how to track this down? Yes, I am currently using it for a small doodle framework for easy visualisations and games. I haven't looked (yet) into mouse support. The SDL egg is rather dusty and there might be such dark corners. I will file this as a bug and will have a look at it during the holidays. Great, much appreciated! If you find the time you could build a chicken with debugging information (add DEBUGBUILD=1 to the make call) and show be the backtrace of that. This might be of more help than the standard backtrace. Fine, i'll try to do that during the holidays! The problem seems to be triggered by the use of text-extents. I uploaded a newer testcase to the bug report that makes heavier use of extents and also crashes almost immediately on my machine. I also added a backtraces from a CHICKEN built with DEBUGBUILD=1. Best regards Markus ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] segfault using cairo/SDL
* Markus Klotzbuecher m...@marumbi.de [111221 21:12]: Dear All, I'm trying to use the cairo and sdl eggs for a small visualization tool. One thing I would like to do is to use the mouse to move around the current figure by clicking and holding it. However, I am getting frequent segfaults after a few seconds of this moving around. The crash happens both when running compiled and interpreted. Below an slightly modified version of the test-cairo.scm from the cairo egg that implements this dragging (I would have pasted it to http://paste.call-cc.org/ , but the service seems down) Is anyone else using these eggs and has seen such problems? Does anyone have a suggestions how to track this down? Yes, I am currently using it for a small doodle framework for easy visualisations and games. I haven't looked (yet) into mouse support. The SDL egg is rather dusty and there might be such dark corners. I will file this as a bug and will have a look at it during the holidays. If you find the time you could build a chicken with debugging information (add DEBUGBUILD=1 to the make call) and show be the backtrace of that. This might be of more help than the standard backtrace. Thanks for your help! Christian -- Who can (make) the muddy water (clear)? Let it be still, and it will gradually become clear. Who can secure the condition of rest? Let movement go on, and the condition of rest will gradually arise. -- Lao Tse. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] segfault using cairo/SDL
* Markus Klotzbuecher m...@marumbi.de [111221 21:12]: I'll be pleased to provide more information. I have filed ticket 762 for it. Please feel free to add further findings to that. https://bugs.call-cc.org/ticket/762 Thanks! Christian -- Who can (make) the muddy water (clear)? Let it be still, and it will gradually become clear. Who can secure the condition of rest? Let movement go on, and the condition of rest will gradually arise. -- Lao Tse. ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
Re: [Chicken-users] segfault using cairo/SDL
Hi Christian, On Thu, Dec 22, 2011 at 09:41:05AM +0100, Christian Kellermann wrote: * Markus Klotzbuecher m...@marumbi.de [111221 21:12]: Dear All, I'm trying to use the cairo and sdl eggs for a small visualization tool. One thing I would like to do is to use the mouse to move around the current figure by clicking and holding it. However, I am getting frequent segfaults after a few seconds of this moving around. The crash happens both when running compiled and interpreted. Below an slightly modified version of the test-cairo.scm from the cairo egg that implements this dragging (I would have pasted it to http://paste.call-cc.org/ , but the service seems down) Is anyone else using these eggs and has seen such problems? Does anyone have a suggestions how to track this down? Yes, I am currently using it for a small doodle framework for easy visualisations and games. I haven't looked (yet) into mouse support. The SDL egg is rather dusty and there might be such dark corners. I will file this as a bug and will have a look at it during the holidays. Great, much appreciated! If you find the time you could build a chicken with debugging information (add DEBUGBUILD=1 to the make call) and show be the backtrace of that. This might be of more help than the standard backtrace. Fine, i'll try to do that during the holidays! Thanks for your help! Thank you! Markus ___ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users
[Chicken-users] segfault using cairo/SDL
Dear All, I'm trying to use the cairo and sdl eggs for a small visualization tool. One thing I would like to do is to use the mouse to move around the current figure by clicking and holding it. However, I am getting frequent segfaults after a few seconds of this moving around. The crash happens both when running compiled and interpreted. Below an slightly modified version of the test-cairo.scm from the cairo egg that implements this dragging (I would have pasted it to http://paste.call-cc.org/ , but the service seems down) Is anyone else using these eggs and has seen such problems? Does anyone have a suggestions how to track this down? I using debian testing amd64, sdl-egg v0.5.4, cairo-egg 0.1.12. CHICKEN Version 4.7.0 linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ] compiled 2011-09-05 on gladstone.duckburg.org (Linux) I'll be pleased to provide more information. Thanks in advance! Markus Backtrace: #0 0x7fdd81c9476f in f_2129 (c=optimized out, t0=optimized out, t1=optimized out) at cairo.c:3963 #1 0x7fdd89a59b18 in C_values () from /usr/lib/libchicken.so.6 #2 0x7fdd81c9afbe in f_2124 (c=optimized out, t0=optimized out, t1=optimized out, t2=optimized out) at cairo.c:3949 #3 0x00401daa in f_438 (c=optimized out, t0=140736279960048, t1=optimized out) at test-cairo.c:1661 #4 0x7fdd81ca0893 in f_1614 (c=optimized out, t0=optimized out, t1=optimized out) at cairo.c:4702 #5 0x7fdd89a59b18 in C_values () from /usr/lib/libchicken.so.6 #6 0x7fdd81c994a6 in f_1609 (c=optimized out, t0=optimized out, t1=optimized out, t2=optimized out, t3=optimized out) at cairo.c:4684 #7 0x004026cf in f_435 (c=optimized out, t0=140736279960480, t1=optimized out) at test-cairo.c:1653 #8 0x7fdd81c940b5 in f_1497 (c=optimized out, t0=optimized out, t1=optimized out) at cairo.c:4873 #9 0x7fdd89a59b18 in C_values () from /usr/lib/libchicken.so.6 #10 0x7fdd81c98f13 in f_1492 (c=optimized out, t0=optimized out, t1=optimized out, t2=optimized out, t3=optimized out, t4=optimized out, t5=3, t6=140589480767760) at cairo.c:4855 #11 0x004027c7 in f_432 (c=optimized out, t0=140736279961536, t1=optimized out) at test-cairo.c:1640 #12 0x7fdd81c946b5 in f_2087 (c=optimized out, t0=optimized out, t1=optimized out) at cairo.c:4023 #13 0x7fdd89a59b18 in C_values () from /usr/lib/libchicken.so.6 #14 0x7fdd81c9ada3 in f_2082 (c=optimized out, t0=optimized out, t1=optimized out, t2=optimized out, t3=optimized out, t4=optimized out, t5=140736279961424, t6=140736279960944) at cairo.c:4005 #15 0x00401e11 in f_449 (c=optimized out, t0=140736279961296, t1=140736279960944) at test-cairo.c:1627 #16 0x7fdd89a5d27b in C_minus () from /usr/lib/libchicken.so.6 #17 0x00406c8e in f_453 (c=optimized out, t0=140736279961336, t1=140736279961184) at test-cairo.c:1619 #18 0x7fdd81c94f73 in f_2223 (c=optimized out, t0=optimized out, t1=140736279961336, t2=optimized out) at cairo.c:3771 #19 0x004028c5 in f_445 (c=optimized out, t0=140736279961568, t1=optimized out) at test-cairo.c:1611 #20 0x7fdd81c94e63 in f_2213 (c=optimized out, t0=optimized out, t1=140736279961568, t2=optimized out) at cairo.c:3791 #21 0x004029ce in f_429 (c=optimized out, t0=140736279961872, t1=optimized out) at test-cairo.c:1596 #22 0x7fdd81c944d1 in f_1929 (c=optimized out, t0=optimized out, t1=optimized out) at cairo.c:4211 #23 0x7fdd89a59b18 in C_values () from /usr/lib/libchicken.so.6 #24 0x7fdd81c9a56e in f_1924 (c=optimized out, t0=optimized out, t1=optimized out, t2=optimized out) at cairo.c:4197 #25 0x00402ab1 in f_426 (c=optimized out, t0=140589481276352, t1=optimized out) at test-cairo.c:1581 #26 0x7fdd81c96528 in f_2512 (c=optimized out, t0=140589481276312, t1=140736279962032) at cairo.c:3337 #27 0x7fdd89849a75 in ?? () from /usr/lib/libchicken.so.6 #28 0x7fdd89a36234 in ?? () from /usr/lib/libchicken.so.6 #29 0x7fdd89a5b112 in C_allocate_vector () from /usr/lib/libchicken.so.6 #30 0x7fdd8983e633 in ?? () from /usr/lib/libchicken.so.6 #31 0x7fdd898377ed in ?? () from /usr/lib/libchicken.so.6 #32 0x7fdd89a39368 in CHICKEN_run () from /usr/lib/libchicken.so.6 #33 0x7fdd89a3941b in CHICKEN_main () from /usr/lib/libchicken.so.6 #34 0x7fdd88f9aead in __libc_start_main (main=optimized out, argc=optimized out, ubp_av=optimized out, init=optimized out, fini=optimized out, rtld_fini=optimized out, stack_end=0x7fffb7f96408) at libc-start.c:228 #35 0x004010b5 in _start () (gdb) ; A test program for the Cairo bindings ; Michael Bridgen mi...@squaremobius.net ; Tony Garnock-Jones to...@kcbbs.gen.nz (use fmt) (use posix) (use sdl) (use cairo) (import chicken scheme foreign) ;; only required on OS X ;; (declare ;; (foreign-declare #include SDL/SDL.h\n) ;; (run-time-macros)) ;; (foreign-code SDL_Init(SDL_INIT_EVERYTHING);)