Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt crashs on Raspberry with Touchscreen



  • Hi,

    I have a Adafruit 2.8" 320x240 capacitive display running on a raspberry 3, Raspian Jessie. I have a simple test program consisting of one slider, but my program crashs after I touch the screen several times. Here is the trace:

    TouchPointPressed without previous release event QQuickEventPoint(accepted:false state:Pressed scenePos:QPointF(167.475,214.104) id:3000002 timeHeld:0)
    TouchPointPressed without previous release event QQuickEventPoint(accepted:false state:Pressed scenePos:QPointF(229.281,202.154) id:3000002 timeHeld:0)
    
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x72e90440 (LWP 885)]
    0x75e823d0 in QMapDataBase::rebalance(QMapNodeBase*) ()
    from /usr/local/qt5pi/lib/libQt5Core.so.5
    (gdb) where
    #0  0x75e823d0 in QMapDataBase::rebalance(QMapNodeBase*) ()
    from /usr/local/qt5pi/lib/libQt5Core.so.5
    #1  0x75e82a28 in QMapDataBase::createNode(int, int, QMapNodeBase*, bool) ()
    from /usr/local/qt5pi/lib/libQt5Core.so.5
    #2  0x7682fc48 in QWindowSystemInterfacePrivate::fromNativeTouchPoints(QList<QWindowSystemInterface::TouchPoint> const&, QWindow const*, unsigned char, QEvent::Type*) () from /usr/local/qt5pi/lib/libQt5Gui.so.5
    #3  0x7250aaf0 in ?? ()
    Backtrace stopped: previous frame identical to this frame (corrupt stack?)
    

    What can I do?



  • It's best to post a bug report (including example code) here: https://bugreports.qt.io



  • Ok, I made a bug report. Does someone else experience the same issue?



  • Have you set up any environment variable for Qt? Some like this link
    https://doc.qt.io/qt-5/embedded-linux.html#touch

    From an ls -l in /dev/input and place the output here.


    Cleiton Bueno

    Blog | Linkedin | B2Open


Log in to reply