Re: [CinePaint] Cinepaint 0.25-0 Crashes

Glen <[email protected]> Tue, 30 Dec 2008 22:47:42 -0800
Newsgroups gmane.comp.video.cinepaint.user
Message-ID <1230706062.27210.19.camel@honcho>
Robin,

Recompiled with ./configure --enable-debug and had the compile fail
here:

make[2]: Entering directory
`/usr/local/src/cinepaint-cvs/cinepaint-project/cinepaint/app'
gcc -DHAVE_CONFIG_H -I. -I../lib -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/pixman-1   -INONE/include
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/pixman-1    -DHAVE_OY
-I/usr/local/include/oyranos -I.. -I/usr/local/include
-DPRECISION_CONFIG=PRECISION_U16 -DLOCALEDIR=\""NONE/share/locale"\"
-DLINUX= -DREGEX_MALLOC   -DDEBUG -g -Wall --pedantic -DDEBUG -g -Wall
--pedantic -g -MT cms.o -MD -MP -MF .deps/cms.Tpo -c -o cms.o cms.c
In file included from cms.c:55:
depth/float16.h:22:1: warning: C++ style comments are not allowed in ISO
C90
depth/float16.h:22:1: warning: (this will be reported only once per
input file)
cms.c:924:1: warning: C++ style comments are not allowed in ISO C90
cms.c:924:1: warning: (this will be reported only once per input file)
cms.c: In function ‘cms_read_standard_profile_dirs’:
cms.c:955: error: ‘current’ undeclared (first use in this function)
cms.c:955: error: (Each undeclared identifier is reported only once
cms.c:955: error: for each function it appears in.)
cms.c: In function ‘cms_transform_uint’:
cms.c:2223: warning: enumeration value ‘PRECISION_NONE’ not handled in
switch
cms.c:2223: warning: enumeration value ‘PRECISION_FLOAT’ not handled in
switch
cms.c:2223: warning: enumeration value ‘PRECISION_FLOAT16’ not handled
in switch
cms.c:2223: warning: enumeration value ‘PRECISION_BFP’ not handled in
switch
cms.c:2205: warning: unused variable ‘u’
cms.c:2203: warning: unused variable ‘dest_alpha’
cms.c:2202: warning: unused variable ‘prec_out’
cms.c:2201: warning: unused variable ‘prec_in’
cms.c:2200: warning: unused variable ‘extra_out’
cms.c:2199: warning: unused variable ‘extra_in’
cms.c: In function ‘cms_transform_float’:
cms.c:2273: warning: unused variable ‘u’
cms.c:2272: warning: unused variable ‘dbuffer’
cms.c:2263: warning: unused variable ‘pix’
cms.c:2261: warning: unused variable ‘src_alpha’
cms.c:2258: warning: unused variable ‘alpha’
cms.c:2257: warning: unused variable ‘chan’
cms.c:2253: warning: unused variable ‘cchan_in’
make[2]: *** [cms.o] Error 1
make[2]: Leaving directory
`/usr/local/src/cinepaint-cvs/cinepaint-project/cinepaint/app'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/usr/local/src/cinepaint-cvs/cinepaint-project/cinepaint/app'
make: *** [all-recursive] Error 1
root@honcho:/usr/local/src/cinepaint-cvs/cinepaint-project/cinepaint# 


Looks like it's blowing up at cms.c line 955 with current undeclared.
Here's the code in question:

954   #  ifdef DEBUG
955           printf("%s %d: \"%s\" %s\n", i == current ? "*":" ", i,
956                  oyProfile_GetText( temp_prof, oyNAME_DESCRIPTION ),
957                  oyProfile_GetFileName(temp_prof, 0));
958   #  endif

Well, that makes sense - it's crunching code it missed without DEBUG
defined.  I'm not sure what the i == current test was trying to show, or
if it's just foobar formatting in a printf, and it's getting late and my
eyes are starting to glaze over.  I'll bang this out in the morning and
get that stack dump to you.

Yours,

Glen


On Tue, 2008-12-30 at 21:23 -0800, Robin Rowe wrote:
> Glen,
> 
> Thank you for the bug report. Appreciate your help. I haven't gotten to 
> look at the oyranos version of 0.25.0 myself. I'm still working on the 
> plain version.
> 
> Please build it with debug enabled in order to generate a readable stack 
> dump.
> 
> Robin
> 


------------------------------------------------------------------------------
_______________________________________________
Cinepaint-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cinepaint-users