Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RAFCON crashes if the NOTIFICATIONS_MINIMUM_LOG_LEVEL is set to 10 #851

Open
sebastian-brunner opened this issue Aug 12, 2021 · 0 comments
Labels

Comments

@sebastian-brunner
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant