Crash on switching between sliders in UI
To reproduce:
- Open Millipixels
- Tap "Gain" label
- Tap "Balance" label
Result: crash.
Core was generated by `millipixels /etc/millipixels.ini'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 __strlen_generic () at ../sysdeps/aarch64/multiarch/../strlen.S:98
98 ../sysdeps/aarch64/multiarch/../strlen.S: No such file or directory.
[Current thread is 1 (Thread 0xffffa1227010 (LWP 9893))]
(gdb) bt
#0 __strlen_generic () at ../sysdeps/aarch64/multiarch/../strlen.S:98
#1 0x0000ffffa2d337d4 in __vfprintf_internal (s=s@entry=0xffffc07beb28, format=format@entry=0xaaaaced55170 "%s", ap=..., mode_flags=mode_flags@entry=6) at vfprintf-internal.c:1688
#2 0x0000ffffa2d3e260 in __vsprintf_internal (string=string@entry=0xffffc07bed98 "", maxlen=maxlen@entry=12, format=format@entry=0xaaaaced55170 "%s", args=..., mode_flags=mode_flags@entry=6) at iovsprintf.c:96
#3 0x0000ffffa2db868c in ___sprintf_chk (s=s@entry=0xffffc07bed98 "", flag=flag@entry=1, slen=slen@entry=12, format=format@entry=0xaaaaced55170 "%s") at sprintf_chk.c:40
#4 0x0000aaaacec85ac0 in sprintf (__fmt=0xaaaaced55170 "%s", __s=0xffffc07bed98 "") at /usr/include/aarch64-linux-gnu/bits/stdio2.h:36
#5 draw_controls () at ../main.c:463
#9 0x0000ffffa3581e90 in <emit signal ??? on instance 0xaaaad5b2eaf0 [GtkAdjustment]> (instance=instance@entry=0xaaaad5b2eaf0, signal_id=<optimized out>, detail=detail@entry=0)
at ../../../gobject/gsignal.c:3551
#6 0x0000ffffa3568018 in g_closure_invoke
(closure=0xaaaad5a79b30, return_value=return_value@entry=0x0, n_param_values=1, param_values=param_values@entry=0xffffc07bef90, invocation_hint=invocation_hint@entry=0xffffc07bef58)
at ../../../gobject/gclosure.c:810
#7 0x0000ffffa357b9e4 in signal_emit_unlocked_R (node=node@entry=0xaaaad5a8b420, detail=0,
detail@entry=3229348128, instance=instance@entry=0xaaaad5b2eaf0, emission_return=emission_return@entry=0x0, instance_and_params=0xffffc07bef90,
instance_and_params@entry=0xffffa3bc6e08 <gtk_widget_get_screen_unchecked+52>) at ../../../gobject/gsignal.c:3739
#8 0x0000ffffa3581898 in g_signal_emit_valist (instance=instance@entry=0xaaaad5b2eaf0, signal_id=<optimized out>, detail=detail@entry=0, var_args=...) at ../../../gobject/gsignal.c:3495
#10 0x0000ffffa391d490 in emit_value_changed (adjustment=0xaaaad5b2eaf0 [GtkAdjustment]) at ../../../../gtk/gtkadjustment.c:349
#11 adjustment_set_value (value=32, adjustment=0xaaaad5b2eaf0 [GtkAdjustment]) at ../../../../gtk/gtkadjustment.c:450
#12 gtk_adjustment_set_value_internal (animate=0, value=32, adjustment=0xaaaad5b2eaf0 [GtkAdjustment]) at ../../../../gtk/gtkadjustment.c:545
#13 gtk_adjustment_set_value (adjustment=0xaaaad5b2eaf0 [GtkAdjustment], value=<optimized out>) at ../../../../gtk/gtkadjustment.c:567
#14 0x0000aaaacec86578 in on_control_auto_toggled (widget=<optimized out>, user_data=<optimized out>) at ../main.c:963
#15 0x0000ffffa3568274 in _g_closure_invoke_va (closure=closure@entry=0xaaaad5a9a0b0, return_value=0x0,
return_value@entry=0xffffc07bf500, instance=instance@entry=0xaaaad5cde270, args=..., n_params=0, param_types=0x0) at ../../../gobject/gclosure.c:873
#16 0x0000ffffa3581c34 in g_signal_emit_valist (instance=instance@entry=0xaaaad5cde270, signal_id=<optimized out>, detail=detail@entry=0, var_args=...) at ../../../gobject/gsignal.c:3404
#17 0x0000ffffa3581e90 in g_signal_emit (instance=instance@entry=0xaaaad5cde270, signal_id=<optimized out>, detail=detail@entry=0) at ../../../gobject/gsignal.c:3551
#18 0x0000ffffa3b7224c in gtk_toggle_button_toggled (toggle_button=toggle_button@entry=0xaaaad5cde270 [GtkToggleButton]) at ../../../../gtk/gtktogglebutton.c:527
#19 0x0000ffffa3b722dc in gtk_toggle_button_clicked (button=0xaaaad5cde270 [GtkToggleButton]) at ../../../../gtk/gtktogglebutton.c:612
#20 0x0000ffffa3566444 in g_type_class_meta_marshalvPython Exception <class 'gdb.MemoryError'> Cannot access memory at address 0x0:
(closure=<optimized out>, return_value=<optimized out>, instance=<optimized out>, args=#21 0x0000ffffa3568274 in _g_closure_invoke_va
(closure=closure@entry=0xaaaad59e5800, return_value=0x0, return_value@entry=0x10, instance=instance@entry=0xaaaad5cde270, args=..., n_params=0, param_types=0x0) at ../../../gobject/gclosure.c:873
#22 0x0000ffffa3581c34 in g_signal_emit_valist (instance=instance@entry=0xaaaad5cde270, signal_id=<optimized out>, detail=detail@entry=0, var_args=...) at ../../../gobject/gsignal.c:3404
#23 0x0000ffffa3581e90 in g_signal_emit (instance=instance@entry=0xaaaad5cde270, signal_id=<optimized out>, detail=detail@entry=0) at ../../../gobject/gsignal.c:3551
#24 0x0000ffffa3946cf8 in gtk_button_clicked (button=button@entry=0xaaaad5cde270 [GtkToggleButton]) at ../../../../gtk/gtkbutton.c:1541
#25 0x0000ffffa3b71fd4 in gtk_toggle_button_set_active (toggle_button=0xaaaad5cde270 [GtkToggleButton], is_active=0) at ../../../../gtk/gtktogglebutton.c:479
#26 0x0000aaaacec86ebc in on_preview_tap (user_data=<optimized out>, event=<optimized out>, widget=0xaaaad5cda0f0 [GtkDrawingArea]) at ../main.c:824
#27 on_preview_tap (widget=0xaaaad5cda0f0 [GtkDrawingArea], event=<optimized out>, user_data=<optimized out>) at ../main.c:783
#32 0x0000ffffa3581e90 in <emit signal ??? on instance 0xaaaad5cda0f0 [GtkDrawingArea]> (instance=instance@entry=0xaaaad5cda0f0, signal_id=<optimized out>, detail=detail@entry=0)
at ../../../gobject/gsignal.c:3551
#28 0x0000ffffa3c37814 in _gtk_marshal_BOOLEAN__BOXED
(closure=0xaaaad5ad8770, return_value=0xffffc07bfb90, n_param_values=<optimized out>, param_values=0xffffc07bfbb0, invocation_hint=<optimized out>, marshal_data=<optimized out>) at gtkmarshalers.c:83
#29 0x0000ffffa3568018 in g_closure_invoke
(closure=0xaaaad5ad8770, return_value=return_value@entry=0xffffc07bfb90, n_param_values=2, param_values=param_values@entry=0xffffc07bfbb0, invocation_hint=invocation_hint@entry=0xffffc07bfb78)
at ../../../gobject/gclosure.c:810
#30 0x0000ffffa357b9e4 in signal_emit_unlocked_R
(node=node@entry=0xaaaad5a1fe40, detail=detail@entry=0, instance=instance@entry=0xaaaad5cda0f0, emission_return=emission_return@entry=0xffffc07bfd00, instance_and_params=0xffffc07bfbb0,
instance_and_params@entry=0x0) at ../../../gobject/gsignal.c:3739
#31 0x0000ffffa3581580 in g_signal_emit_valist (instance=instance@entry=0xaaaad5cda0f0, signal_id=<optimized out>, detail=detail@entry=0, var_args=...) at ../../../gobject/gsignal.c:3505
#33 0x0000ffffa3bc9238 in gtk_widget_event_internal (widget=widget@entry=0xaaaad5cda0f0 [GtkDrawingArea], event=event@entry=0xaaaad59f0830) at ../../../../gtk/gtkwidget.c:7808
#34 0x0000ffffa3bcb774 in gtk_widget_event_internal (event=0xaaaad59f0830, widget=0xaaaad5cda0f0 [GtkDrawingArea]) at ../../../../gtk/gtkwidget.c:7379
#35 0x0000ffffa3a6ac8c in propagate_event_up (topmost=<optimized out>, event=<optimized out>, widget=0xaaaad5cda0f0 [GtkDrawingArea]) at ../../../../gtk/gtkmain.c:2598
#36 propagate_event (widget=widget@entry=0xaaaad5cda0f0 [GtkDrawingArea], event=event@entry=0xaaaad59f0830, captured=captured@entry=0, topmost=topmost@entry=0x0) at ../../../../gtk/gtkmain.c:2701
#37 0x0000ffffa3a6c220 in gtk_propagate_event (widget=widget@entry=0xaaaad5cda0f0 [GtkDrawingArea], event=event@entry=0xaaaad59f0830) at ../../../../gtk/gtkmain.c:2735
#38 0x0000ffffa3a6c9a4 in gtk_main_do_event (event=0xaaaad59f0830) at ../../../../gtk/gtkmain.c:1921
#39 gtk_main_do_event (event=<optimized out>) at ../../../../gtk/gtkmain.c:1691
#40 0x0000ffffa3726014 in _gdk_event_emit (event=event@entry=0xaaaad59f0830) at ../../../../gdk/gdkevents.c:73
#41 0x0000ffffa3787c8c in gdk_event_source_dispatch (base=<optimized out>, callback=<optimized out>, data=<optimized out>) at ../../../../../gdk/wayland/gdkeventsource.c:124
#42 0x0000ffffa3463bc8 in g_main_dispatch (context=0xaaaad59d9810) at ../../../glib/gmain.c:3325
#43 g_main_context_dispatch (context=0xaaaad59d9810) at ../../../glib/gmain.c:4043
#44 0x0000ffffa3463e5c in g_main_context_iterate (context=0xaaaad59d9810, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4119
#45 0x0000ffffa34641b0 in g_main_loop_run (loop=loop@entry=0xaaaad5a96b10) at ../../../glib/gmain.c:4317
#46 0x0000ffffa3a6b9d0 in gtk_main () at ../../../../gtk/gtkmain.c:1329
#47 0x0000aaaacec857a0 in main (argc=<optimized out>, argv=<optimized out>) at ../main.c:1163