Segfault from QWindow::getDevicePixelRatio()
-
Hey, I am using qml to display some pixmaps that i dynamically generate. When switching through them very fast, my application crashes with a segfault. Running it with gdb shows me that it’s coming from QWindow::getDevicePixelRatio().
Does anyone have an idea what might cause this? I wouldn’t know what other information to provide.
Thanks in advance -
Hi,
You can add:
- Qt version
- OS
- Minimal compilable example application that shows this
- How fast are you changing your images ?
- How big are they ?
etc.
-
Hi,
You can add:
- Qt version
- OS
- Minimal compilable example application that shows this
- How fast are you changing your images ?
- How big are they ?
etc.
@SGaist My version is Qt 5.15.7, I am running it on KDE Manjaro, I am changing images at ~20/s and they are pixmaps generated from book pages, so ~1020px in width and ~2000px in height.
I cant really post a minimal example here, since i am using the okular core which uses the poppler library to generate the pixmaps, but if you have an OS which is running with KDE as your DE, you could install https://github.com/Librum-Reader/Librum/tree/dev/develop. To see an actual call to the generation, you could set a breakpoint in Librum/src/application/core/core/document.cpp in the Document::requestPixmaps(const QList<PixmapRequest*>&, PixmapRequestFlags) method.
-
Can you provide a stack trace as well ?