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. why the program stopped?I dont know why.
Forum Updated to NodeBB v4.3 + New Features

why the program stopped?I dont know why.

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 354 Views
  • 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.
  • nicker playerN Offline
    nicker playerN Offline
    nicker player
    wrote on last edited by
    #1

    81528fbe-3b76-4a42-be6e-5a4b7ca77199-image.png
    When I runnging the debug.the program stopped here.but not a detail line of the code.I dont know what s the reason caused the problem.coud any one told me the way to find the real bugs?

    1 Reply Last reply
    0
    • JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      For whatever reason you are getting an error message when exiting your program during destruction of something from QML.
      It is probably pausing during trying to send the message to somewhere, but possibly because you are during exit it apparently gets stuck on some timer.
      If you are very lucky you might be able to see the text of the message by moving up the stack trace and seeing what, say. the last string parameter to sendDebugMessage() or qt_message() is by hovering it, but I think that won't work since your Qt does not seem to be a debug build.

      1 Reply Last reply
      0
      • nicker playerN Offline
        nicker playerN Offline
        nicker player
        wrote on last edited by
        #3

        In fact, I was running the debug version.and the program exited with no reason.I counldnt locate the code where the program exited.Now i dont know what should i do to find the bugs.

        image.png

        image.png

        jsulmJ 1 Reply Last reply
        0
        • nicker playerN nicker player

          In fact, I was running the debug version.and the program exited with no reason.I counldnt locate the code where the program exited.Now i dont know what should i do to find the bugs.

          image.png

          image.png

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @nicker-player said in why the program stopped?I dont know why.:

          Now i dont know what should i do to find the bugs

          Run through debugger.
          Please post whole stack trace as text, not picture.

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          nicker playerN 1 Reply Last reply
          0
          • nicker playerN Offline
            nicker playerN Offline
            nicker player
            wrote on last edited by
            #5

            ~"2 received signal SIGSEGV, Segmentation fault.\n"

            ~"[Switching to Thread 19108.0x446c]\n"
            ~"0x68cd765b in QElapsedTimer::nsecsElapsed() const () from D:\Qt\Qt5.14.2\5.14.2\mingw73_32\bin\Qt5Core.dll\n"
            *stopped,reason="signal-received",signal-name="SIGSEGV",signal-meaning="Segmentation fault",frame={addr="0x68cd765b",func="QElapsedTimer::nsecsElapsed() const",args=[],from="D:\Qt\Qt5.14.2\5.14.2\mingw73_32\bin\Qt5Core.dll"},thread-id="2",stopped-threads="all"
            dNOTE: INFERIOR SPONTANEOUS STOP
            Stopped.
            dState changed from InferiorRunOk(8) to InferiorStopOk(11)
            <25importPlainDumpers off
            dHANDLING SIGNAL SIGSEGV
            Stopped: Segmentation fault (Signal SIGSEGV).
            <26-thread-info

            &"importPlainDumpers off\n"
            ~"155 printers disabled\n"
            ~"0 of 155 printers enabled\n"
            ~"None\n"
            25^done

            ~"error return ../../../../src/gdb-8.1/gdb/windows-nat.c:490 was 6\n"
            26^done,threads=[{id="1",target-id="Thread 19108.0x359c",frame={level="0",addr="0x77e9f8d1",func="ntdll!ZwWaitForSingleObject",args=[],from="C:\Windows\SysWOW64\ntdll.dll"},state="stopped"},{id="2",target-id="Thread 19108.0x446c",frame={level="0",addr="0x68cd765b",func="QElapsedTimer::nsecsElapsed() const",args=[],from="D:\Qt\Qt5.14.2\5.14.2\mingw73_32\bin\Qt5Core.dll"},state="stopped"}],current-thread-id="2"
            <27python theDumper.fetchStack({"limit":20,"nativemixed":0,"token":27})

            &"python theDumper.fetchStack({"limit":20,"nativemixed":0,"token":27})\n"
            ~"result={token="0",stack={frames=[frame={level="0",address="0x68cd765b",function="QElapsedTimer::nsecsElapsed() const",file="",line="0",module="",language="c"}frame={level="1",address="0x368917ef",function="QDebugMessageServiceImpl::sendDebugMessage(QtMsgType, QMessageLogContext const&, QString const&)",file="",line="0",module="",language="c"}frame={level="2",address="0x3689196e",function="DebugMessageHandler(QtMsgType, QMessageLogContext const&, QString const&)",file="",line="0",module="",language="c"}frame={level="3",address="0x68a9ab7d",function="qt_message(QtMsgType, QMessageLogContext const&, char const*, char*)",file="",line="0",module="",language="c"}frame={level="4",address="0x68e2396c",function="QMessageLogger::fatal(char const*, ...) const",file="",line="0",module="",language="c"}frame={level="5",address="0x68a9fe42",function="QThread::~QThread()",file="",line="0",module="",language="c"}frame={level="6",address="0x363279d3",function="QQmlDebugServerImpl::~QQmlDebugServerImpl()",file="",line="0",module="",language="c"}frame={level="7",address="0x664a1d84",function="QQmlDebugConnectorFactory::~QQmlDebugConnectorFactory()",file="",line="0",module="",language="c"}frame={level="8",address="0x36328052",function="QQmlDebugServerFactory::~QQmlDebugServerFactory()",file="",line="0",module="",language="c"}frame={level="9",address="0x68c75c7f",function="QLibraryPrivate::unload(QLibraryPrivate::UnloadFlag)",file="",line="0",module="",language="c"}frame={level="10",address="0x68c6e037",function="QFactoryLoaderPrivate::~QFactoryLoaderPrivate()",file="",line="0",module="",language="c"}frame={level="11",address="0x68c6e15b",function="QFactoryLoaderPrivate::~QFactoryLoaderPrivate()",file="",line="0",module="",language="c"}frame={level="12",address="0x68cb6644",function="QObject::~QObject()",file="",line="0",module="",language="c"}frame={level="13",address="0x664a2bde",function="__tcf_0",file="",line="0",module="",language="c"}frame={level="14",address="0x664cf521",function="_execute_onexit_table",file="",line="0",module="",language="c"}frame={level="15",address="0x662c116c",function="_CRT_INIT@12",file="",line="0",module="",language="c"}frame={level="16",address="0x662c1281",function="__DllMainCRTStartup",file="",line="0",module="",language="c"}frame={level="17",address="0x662c13a3",function="DllMainCRTStartup@12",file="",line="0",module="",language="c"}frame={level="18",address="0x77eb9280",function="ntdll!RtlQueryEnvironmentVariable",file="",line="0",module="",language="c"}frame={level="19",address="0x662c0000",function="??",file="",line="0",module="",language="c"}]}}\n"

            27^done
            <28set disassembly-flavor att
            <29-interpreter-exec console "disassemble /rs 0x68cd765b"
            <30-stack-select-frame 0
            <31python theDumper.fetchVariables({"autoderef":1,"context":"","displaystringlimit":"100","dyntype":1,"expanded":["inspect","watch","return","local"],"fancy":1,"formats":{},"nativemixed":0,"partialvar":"","passexceptions":0,"qobjectnames":1,"resultvarname":"","stringcutoff":"10000","timestamps":0,"token":31,"typeformats":{},"watchers":[]})

            &"set disassembly-flavor att\n"
            28^done

            ~"Dump of assembler code for function _ZNK13QElapsedTimer12nsecsElapsedEv:\n"
            ~" 0x68cd7630 <+0>:\t55\tpush %ebp\n"
            ~" 0x68cd7631 <+1>:\t57\tpush %edi\n"
            ~" 0x68cd7632 <+2>:\t56\tpush %esi\n"
            ~" 0x68cd7633 <+3>:\t53\tpush %ebx\n"
            ~" 0x68cd7634 <+4>:\t89 cb\tmov %ecx,%ebx\n"
            ~" 0x68cd7636 <+6>:\t83 ec 4c\tsub $0x4c,%esp\n"
            ~" 0x68cd7639 <+9>:\t80 3d 80 fb 0b 69 00\tcmpb $0x0,0x690bfb80\n"
            ~" 0x68cd7640 <+16>:\ta1 88 fb 0b 69\tmov 0x690bfb88,%eax\n"
            ~" 0x68cd7645 <+21>:\t8b 15 8c fb 0b 69\tmov 0x690bfb8c,%edx\n"
            ~" 0x68cd764b <+27>:\t0f 84 cf 00 00 00\tje 0x68cd7720 <_ZNK13QElapsedTimer12nsecsElapsedEv+240>\n"
            ~" 0x68cd7651 <+33>:\t09 c2\tor %eax,%edx\n"
            ~" 0x68cd7653 <+35>:\t75 3b\tjne 0x68cd7690 <_ZNK13QElapsedTimer12nsecsElapsedEv+96>\n"
            ~" 0x68cd7655 <+37>:\tff 15 c8 c8 10 69\tcall *0x6910c8c8\n"
            ~"=> 0x68cd765b <+43>:\t2b 03\tsub (%ebx),%eax\n"
            ~" 0x68cd765d <+45>:\t8b 2d 88 fb 0b 69\tmov 0x690bfb88,%ebp\n"
            ~" 0x68cd7663 <+51>:\t1b 53 04\tsbb 0x4(%ebx),%edx\n"
            ~" 0x68cd7666 <+54>:\t8b 1d 8c fb 0b 69\tmov 0x690bfb8c,%ebx\n"
            ~" 0x68cd766c <+60>:\t89 df\tmov %ebx,%edi\n"
            ~" 0x68cd766e <+62>:\t09 ef\tor %ebp,%edi\n"
            ~" 0x68cd7670 <+64>:\t75 3e\tjne 0x68cd76b0 <_ZNK13QElapsedTimer12nsecsElapsedEv+128>\n"
            ~" 0x68cd7672 <+66>:\tb9 40 42 0f 00\tmov $0xf4240,%ecx\n"
            ~" 0x68cd7677 <+71>:\t83 c4 4c\tadd $0x4c,%esp\n"
            ~" 0x68cd767a <+74>:\t69 da 40 42 0f 00\timul $0xf4240,%edx,%ebx\n"
            ~" 0x68cd7680 <+80>:\tf7 e1\tmul %ecx\n"
            ~" 0x68cd7682 <+82>:\t01 da\tadd %ebx,%edx\n"
            ~" 0x68cd7684 <+84>:\t5b\tpop %ebx\n"
            ~" 0x68cd7685 <+85>:\t5e\tpop %esi\n"
            ~" 0x68cd7686 <+86>:\t5f\tpop %edi\n"
            ~" 0x68cd7687 <+87>:\t5d\tpop %ebp\n"
            ~" 0x68cd7688 <+88>:\tc3\tret \n"
            ~" 0x68cd7689 <+89>:\t8d b4 26 00 00 00 00\tlea 0x0(%esi,%eiz,1),%esi\n"
            ~" 0x68cd7690 <+96>:\t8d 44 24 38\tlea 0x38(%esp),%eax\n"
            ~" 0x68cd7694 <+100>:\t89 04 24\tmov %eax,(%esp)\n"
            ~" 0x68cd7697 <+103>:\tff 15 30 c9 10 69\tcall *0x6910c930\n"
            ~" 0x68cd769d <+109>:\t83 ec 04\tsub $0x4,%esp\n"
            ~" 0x68cd76a0 <+112>:\t8b 44 24 38\tmov 0x38(%esp),%eax\n"
            ~" 0x68cd76a4 <+116>:\t8b 54 24 3c\tmov 0x3c(%esp),%edx\n"
            ~" 0x68cd76a8 <+120>:\teb b1\tjmp 0x68cd765b <_ZNK13QElapsedTimer12nsecsElapsedEv+43>\n"
            ~" 0x68cd76aa <+122>:\t8d b6 00 00 00 00\tlea 0x0(%esi),%esi\n"
            ~" 0x68cd76b0 <+128>:\t8d 4c 24 28\tlea 0x28(%esp),%ecx\n"
            ~" 0x68cd76b4 <+132>:\t89 6c 24 08\tmov %ebp,0x8(%esp)\n"
            ~" 0x68cd76b8 <+136>:\t89 5c 24 0c\tmov %ebx,0xc(%esp)\n"
            ~" 0x68cd76bc <+140>:\tbf 00 ca 9a 3b\tmov $0x3b9aca00,%edi\n"
            ~" 0x68cd76c1 <+145>:\t89 04 24\tmov %eax,(%esp)\n"
            ~" 0x68cd76c4 <+148>:\t89 54 24 04\tmov %edx,0x4(%esp)\n"
            ~" 0x68cd76c8 <+152>:\t89 4c 24 10\tmov %ecx,0x10(%esp)\n"
            ~" 0x68cd76cc <+156>:\te8 c7 c6 0d 00\tcall 0x68db3d98 <__udivmoddi4>\n"
            ~" 0x68cd76d1 <+161>:\t69 4c 24 2c 00 ca 9a 3b\timul $0x3b9aca00,0x2c(%esp),%ecx\n"
            ~" 0x68cd76d9 <+169>:\t89 44 24 24\tmov %eax,0x24(%esp)\n"
            ~" 0x68cd76dd <+173>:\t89 d6\tmov %edx,%esi\n"
            ~" 0x68cd76df <+175>:\t89 f8\tmov %edi,%eax\n"
            ~" 0x68cd76e1 <+177>:\tf7 64 24 28\tmull 0x28(%esp)\n"
            ~" 0x68cd76e5 <+181>:\t89 6c 24 08\tmov %ebp,0x8(%esp)\n"
            ~" 0x68cd76e9 <+185>:\t89 5c 24 0c\tmov %ebx,0xc(%esp)\n"
            ~" 0x68cd76ed <+189>:\t69 f6 00 ca 9a 3b\timul $0x3b9aca00,%esi,%esi\n"
            ~" 0x68cd76f3 <+195>:\t01 ca\tadd %ecx,%edx\n"
            ~" 0x68cd76f5 <+197>:\t89 04 24\tmov %eax,(%esp)\n"
            ~" 0x68cd76f8 <+200>:\t89 54 24 04\tmov %edx,0x4(%esp)\n"
            ~" 0x68cd76fc <+204>:\te8 9f c6 0d 00\tcall 0x68db3da0 <__udivdi3>\n"
            ~" 0x68cd7701 <+209>:\t89 c1\tmov %eax,%ecx\n"
            ~" 0x68cd7703 <+211>:\t8b 44 24 24\tmov 0x24(%esp),%eax\n"
            ~" 0x68cd7707 <+215>:\t89 d3\tmov %edx,%ebx\n"
            ~" 0x68cd7709 <+217>:\tf7 e7\tmul %edi\n"
            ~" 0x68cd770b <+219>:\t01 f2\tadd %esi,%edx\n"
            ~" 0x68cd770d <+221>:\t01 c8\tadd %ecx,%eax\n"
            ~" 0x68cd770f <+223>:\t11 da\tadc %ebx,%edx\n"
            ~" 0x68cd7711 <+225>:\t83 c4 4c\tadd $0x4c,%esp\n"
            ~" 0x68cd7714 <+228>:\t5b\tpop %ebx\n"
            ~" 0x68cd7715 <+229>:\t5e\tpop %esi\n"
            ~" 0x68cd7716 <+230>:\t5f\tpop %edi\n"
            ~" 0x68cd7717 <+231>:\t5d\tpop %ebp\n"
            ~" 0x68cd7718 <+232>:\tc3\tret \n"
            ~" 0x68cd7719 <+233>:\t8d b4 26 00 00 00 00\tlea 0x0(%esi,%eiz,1),%esi\n"
            ~" 0x68cd7720 <+240>:\t8d 44 24 38\tlea 0x38(%esp),%eax\n"
            ~" 0x68cd7724 <+244>:\t89 04 24\tmov %eax,(%esp)\n"
            ~" 0x68cd7727 <+247>:\tff 15 34 c9 10 69\tcall *0x6910c934\n"
            ~" 0x68cd772d <+253>:\t83 ec 04\tsub $0x4,%esp\n"
            ~" 0x68cd7730 <+256>:\t85 c0\ttest %eax,%eax\n"
            ~" 0x68cd7732 <+258>:\t74 1f\tje 0x68cd7753 <_ZNK13QElapsedTimer12nsecsElapsedEv+291>\n"
            ~" 0x68cd7734 <+260>:\t8b 44 24 38\tmov 0x38(%esp),%eax\n"
            ~" 0x68cd7738 <+264>:\t8b 54 24 3c\tmov 0x3c(%esp),%edx\n"
            ~" 0x68cd773c <+268>:\tc6 05 80 fb 0b 69 01\tmovb $0x1,0x690bfb80\n"
            ~" 0x68cd7743 <+275>:\ta3 88 fb 0b 69\tmov %eax,0x690bfb88\n"
            ~" 0x68cd7748 <+280>:\t89 15 8c fb 0b 69\tmov %edx,0x690bfb8c\n"
            ~" 0x68cd774e <+286>:\te9 fe fe ff ff\tjmp 0x68cd7651 <_ZNK13QElapsedTimer12nsecsElapsedEv+33>\n"
            ~" 0x68cd7753 <+291>:\te8 48 d1 14 00\tcall 0x68e248a0 <_ZL23resolveCounterFrequencyv.part.0>\n"
            ~" 0x68cd7758 <+296>:\t90\tnop\n"
            ~" 0x68cd7759 <+297>:\t8d b4 26 00 00 00 00\tlea 0x0(%esi,%eiz,1),%esi\n"
            ~"End of assembler dump.\n"
            29^done

            30^done

            1 Reply Last reply
            0
            • jsulmJ jsulm

              @nicker-player said in why the program stopped?I dont know why.:

              Now i dont know what should i do to find the bugs

              Run through debugger.
              Please post whole stack trace as text, not picture.

              nicker playerN Offline
              nicker playerN Offline
              nicker player
              wrote on last edited by
              #6

              @jsulm please help me

              1 Reply Last reply
              0
              • Pl45m4P Pl45m4 referenced this topic on

              • Login

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