[Tuxpaint-devel] Plugins crash
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: foo-script <foo...@o2...> - 2008-07-10 01:52:06
|
After today upgrade to newest CVS-version my plugins just stopped working.
Each attemption of use my plugin ends with crash. I run tuxpaint under gdb and here's sample result (fold.c):
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1218578752 (LWP 24142)]
0xb6859083 in confetti_click (api=0x824e378, which=0, canvas=0x1,
snapshot=0x811c0e8, x=135351072, y=424, update_rect=0x7d)
at magic/src/confetti.c:106
106 return SDL_MapRGB(canvas->format, temp_r, temp_g, temp_b);
This is first time when any occurs when program is running. Same code, but without switchin() , switchout() and modes() functions, on previous CVS-release was working really fine . As I noticed all these crashes are caused by any instruction using "canvas" surface. Isn't it bizzare that the address of canvas is 1? And why x value is so incredible high?
No matter of _modes() the result is the same.
SDL, SDL_ttf, SDL_image: newest, stable
Tuxpaint: CVS, 2008.07.10-0.9.21 - downloaded today.
Any ideas?
Best,
Adam
|