QML Javascript debugger crashes



  • I have made simple QML application and I want to make a UI test for that.

    When I let the test running it works fine, even printing to the standard output works fine. However when I set a break point in the javascript testcase and I access one of the QML elements from the script, the Javascript debugger crashes with a stack overflow error.

    I use

    • QT 5.5.0
    • QTCreator 3.4.2 Opensource
    • CDB C++ debugger: it works stable it even catches the crash in the Javascript debugger
    • Platform 32bit/64bit: The javascript debugger crash occurs for both platforms

    It would make sense to attach the QT project to the bug. I am not sure if possible....

    0	 ?? ::FNODOBFM::`string'	ntdll		0x775228d6	
    1	RtlpReAllocateHeap	ntdll		0x774c2bb6	
    2	RtlReAllocateHeap	ntdll		0x774c2462	
    3	RtlDebugReAllocateHeap	ntdll		0x77562990	
    4	 ?? ::FNODOBFM::`string'	ntdll		0x77525d0d	
    5	RtlReAllocateHeap	ntdll		0x774c2462	
    6	realloc_base	MSVCR120D		0x7fee00cce43	
    7	recalloc_dbg	MSVCR120D		0x7fee0061a7b	
    8	realloc_dbg	MSVCR120D		0x7fee00613e5	
    9	realloc	MSVCR120D		0x7fee007837e	
    10	QJsonObject::value	Qt5Cored		0x5034c994	
    11	QJsonObject::value	Qt5Cored		0x50348073	
    12	QJsonObject::value	Qt5Cored		0x506a95f1	
    13	QJsonObject::value	Qt5Cored		0x506a9acf	
    14	QJsonObject::value	Qt5Cored		0x506a92f9	
    15	QJsonObject::value	Qt5Cored		0x506a8f88	
    16	QJsonObject::value	Qt5Cored		0x5069f720	
    17	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d71f8	
    18	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d87aa	
    19	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4bb	
    20	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    21	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    22	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    23	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    24	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    25	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    26	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    27	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    28	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    29	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    30	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    31	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    32	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    33	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    34	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    35	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    36	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    37	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    38	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    39	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    40	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    41	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    42	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    43	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    44	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    45	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    46	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    47	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    48	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    49	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    50	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    51	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    52	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    53	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    54	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    55	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    56	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    57	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x519d7cbc	
    58	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a4f7	
    59	QQmlAbstractBoundSignal::QQmlAbstractBoundSignal	Qt5Qmld		0x5175a676	
    

    Debugger log

    dState changed from InferiorRunOk(11) to InferiorStopOk(14)
    dNOTE: INFERIOR SPONTANEOUS STOP
    sStopped.
    dState changed from InferiorRunOk(11) to InferiorStopOk(14) [master]
    dV8DebuggerClient: sending V8DEBUG v8request {"seq":5,"type":"request","command":"backtrace","arguments":{}}
    dV8DebuggerClient: receiving V8DEBUG v8message
    dV8DebuggerClient: receiving v8message {"body":{"frames":[{"debuggerFrame":false,"func":{"ref":0},"index":0,"line":25,"receiver":{"ref":2},"scopes":[{"index":0,"type":1},{"index":2,"type":0}],"script":{"ref":1}},{"debuggerFrame":false,"func":{"ref":3},"index":1,"line":1253,"receiver":{"ref":5},"scopes":[{"index":0,"type":1},{"index":2,"type":0}],"script":{"ref":4}},{"debuggerFrame":false,"func":{"ref":6},"index":2,"line":1269,"receiver":{"ref":8},"scopes":[{"index":0,"type":1},{"index":2,"type":0}],"script":{"ref":7}},{"debuggerFrame":false,"func":{"ref":9},"index":3,"line":1424,"receiver":{"ref":11},"scopes":[{"index":0,"type":1},{"index":2,"type":0}],"script":{"ref":10}},{"debuggerFrame":false,"func":{"ref":12},"index":4,"line":1459,"receiver":{"ref":14},"scopes":[{"index":0,"type":1},{"index":2,"type":0}],"script":{"ref":13}}],"fromFrame":0,"toFrame":5},"command":"backtrace","refs":[{"className":"Function","handle":0,"name":"test_math","type":"function"},{"handle":1,"name":"file:///D:/Workspaces/aherdevrtam02-KazaarA/Scanning/Mxx/Product/Mx/QtQuick/HelloQML/tst_Test.qml","type":"script"},{"handle":2,"properties":[],"type":"object"},{"className":"Function","handle":3,"name":"qtest_runInternal","type":"function"},{"handle":4,"name":"file:///C:/Qt/5.5/msvc2013_64/qml/QtTest/TestCase.qml","type":"script"},{"handle":5,"properties":[],"type":"object"},{"className":"Function","handle":6,"name":"qtest_runFunction","type":"function"},{"handle":7,"name":"file:///C:/Qt/5.5/msvc2013_64/qml/QtTest/TestCase.qml","type":"script"},{"handle":8,"properties":[],"type":"object"},{"className":"Function","handle":9,"name":"qtest_run","type":"function"},{"handle":10,"name":"file:///C:/Qt/5.5/msvc2013_64/qml/QtTest/TestCase.qml","type":"script"},{"handle":11,"properties":[],"type":"object"},{"className":"Function","handle":12,"name":"onWhenChanged","type":"function"},{"handle":13,"name":"file:///C:/Qt/5.5/msvc2013_64/qml/QtTest/TestCase.qml","type":"script"},{"handle":14,"properties":[],"type":"object"}],"request_seq":5,"running":false,"seq":7,"success":true,"type":"response"}
    dV8DebuggerClient: sending V8DEBUG v8request {"seq":6,"type":"request","command":"scope","arguments":{"number":0}}
    
     (4f24.3ac4): Stack overflow - code c00000fd (first chance)
    s
    sException at 0x77507c0f, code: 0xc00000fd: stack_overflow, flags=0x0 (first chance) in ntdll!RtlpAllocateHeap
     First chance exceptions are reported before any exception handling.
     This exception may be expected and handled.
     ntdll!RtlpAllocateHeap+0xc7a:
            00000000`77507c0f e89c79fdff      call    ntdll!RtlCompareMemoryUlong (00000000`774df5b0)
    
     *** WARNING: Unable to verify checksum for C:\Qt\5.5\msvc2013_64\bin\Qt5Qmld.dll
     *** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\Qt\5.5\msvc2013_64\bin\Qt5Qmld.dll - 
    s
    sException at 0x77507c0f, code: 0xc00000fd: stack_overflow, flags=0x0 (first chance)
    dNOTE: INFERIOR SPONTANEOUS STOP
    sStopped.
    dState changed from InferiorRunOk(11) to InferiorStopOk(14)
    sC++ debugger activated
     Checking for wow64 subsystem...
    <lm m wow64
    <!qtcreatorcdbext.registers -t 2
    <!qtcreatorcdbext.modules -t 3
     Resolving symbol: ntdll!RtlpAllocateHeap...
    <x ntdll!RtlpAllocateHeap
     Obtained 0x775077b0 for ntdll!RtlpAllocateHeap (#1)
    <u 0x775077b0 0x77507d10
    

Log in to reply
 

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