Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jan 2020 21:49:50 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 243267] graphics/gimp-app: 2.10.14,1 crashes on startup in gimp_restore (upgrade from 2.8-something)
Message-ID:  <bug-243267-6497-YkATCfn2A0@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-243267-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-243267-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D243267

--- Comment #3 from Marcin Cie=C5=9Blak <saper@saper.info> ---
Created attachment 210668
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D210668&action=
=3Dedit
full gdb log

Command: env LANG=3DC gdb831 --args /usr/local/bin/gimp-2.10 --verbose
--console-messages --debug-handlers

produces the following backtrace:

Loading 'mypaint brush factory' data
  Loading /usr/local/share/mypaint-data/1.0/brushes/classic/blend+paint.myb
Assertion failed: (json_object_get_type(jso) =3D=3D json_type_object), func=
tion
json_object_object_add_ex, file json_object.c, line 476.

Thread 1 received signal SIGABRT, Aborted.
0x0000000807139aea in thr_kill () from /lib/libc.so.7
(gdb) bt
#0  0x0000000807139aea in thr_kill () at /lib/libc.so.7
#1  0x0000000807139ab4 in __raise (s=3D6) at /usr/src/lib/libc/gen/raise.c:=
52
#2  0x0000000807139a29 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#3  0x00000008071b5101 in __assert (func=3D<optimized out>, file=3D<optimiz=
ed out>,
line=3D<optimized out>, failedexpr=3D<optimized out>) at
/usr/src/lib/libc/gen/assert.c:51
#4  0x0000000805e0fef5 in json_object_object_add_ex (jso=3D0x81c6fcc00,
key=3D0x81d9ff228 "comment", val=3D0x81c6fcc60, opts=3D0) at json_object.c:=
476
#5  0x0000000805e10077 in json_object_object_add (jso=3D0x81c6fcc00,
key=3D0x81d9ff228 "comment", val=3D0x81c6fcc60) at json_object.c:508
#6  0x0000000805e17b64 in json_tokener_parse_ex
    (tok=3D0x81eb46340, str=3D0x81e643c25 ", \n    \"group\": \"\", \n=20=
=20=20
\"parent_brush_name\": \"\", \n    \"settings\": {\n        \"anti_aliasing=
\":
{\n", ' ' <repeats 12 times>, "\"base_value\": 0.0, \n", ' ' <repeats 12
times>, "\"inputs\": {}\n        }, \n        \"change_color_h\": {\n=20=20=
=20=20=20=20
"..., len=3D-1) at json_tokener.c:930
#7  0x0000000805e14013 in json_tokener_parse_verbose
    (str=3D0x81e643c00 "{\n    \"comment\": \"MyPaint brush file\", \n=20=
=20=20
\"group\": \"\", \n    \"parent_brush_name\": \"\", \n    \"settings\": {\n=
=20=20=20=20
   \"anti_aliasing\": {\n", ' ' <repeats 12 times>, "\"base_value\": 0.0, \=
n",
' ' <repeats 12 times>, "\"inputs\": {}\n        },"..., error=3D0x7fffffff=
de04)
at json_tokener.c:179
#8  0x0000000805e13f97 in json_tokener_parse
    (str=3D0x81e643c00 "{\n    \"comment\": \"MyPaint brush file\", \n=20=
=20=20
\"group\": \"\", \n    \"parent_brush_name\": \"\", \n    \"settings\": {\n=
=20=20=20=20
   \"anti_aliasing\": {\n", ' ' <repeats 12 times>, "\"base_value\": 0.0, \=
n",
' ' <repeats 12 times>, "\"inputs\": {}\n        },"...) at json_tokener.c:=
166
#9  0x0000000805bfe160 in mypaint_brush_from_string
    (self=3D0x81e5d4300, string=3D0x81e643c00 "{\n    \"comment\": \"MyPain=
t brush
file\", \n    \"group\": \"\", \n    \"parent_brush_name\": \"\", \n=20=20=
=20
\"settings\": {\n        \"anti_aliasing\": {\n", ' ' <repeats 12 times>,
"\"base_value\": 0.0, \n", ' ' <repeats 12 times>, "\"inputs\": {}\n=20=20=
=20=20=20=20=20
},"...) at mypaint-brush.c:1218
#10 0x0000000000a899df in gimp_mybrush_load (context=3D0x80ffe4250,
file=3D0x81c7bbd20, input=3D0x81e19bbf0, error=3D0x7fffffffe0b0) at
gimpmybrush-load.c:90
#11 0x00000000009d5373 in gimp_data_loader_factory_load_data
(factory=3D0x80ffb19f0, context=3D0x80ffe4250, cache=3D0x0, dir_writable=3D=
0,
file=3D0x81c7bbd20, info=3D0x81c7bb630, top_directory=3D0x81e1de3a0) at
gimpdataloaderfactory.c:453
#12 0x00000000009d513b in gimp_data_loader_factory_load_directory
(factory=3D0x80ffb19f0, context=3D0x80ffe4250, cache=3D0x0, dir_writable=3D=
0,
directory=3D0x81c7bbc80, top_directory=3D0x81e1de3a0) at
gimpdataloaderfactory.c:385
#13 0x00000000009d5108 in gimp_data_loader_factory_load_directory
(factory=3D0x80ffb19f0, context=3D0x80ffe4250, cache=3D0x0, dir_writable=3D=
0,
directory=3D0x81e1de3a0, top_directory=3D0x81e1de3a0) at
gimpdataloaderfactory.c:378
#14 0x00000000009d4fc3 in gimp_data_loader_factory_load (factory=3D0x80ffb1=
9f0,
context=3D0x80ffe4250, cache=3D0x0) at gimpdataloaderfactory.c:330
#15 0x00000000009d4e51 in gimp_data_loader_factory_data_init
(factory=3D0x80ffb19f0, context=3D0x80ffe4250) at gimpdataloaderfactory.c:1=
43
#16 0x00000000009d1244 in gimp_data_factory_data_init (factory=3D0x80ffb19f=
0,
context=3D0x80ffe4250, no_data=3D0) at gimpdatafactory.c:488
#17 0x0000000000972f2a in gimp_data_factories_load (gimp=3D0x80ff78070,
status_callback=3D0x513f20 <splash_update>) at gimp-data-factories.c:360
#18 0x000000000096c87c in gimp_restore (gimp=3D0x80ff78070,
status_callback=3D0x513f20 <splash_update>, error=3D0x7fffffffe590) at gimp=
.c:790
#19 0x0000000000508301 in app_run
    (full_prog_name=3D0x80fe1d4e0 "/usr/local/bin/gimp-2.10", filenames=3D0=
x0,
alternate_system_gimprc=3D0x0, alternate_gimprc=3D0x0, session_name=3D0x0,
batch_interpreter=3D0x0, batch_commands=3D0x0, as_new=3D0, no_interface=3D0=
, no_data=3D0,
no_fonts=3D0, no_splash=3D0, be_verbose=3D1, use_shm=3D1, use_cpu_accel=3D1,
console_messages=3D1, use_debug_handler=3D1, show_playground=3D0, show_debu=
g_menu=3D0,
stack_trace_mode=3DGIMP_STACK_TRACE_NEVER, pdb_compat_mode=3DGIMP_PDB_COMPA=
T_ON,
backtrace_file=3D0x80fe3f080
"/home/saper/.config/GIMP/2.10/CrashLog/GIMP-crash-1578863931.txt") at
app.c:330
#20 0x000000000050c1ee in main (argc=3D4, argv=3D0x80fe31870) at main.c:531


The brush seems to come from

/usr/local/share/mypaint-data/1.0/brushes/classic/blend+paint.myb

and belongs to

$ pkg which /usr/local/share/mypaint-data/1.0/brushes/classic/blend+paint.m=
yb
/usr/local/share/mypaint-data/1.0/brushes/classic/blend+paint.myb was insta=
lled
by package mypaint-brushes-1.3.0

jq confirms this is a valid JSON file.

This could be the following assertion in json-c library:


        assert(json_object_get_type(jso) =3D=3D json_type_object);


https://github.com/json-c/json-c/blob/json-c-0.13.1-20180305/json_object.c#=
L476

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-243267-6497-YkATCfn2A0>