After upgrading to Ubuntu 22.04.1 LTS OpenLP crashes right after start

edited October 2022 in Troubleshooting

Hi there,

I have been using OpenLP on Ubuntu 20.... LTS. After upgrading tu 22 a dialog comes up with this report:

Traceback (most recent call last):

 File "/usr/share/openlp/openlp/core/ui/mainwindow.py", line 823, in paintEvent

  self.preview_controller.preview_size_changed()

 File "/usr/share/openlp/openlp/core/ui/slidecontroller.py", line 625, in preview_size_changed

  max_width = self.preview_frame.width() - self.grid.contentsMargins().top() * 2

AttributeError: 'PreviewController' object has no attribute 'grid'


And crashes. Running openlp -l debug

reports the message below. I will be gratefull for any help.


Logging to: /home/kellerf/.cache/openlp/openlp.log

/usr/share/openlp/openlp/core/utils/languagemanager.py:96: FutureWarning: Possible nested set at position 1

 if re.match(r'[[].*[]]', language):

QWidget::repaint: Recursive repaint detected

Error in sys.excepthook:

Traceback (most recent call last):

 File "/usr/share/openlp/openlp/core/ui/mainwindow.py", line 823, in paintEvent

  self.preview_controller.preview_size_changed()

 File "/usr/share/openlp/openlp/core/ui/slidecontroller.py", line 625, in preview_size_changed

  max_width = self.preview_frame.width() - self.grid.contentsMargins().top() * 2

AttributeError: 'PreviewController' object has no attribute 'grid'


The above exception was the direct cause of the following exception:


Traceback (most recent call last):

 File "/usr/share/openlp/openlp/core/common/openlpmixin.py", line 58, in wrapped

  raise e

 File "/usr/share/openlp/openlp/core/common/openlpmixin.py", line 54, in wrapped

  return func(*args, **kwargs)

 File "/usr/share/openlp/openlp/core/__init__.py", line 226, in hook_exception

  self.set_normal_cursor()

 File "/usr/share/openlp/openlp/core/common/openlpmixin.py", line 58, in wrapped

  raise e

 File "/usr/share/openlp/openlp/core/common/openlpmixin.py", line 54, in wrapped

  return func(*args, **kwargs)

 File "/usr/share/openlp/openlp/core/__init__.py", line 292, in set_normal_cursor

  self.processEvents()

SystemError: <built-in method processEvents of OpenLP object at 0x7f0dd0b931c0> returned a result with an exception set


Original exception was:

Traceback (most recent call last):

 File "/usr/share/openlp/openlp/core/ui/mainwindow.py", line 823, in paintEvent

  self.preview_controller.preview_size_changed()

 File "/usr/share/openlp/openlp/core/ui/slidecontroller.py", line 625, in preview_size_changed

  max_width = self.preview_frame.width() - self.grid.contentsMargins().top() * 2

AttributeError: 'PreviewController' object has no attribute 'grid'

QDialog::exec: Recursive call detected

Neoprávněný přístup do paměti (SIGSEGV) (core dumped [obraz paměti uložen])

Sign In or Register to comment.