Qt 5.4rc / OS X 10.10 getting persistent NSTouch exception



  • We have a hybrid desktop app with some web content that I have tried displaying using both Qt WebKit and Qt WebEngine views. I believe a new exception is occurring since updating to the 10.10.2 developer seed. It can lead to crashes, but when it doesn't, it is persistent in the console and makes any other debugging impossible. Has anyone else run into this?

    @2014-12-04 15:36:16.719 appname[68517:4206796] -[NSTouch _initWithPreviousTouch:newPhase:position:isResting:]: unrecognized selector sent to instance 0x7feef1b07490
    2014-12-04 15:36:16.720 appname[68517:4206796] (
    0 CoreFoundation 0x00007fff8edcf66c __exceptionPreprocess + 172
    1 libobjc.A.dylib 0x00007fff9509276e objc_exception_throw + 43
    2 CoreFoundation 0x00007fff8edd26dd -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3 CoreFoundation 0x00007fff8ed19aa4 forwarding + 1028
    4 CoreFoundation 0x00007fff8ed19618 _CF_forwarding_prep_0 + 120
    5 AppKit 0x00007fff91bf541c -[NSEvent _initTouches] + 2048
    6 AppKit 0x00007fff91b9e26d -[NSEvent _initWithCGSEvent:eventRef:] + 3253
    7 AppKit 0x00007fff91a38584 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 422
    8 AppKit 0x00007fff91a2c463 -[NSApplication run] + 594
    9 libqcocoa.dylib 0x000000011039a92d _ZN21QCocoaEventDispatcher13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE + 2189
    10 QtCore 0x00000001065365dd _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE + 381
    11 QtCore 0x00000001065395ba _ZN16QCoreApplication4execEv + 346
    12 appname 0x0000000105792040 main + 304
    13 appname 0x0000000105791f04 start + 52
    )@


  • Lifetime Qt Champion

    Hi,

    Can you reproduce this with a minimal compilable example ?



  • [quote author="SGaist" date="1417730762"]Hi,

    Can you reproduce this with a minimal compilable example ?[/quote]

    Sure, give this a try:
    https://www.dropbox.com/s/q7gpzx7cllsvq85/qtWebTest.zip?dl=0

    It will give a window with a 200px wide maps view. move the mouse over the map and you will see the exceptions filling the console. move the mouse off of the map and the exceptions cease. This happens identically with Qt WebEngine and Qt WebKit views.



  • FWIW, now with the current OS X 10.10.2 developer seed, this no longer occurs. May have been something in the earlier 10.10.2 developer build.


  • Lifetime Qt Champion

    Well, good ! Problem fixed ! :)

    Well, I don't like that kind of thing resolving for themselves magically...


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.