GLib-CRITICAL g_utf16_to_utf8: assertion 'str != NULL' failed
Environment/Versions
- GIMP version:master 841d926f
- Package: selfbuild
- Operating System: Windows 11
Description of the bug
Console print this critical again and again
GLib-CRITICAL g_utf16_to_utf8: assertion 'str != NULL' failed
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- run gimp
…
Expected result:
Actual result:
Additional information
If you have a backtrace for a crash or a warning, paste it here.
(gimp-2.99.exe:10264): GLib-CRITICAL **: 04:53:40.365: g_utf16_to_utf8: assertion 'str != NULL' failed
Thread 1 "main" received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x7ffe836eef88 <g_utf8_skip+8> "GLib",
log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=<optimized out>,
args=args@entry=0x14a5a8 "Γ≡nâ■\177") at ../glib-2.80.0/glib\gmessages.c:1277
1277 g_private_set (&g_log_depth, GUINT_TO_POINTER (depth));
(gdb) bt full
#0 g_logv (log_domain=0x7ffe836eef88 <g_utf8_skip+8> "GLib",
log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, format=<optimized out>,
args=args@entry=0x14a5a8 "Γ≡nâ■\177") at ../glib-2.80.0/glib\gmessages.c:1277
data = 0x0
depth = <optimized out>
domain = 0x0
masquerade_fatal = <optimized out>
domain_fatal_mask = <optimized out>
log_func = 0x7ffe83648e60 <g_log_default_handler>
test_level = 10
was_fatal = 1
was_recursion = 0
msg_alloc = 0x223ba490 "g_utf16_to_utf8: assertion 'str != NULL' failed"
msg = 0x223ba490 "g_utf16_to_utf8: assertion 'str != NULL' failed"
i = 3
buffer = <optimized out>
#1 0x00007ffe8364864b in g_log (log_domain=0x590000 "", log_level=5832704,
log_level@entry=G_LOG_LEVEL_CRITICAL, format=0x265ae140 "")
at ../glib-2.80.0/glib\gmessages.c:1315
args = 0x14a5a8 "Γ≡nâ■\177"
#2 0x00007ffe836483cd in g_return_if_fail_warning (log_domain=0x590000 "",
pretty_function=0x1 <error: Cannot access memory at address 0x1>, expression=<optimized out>)
at ../glib-2.80.0/glib\gmessages.c:3000
No locals.
#3 0x00007ffe83679dc1 in g_utf16_to_utf8 (str=<optimized out>, len=<optimized out>,
items_read=<optimized out>, items_written=0x1, error=0x0) at ../glib-2.80.0/glib\gutf8.c:1115
--Type <RET> for more, q to quit, c to continue without paging--c
result = 0x0
in = <optimized out>
high_surrogate = <optimized out>
n_bytes = <optimized out>
out = <optimized out>
#4 0x00007ffe822948e4 in gimp_monitor_get_color_profile (monitor=0x5e1b10)
at ../libgimpwidgets/gimpwidgetsutils.c:717
filename_utf16 = 0x0
dir_utf16 = 0x0
per_user = 0
scope = WCS_PROFILE_MANAGEMENT_SCOPE_SYSTEM_WIDE
device_key = 0x14a910 L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Class\\{4d36e96e-e325-11ce-bfc1-08002be10318}\\0000"
filename = 0x0
fullpath = 0x0
file = 0x0
dir = 0x0
len = 138
scale_factor = 1
offsetx = 0
info = {{cbSize = 104, rcMonitor = {left = 0, top = 0, right = 1920, bottom = 962},
rcWork = {left = 0, top = 0, right = 1920, bottom = 914}, dwFlags = 1},
szDevice = L"\\\\.\\DISPLAY1\000\000\000\000\x32a0\265\176\376\177\000\001\000\000\000\215\100\051\202\376\177\000\000\000\000\160\161\300"}
monitor_geometry = {x = 0, y = 0, width = 1920, height = 962}
point = {x = 0, y = 0}
offsety = 0
monitor_handle = 0x10001
display_device = {cb = 840,
DeviceName = L"\\\\.\\DISPLAY1\\Monitor0\000\000\000\000\000\000\000\000\000\000",
DeviceString = L"Generic Non-PnP Monitor", '\000' <repeats 104 times>, StateFlags = 3,
DeviceID = L"MONITOR\\Default_Monitor\\{4d36e96e-e325-11ce-bfc1-08002be10318}\\0000", '\000' <repeats 60 times>,
DeviceKey = L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Class\\{4d36e96e-e325-11ce-bfc1-08002be10318}\\0000", '\000' <repeats 27 times>}
profile = 0x0
#5 0x00007ffe82294b01 in gimp_widget_get_color_profile (widget=0x2168fce0)
at ../libgimpwidgets/gimpwidgetsutils.c:772
monitor = 0x5e1b10
#6 0x00007ffe82295976 in gimp_widget_get_render_space (widget=0x236820f0, config=0x0)
at ../libgimpwidgets/gimpwidgetsutils.c:1096
dest_profile = 0x0
space = 0x0
#7 0x00007ffe82224bf8 in gimp_cairo_set_source_color (cr=0x1b920800, color=0x23681ec0,
config=0x0, softproof=0, widget=0x236820f0) at ../libgimpwidgets/gimpcairo-utils.c:243
space = 0x2000000020
rgba = {2.9348820296880766e-315, 2.9348820296880766e-315, 2.2853260200502563e-315,
6.9530445884171831e-310}
#8 0x00007ff7cd511db4 in gimp_view_renderer_draw (renderer=0x23681de0, widget=0x236820f0,
cr=0x1b920800, available_width=34, available_height=34)
at ../app/widgets/gimpviewrenderer.c:668
width = 33
height = 33
x = 4.9406564584124654e-324
y = 2.7927234542283797e-315
#9 0x00007ff7cd42b33a in gimp_view_draw (widget=0x236820f0, cr=0x1b920800)
at ../app/widgets/gimpview.c:420
allocation = {x = 3, y = 3, width = 34, height = 34}
#10 0x00007ffe7e71658b in gtk_widget_draw_internal (widget=widget@entry=0x236820f0,
cr=cr@entry=0x1b920800, clip_to_size=clip_to_size@entry=1)
at ../gtk+-3.24.41/gtk\gtkwidget.c:7084
result = 0
event_window = <optimized out>
push_group = 0
#11 0x00007ffe7e4b2b6c in gtk_container_propagate_draw (container=<optimized out>,
child=0x236820f0, cr=0x1b920800) at ../gtk+-3.24.41/gtk\gtkcontainer.c:3854
x = 3
y = 3
window = <optimized out>
w = 0x23b69b40
allocation = <optimized out>
#12 0x00007ffe7e4b3322 in gtk_container_draw (widget=0x23680d40, cr=0x1b920800)
at ../gtk+-3.24.41/gtk\gtkcontainer.c:3674
data = {container = 0x23680d40, child_infos = 0x223a3000, cr = 0x1b920800}
container = 0x23680d40
child_infos = 0x223a3000
i = 0
child_info = 0x1
#13 0x00007ffe7e4713f4 in gtk_button_render (gadget=<optimized out>, cr=0x1b920800,
x=<optimized out>, y=<optimized out>, width=<optimized out>, height=<optimized out>,
data=<optimized out>) at ../gtk+-3.24.41/gtk\gtkbutton.c:1826
widget = 0x23680d40
#14 0x00007ffe7e4bb8b4 in gtk_css_custom_gadget_draw (gadget=0x590000, cr=0x590000, x=643490112,
y=1, width=34, height=38) at ../gtk+-3.24.41/gtk\gtkcsscustomgadget.c:159
priv = <optimized out>
#15 0x00007ffe7e4c088f in gtk_css_gadget_draw (gadget=0x23681980, cr=0x1b920800)
at ../gtk+-3.24.41/gtk\gtkcssgadget.c:885
margin = {left = 0, right = 0, top = 0, bottom = 0}
border = {left = 1, right = 1, top = 1, bottom = 1}
padding = {left = 2, right = 2, top = 0, bottom = 0}
margin_box = {x = 0, y = 0, width = 40, height = 40}
priv = 0x23681950
draw_focus = 0
x = <optimized out>
y = <optimized out>
width = <optimized out>
height = <optimized out>
style = 0x23a4cef0
contents_x = 3
contents_y = 1
contents_width = 34
contents_height = 38
#16 0x00007ffe7e470631 in gtk_button_draw (widget=<optimized out>, cr=0x590000)
at ../gtk+-3.24.41/gtk\gtkbutton.c:1808
No locals.
#17 0x00007ffe7e71658b in gtk_widget_draw_internal (widget=widget@entry=0x23680d40,
cr=cr@entry=0x1b920800, clip_to_size=clip_to_size@entry=1)
at ../gtk+-3.24.41/gtk\gtkwidget.c:7084
result = 0
event_window = <optimized out>
push_group = 0
#18 0x00007ffe7e4b2b6c in gtk_container_propagate_draw (container=<optimized out>,
child=0x23680d40, cr=0x1b920800) at ../gtk+-3.24.41/gtk\gtkcontainer.c:3854
x = 0
y = 0
window = <optimized out>
w = 0x23b69b40
allocation = <optimized out>