RAFCON crashes if the NOTIFICATIONS_MINIMUM_LOG_LEVEL is set to 10
sebastian-brunner opened this issue · 0 comments
sebastian-brunner commented
Bug Description
If the NOTIFICATIONS_MINIMUM_LOG_LEVEL
is set to 10 in the RAFCON gui_config.yaml then RAFCON crashes with a pango error:
2021-08-12 15:13:06: DEBUG - rafcon.core.states.execution_state: Running ExecutionState with name 'execution abortion handling' and id 'MWHPPQ'
Handling execution abortion ...
EOL while scanning string literal (script.py (3), line 5)
2021-08-12 15:13:06: WARNING - py.warnings: /home/basti/.local/lib/python3.6/site-packages/gi/overrides/Gtk.py:1680: Warning: g_object_ref: assertion 'G_IS_OBJECT (object)' failed
return _Gtk_main(*args, **kwargs)
(rafcon:8019): Pango-CRITICAL **: 15:13:06.505: pango_layout_get_context: assertion 'layout != NULL' failed
(rafcon:8019): Pango-CRITICAL **: 15:13:06.505: pango_context_get_language: assertion 'context != NULL' failed
(rafcon:8019): Pango-CRITICAL **: 15:13:06.505: pango_context_get_font_description: assertion 'context != NULL' failed
(rafcon:8019): Pango-CRITICAL **: 15:13:06.505: pango_context_get_metrics: assertion 'PANGO_IS_CONTEXT (context)' failed
(rafcon:8019): Pango-CRITICAL **: 15:13:06.505: pango_font_metrics_get_approximate_char_width: assertion 'metrics != NULL' failed
(rafcon:8019): Pango-CRITICAL **: 15:13:06.505: pango_font_metrics_get_approximate_digit_width: assertion 'metrics != NULL' failed
(rafcon:8019): Pango-CRITICAL **: 15:13:06.505: pango_layout_get_extents: assertion 'layout != NULL' failed
2021-08-12 15:13:06: ERROR - rafcon.core.states.execution_state: ExecutionState with name 'execution abortion handling' and id 'MWHPPQ' had an internal error: ZeroDivisionError: division by zero
Traceback (most recent call last):
File "script.py (2)", line 11, in execute
ZeroDivisionError: division by zero
**
Pango:ERROR:pango-glyph-item.c:319:pango_glyph_item_iter_next_cluster: assertion failed: (iter->start_char < iter->end_char)
Aborted (core dumped)
Temporary solution:
Use a value between 30 and 50 for the the NOTIFICATIONS_MINIMUM_LOG_LEVEL
.