Re: [Tuxpaint-devel] Plugins crash
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: Bill K. <nb...@so...> - 2008-07-10 06:53:19
|
Note that _click() and _get_description() now receive an 'int mode' after 'int which', so be sure to update your functions to receive them! -bill! On Thu, Jul 10, 2008 at 03:52:12AM +0200, foo-script wrote: > 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 > > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > Tuxpaint-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxpaint-devel -- -bill! "Tux Paint" - free children's drawing software for Windows / Mac OS X / Linux! Download it today! http://www.tuxpaint.org/ |