Bug 30120

Summary: Noethys crashed after start
Product: Mageia Reporter: Olivier Placais <olivier.placais>
Component: RPM PackagesAssignee: Nicolas Lécureuil <mageia>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal CC: python
Version: 8   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: noethys-1.2.8.7-3.mga8.noarch.rpm, python-wxpython4-4.1.1-1.1.mga8.src.rpm CVE:
Status comment:

Description Olivier Placais 2022-03-05 09:13:56 CET
Description of problem:
I just installed Noethys from the Mageia repositories to try it out.
I get an error message after opening that appears in a pop-up window and repeats until the software crashes completely. I have to kill the process to quit.

Version-Release number of selected component (if applicable):
noethys-1.2.8.7-3.mga8

How reproducible:
Install and start Noethys
Select an exemple base

Steps to Reproduce:
1.Install Noethy from mageia rpm
2.launch noethys
3.open an example database
4.A popup window appear with tis error code

## 03/03/2022 17:54:40 | 1.2.8.7 | wxPython 4.1.1 gtk3 (phoenix) wxWidgets 3.1.5 | linux Linux 5.15.23-desktop-1.mga8 x86_64 ##
Traceback (most recent call last):
  File "/usr/lib64/python3.8/site-packages/wx/lib/mixins/gridlabelrenderer.py", line 123, in _onPaintColLabels
    cols = self.CalcColLabelsExposed(window.GetUpdateRegion())
wx._core.wxAssertionError: C++ assertion "idx >= 0 && idx < m_numCols" failed at ./include/wx/generic/grid.h(2088) in GetColPos(): invalid column index 

in a terminal, we have this message :
[ops@Portable ~]$ noethys

(noethys:2567390): Gtk-CRITICAL **: 09:12:04.995: gtk_widget_set_size_request: assertion 'height >= -1' failed

(noethys:2567390): Gtk-CRITICAL **: 09:12:04.998: gtk_widget_set_size_request: assertion 'height >= -1' failed

(noethys:2567390): Gtk-CRITICAL **: 09:12:05.010: gtk_widget_set_size_request: assertion 'height >= -1' failed

(noethys:2567390): Gtk-CRITICAL **: 09:12:05.012: gtk_widget_set_size_request: assertion 'height >= -1' failed

(noethys:2567390): Gtk-CRITICAL **: 09:12:05.183: gtk_widget_set_size_request: assertion 'height >= -1' failed

(noethys:2567390): Gtk-CRITICAL **: 09:12:05.183: gtk_widget_set_size_request: assertion 'height >= -1' failed
Complété
Comment 1 Olivier Placais 2022-03-05 10:57:59 CET
A work around was find on MLO : https://www.mageialinux-online.org/forum/topic-29699-1+logiciel-pour-gerer-les-adherents-d-une-asso.php#m298240

Edit the file :
/usr/lib64/python3.8/site-packages/wx/lib/mixins/gridlabelrenderer.py

on line 123, replace :
cols = self.CalcColLabelsExposed(window.GetUpdateRegion())

by

try:
    cols = self.CalcColLabelsExposed(window.GetUpdateRegion())
except:
    return
Comment 2 Lewis Smith 2022-03-07 21:26:37 CET
Thank you for the detailed report, and finding the workaround.

/usr/lib64/python3.8/site-packages/wx/lib/mixins/gridlabelrenderer.py is provided by pkg 'python3-wxpython4' in 'python-wxpython4-4.1.1-1.1.mga8.src.rpm'.

The solution is defined in:
https://noethys.com/index.php/forum-34/6-signaler-un-bug/5534-et-un-bug-un-ubuntu-20-04-lancement#25191

It is not clear whether the problem is due to Noethys or wxpython; comments point to the latter, e.g. "Les autres erreurs sont causées par wxPython également. Des instabilités rencontrées par d'autres utilisateurs de wxpython, mais qui ne semblent pas gêner l'utilisation de Noethys".

Assigning to NicolasL for noethys, CC'ing the Python maintainers. It looks as if the suggested edit is benign.

Assignee: bugsquad => mageia
Source RPM: noethys-1.2.8.7-3.mga8.noarch.rpm => noethys-1.2.8.7-3.mga8.noarch.rpm, python-wxpython4-4.1.1-1.1.mga8.src.rpm
CC: (none) => python