Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Segfault from QWindow::getDevicePixelRatio()
Forum Updated to NodeBB v4.3 + New Features

Segfault from QWindow::getDevicePixelRatio()

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 375 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Creaperdown
    wrote on last edited by Creaperdown
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      C 1 Reply Last reply
      1
      • SGaistS SGaist

        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.
        C Offline
        C Offline
        Creaperdown
        wrote on last edited by Creaperdown
        #3

        @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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Can you provide a stack trace as well ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved