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

[Bug] Applications seems to be crashing when trying to load image #182

Open
andyrozman opened this issue Mar 27, 2024 · 2 comments
Open

Comments

@andyrozman
Copy link

It seems that application started crashing when loading images. I just installed application and started playing around a little and it seems that preview of picture stopped working and now application started crashing.

QSplitter::replaceWidget: Trying to replace a widget with itself
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
Traceback (most recent call last):
File "/opt/venvs/open-numismat/lib/python3.10/site-packages/OpenNumismat/ListView.py", line 1122, in paint
image.loadFromData(obverse_data)
TypeError: 'PySide6.QtGui.QImage.loadFromData' called with wrong argument types:
PySide6.QtGui.QImage.loadFromData(str)
Supported signatures:
PySide6.QtGui.QImage.loadFromData(Union[PySide6.QtCore.QByteArray, bytes], Optional[bytes] = None)
Opening in existing browser session.
Segmentation fault (cuimhne dumpáilte)

Tried to build application from scratch on linux, and deb file was created, but running it doesn't even open application...

@andyrozman
Copy link
Author

Ok. So I found the problem... I chaged by tree (on left side) to have just following structure:
ROOT -> Country -> Year and this is when problem started happeing... When I added another level
ROOT -> Country -> Year -> Type it started working again...

Maybe tree implementation needs to be checked.

@NEKolev
Copy link

NEKolev commented Sep 11, 2024

@andyrozman is the problem still observed with the latest version 1.9.11? I tested the stuff you described and it works fine for me with v1.9.11.

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

No branches or pull requests

2 participants