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. always c0000005 (Access violation) for qt6 exe based win11
Forum Updated to NodeBB v4.3 + New Features

always c0000005 (Access violation) for qt6 exe based win11

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 342 Views 1 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.
  • F Offline
    F Offline
    freepeasantry
    wrote on last edited by
    #1

    Dear All

    i encounter this error.

    1. if i run it in the qtcreator, it works well.
      2.if i copy the exe into another dir and using windeployqt <dir> to publish .
      3.enter this dir,and run it, it always crashes and get this error from dumpcrash file

    Would you have any advice? Thank you so much.

    Logs from WinDbg:

    APPLICATION_VERIFIER_FLAGS: 0

    CONTEXT: (.ecxr)
    rax=0000000000000000 rbx=00007ffadb8eb410 rcx=000000123e7fedf0
    rdx=4067b00000000000 rsi=0000017e3315f5d0 rdi=000000123e7fef90
    rip=00007ffadb8156d3 rsp=000000123e7fed80 rbp=000000123e7fefd0
    r8=4067b00000000000 r9=00000000ffffffff r10=00007ff6af7828c0
    r11=000000123e7fed90 r12=000000123e7fedf0 r13=000000123e7ff1b0
    r14=000000123e7feff0 r15=000000123e7ff090
    iopl=0 nv up ei pl nz na po nc
    cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
    Qt6Core!ZN23QCoreApplicationPrivate23lockThreadPostEventListEP7QObject+0x23:
    00007ffadb8156d3 488b5a08 mov rbx,qword ptr [rdx+8] ds:4067b00000000008=????????????????
    Resetting default scope

    EXCEPTION_RECORD: (.exr -1)
    ExceptionAddress: 00007ffadb8156d3 (Qt6Core!ZN23QCoreApplicationPrivate23lockThreadPostEventListEP7QObject+0x0000000000000023)
    ExceptionCode: c0000005 (Access violation)
    ExceptionFlags: 00000000
    NumberParameters: 2
    Parameter[0]: 0000000000000000
    Parameter[1]: ffffffffffffffff
    Attempt to read from address ffffffffffffffff

    PROCESS_NAME: CM260BM.exe

    READ_ADDRESS: ffffffffffffffff

    ERROR_CODE: (NTSTATUS) 0xc0000005 - 0x%p 0x%p %s

    EXCEPTION_CODE_STR: c0000005

    EXCEPTION_PARAMETER1: 0000000000000000

    EXCEPTION_PARAMETER2: ffffffffffffffff

    STACK_TEXT:
    000000123e7fed80 00007ffadb84cfc8 : 000000123e7fefd0 0000000000000000 0000000000000000 00007ffadb7b998c : Qt6Core!ZN23QCoreApplicationPrivate23lockThreadPostEventListEP7QObject+0x23
    000000123e7fedd0 00007ff6af7c9b12 : 000000002c370001 0000017effffffff 0000000000000000 000000000000000e : Qt6Core!ZN7QObject11deleteLaterEv+0x18
    000000123e7fee30 00007ff6af80ac5d : 0000000000000000 00007ffbffffffff 00000000000000ca 0000000000000000 : CM260BM!CKK_SocketThread::destroy_uarts+0x19a2
    000000123e7ff220 00007ff6af8101b7 : 0000000000000002 0000000000000120 0000017e2c6102ac 0000000000000030 : CM260BM!CKK_SocketThread::cleanWork+0xe8d
    000000123e7ff5d0 00007ffadb9a9cb0 : 0000017e33115fa0 0000000000000000 0000000000000000 0000000000000000 : CM260BM!CKK_SocketThread::run+0x2ee7
    000000123e7ff980 00007ffb6b04259d : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : Qt6Core!ZN14QSystemLibrary4loadEPKwb+0x1750
    000000123e7ff9d0 00007ffb6bb2af38 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : kernel32!BaseThreadInitThunk+0x1d
    000000123e7ffa00 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x28

    SYMBOL_NAME: Qt6Core+23

    MODULE_NAME: Qt6Core

    jsulmJ 1 Reply Last reply
    0
    • F freepeasantry

      Dear All

      i encounter this error.

      1. if i run it in the qtcreator, it works well.
        2.if i copy the exe into another dir and using windeployqt <dir> to publish .
        3.enter this dir,and run it, it always crashes and get this error from dumpcrash file

      Would you have any advice? Thank you so much.

      Logs from WinDbg:

      APPLICATION_VERIFIER_FLAGS: 0

      CONTEXT: (.ecxr)
      rax=0000000000000000 rbx=00007ffadb8eb410 rcx=000000123e7fedf0
      rdx=4067b00000000000 rsi=0000017e3315f5d0 rdi=000000123e7fef90
      rip=00007ffadb8156d3 rsp=000000123e7fed80 rbp=000000123e7fefd0
      r8=4067b00000000000 r9=00000000ffffffff r10=00007ff6af7828c0
      r11=000000123e7fed90 r12=000000123e7fedf0 r13=000000123e7ff1b0
      r14=000000123e7feff0 r15=000000123e7ff090
      iopl=0 nv up ei pl nz na po nc
      cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010206
      Qt6Core!ZN23QCoreApplicationPrivate23lockThreadPostEventListEP7QObject+0x23:
      00007ffadb8156d3 488b5a08 mov rbx,qword ptr [rdx+8] ds:4067b00000000008=????????????????
      Resetting default scope

      EXCEPTION_RECORD: (.exr -1)
      ExceptionAddress: 00007ffadb8156d3 (Qt6Core!ZN23QCoreApplicationPrivate23lockThreadPostEventListEP7QObject+0x0000000000000023)
      ExceptionCode: c0000005 (Access violation)
      ExceptionFlags: 00000000
      NumberParameters: 2
      Parameter[0]: 0000000000000000
      Parameter[1]: ffffffffffffffff
      Attempt to read from address ffffffffffffffff

      PROCESS_NAME: CM260BM.exe

      READ_ADDRESS: ffffffffffffffff

      ERROR_CODE: (NTSTATUS) 0xc0000005 - 0x%p 0x%p %s

      EXCEPTION_CODE_STR: c0000005

      EXCEPTION_PARAMETER1: 0000000000000000

      EXCEPTION_PARAMETER2: ffffffffffffffff

      STACK_TEXT:
      000000123e7fed80 00007ffadb84cfc8 : 000000123e7fefd0 0000000000000000 0000000000000000 00007ffadb7b998c : Qt6Core!ZN23QCoreApplicationPrivate23lockThreadPostEventListEP7QObject+0x23
      000000123e7fedd0 00007ff6af7c9b12 : 000000002c370001 0000017effffffff 0000000000000000 000000000000000e : Qt6Core!ZN7QObject11deleteLaterEv+0x18
      000000123e7fee30 00007ff6af80ac5d : 0000000000000000 00007ffbffffffff 00000000000000ca 0000000000000000 : CM260BM!CKK_SocketThread::destroy_uarts+0x19a2
      000000123e7ff220 00007ff6af8101b7 : 0000000000000002 0000000000000120 0000017e2c6102ac 0000000000000030 : CM260BM!CKK_SocketThread::cleanWork+0xe8d
      000000123e7ff5d0 00007ffadb9a9cb0 : 0000017e33115fa0 0000000000000000 0000000000000000 0000000000000000 : CM260BM!CKK_SocketThread::run+0x2ee7
      000000123e7ff980 00007ffb6b04259d : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : Qt6Core!ZN14QSystemLibrary4loadEPKwb+0x1750
      000000123e7ff9d0 00007ffb6bb2af38 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : kernel32!BaseThreadInitThunk+0x1d
      000000123e7ffa00 0000000000000000 : 0000000000000000 0000000000000000 0000000000000000 0000000000000000 : ntdll!RtlUserThreadStart+0x28

      SYMBOL_NAME: Qt6Core+23

      MODULE_NAME: Qt6Core

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

      @freepeasantry Try with a debug build to get more details.

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

      F 1 Reply Last reply
      0
      • jsulmJ jsulm

        @freepeasantry Try with a debug build to get more details.

        F Offline
        F Offline
        freepeasantry
        wrote on last edited by
        #3

        @jsulm . Do you mean build a debug exe to publish ? whatever the exe version(debug/release/relwithdebug), it works well in QTcreater. But always crash with the standalone run.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          freepeasantry
          wrote on last edited by
          #4

          this is the application output of QT Creater. But int he publish dir c:\wz\run-qt,run the CMB260BM.exe, once click this on_PBT_Start_clicked(),the crash log is very strange: it does not go through the programe follow( directly goto destroy_uarts()

          //Application output in QT Creator
          Product: Qt Creator 14.0.2
          Based on: Qt 6.7.3 (MSVC 2019, x86_64)
          Built on: Sep 27 2024 00:15:55
          From revision: 3004ebc0af

          17:40:51: Starting C:\wz\qt\qt_cm260bm\build\Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo\CM260BM.exe...
          enter the main

          Enter MainWindow::on_PBT_Start_clicked()
          new round test start
          MainWindow::preEnv enter
          MainWindow::m_lstqCheckbox= QList(QCheckBox(0x1a5980ab920, name="checkBox_1"), QCheckBox(0x1a5980ab230, name="checkBox_2"), QCheckBox(0x1a5980ab9b0, name="checkBox_3"), QCheckBox(0x1a5980ab4d0, name="checkBox_4"), QCheckBox(0x1a5980ab2c0, name="checkBox_5"), QCheckBox(0x1a5980ab3b0, name="checkBox_6"), QCheckBox(0x1a5980abb30, name="checkBox_7"), QCheckBox(0x1a5980ab440, name="checkBox_8"))
          ref path= "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../ref"
          "[2024-12-05 17:41:03.898][639][10]int CKK_RefThrd::set_refpath(QString&): refpath=C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../ref\r\n"
          "enter int MainWindow::createSockets()"
          max thread= 8

          handle "1" CKK_SocketThread
          exe dir: "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo"
          curr dir: "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo"
          cfgPath: "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../cfg/socket-cfg-1.ini"
          logPath: "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../log/socket-log-1.log"
          fwPath: "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../fwupdate"
          "[1]m_cfgFile:" "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../cfg/socket-cfg-1.ini" existence= true
          "[1]m_LogFile:" "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../log/socket-log-1.log" existence= true
          "[2024-12-05 17:41:03.903][172][1]CKK_SocketThread::CKK_SocketThread(int, const QString&, const QString&, const QString&, int): \r\n\r\nStart test\r\n"
          "[2024-12-05 17:41:03.905][173][1]CKK_SocketThread::CKK_SocketThread(int, const QString&, const QString&, const QString&, int): call parse_cfg()\r\n"
          configuration file path= "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../cfg/socket-cfg-1.ini"
          id= 1
          "[2024-12-05 17:41:03.906][587][1]int CKK_SocketThread::parse_cfg(): Chip: port=COM24,baud=115200\r\n"
          "[2024-12-05 17:41:03.906][595][1]int CKK_SocketThread::parse_cfg(): MCU: port=COM38,baud=115200\r\n"
          "[2024-12-05 17:41:03.907][603][1]int CKK_SocketThread::parse_cfg(): scan: port=COM43,baud=115200\r\n"
          "[2024-12-05 17:41:03.907][616][1]int CKK_SocketThread::parse_cfg(): exit\r\n"
          "[2024-12-05 17:41:03.907][175][1]CKK_SocketThread::CKK_SocketThread(int, const QString&, const QString&, const QString&, int): exit\r\n"
          "[2024-12-05 17:41:03.907][2621][1]int CKK_SocketThread::set_fwDir(QString&): m_loader=C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../fwupdate/FB2S_bootloader_build5280_rtk_update_115200.pkg,m_firmware=C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../fwupdate/CM260B_Firmware-R2081R3.1.0.0Build13799_Release.pkg\r\n"
          "[2024-12-05 17:41:03.907][536][1]int CKK_SocketThread::bound_signal(): bound signal\r\n"
          MainWindow::bound_signal 1
          MainWindow:: kickoff m_pRefThrd thread
          MainWindow:: kickoff thread 1 , m_pRefThrd->m_workBitmap= 2
          MainWindow::preEnv exit
          "[2024-12-05 17:41:03.910][35][10]virtual void CKK_RefThrd::run(): enter\r\n"
          "[2024-12-05 17:41:03.910][119][10]int CKK_RefThrd::preWork(): enter\r\n"
          "[2024-12-05 17:41:03.910][88][1]virtual void CKK_SocketThread::run(): enter run,tid=2044\r\n"
          "[2024-12-05 17:41:03.910][780][1]int CKK_SocketThread::preWork(): enter [1]\r\n"
          "[2024-12-05 17:41:03.910][240][1]int CKK_SocketThread::create_mcuuart(): this=0x1a59d3a9980\r\n"
          "[10]m_LogFile:" "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../ref/cn0-log.log" existence= true
          "[2024-12-05 17:41:03.910][247][1]int CKK_SocketThread::create_mcuuart(): m_mcuUart=0x1a59d3e4140\r\n"
          "[2024-12-05 17:41:03.911][146][1]int CKK_SerialPort::set_logs(QFile*, QMutex*, int):[]:get logs handlers 0x9d3a9ee8,0x9d3a9f60,id=1\r\n"
          "[2024-12-05 17:41:03.911][260][1]int CKK_SerialPort::set_comInfo(QString&, int):[]:enter COM38,115200\r\n"
          "[2024-12-05 17:41:03.911][577][10]int CKK_RefThrd::sendCN0Handler(): transfer handler,0x9d3aafa0, 0x9d3aafb0,0x9d3aafc0\r\n"
          "[2024-12-05 17:41:03.911][263][1]int CKK_SerialPort::set_comInfo(QString&, int):[COM38]:exit \r\n"
          "[2024-12-05 17:41:03.911][1813][1]void CKK_SocketThread::onsigCN0Handler(QFile*, QFile*, QReadWriteLock*): receive handler,0x9d3aafa0, 0x9d3aafb0,0x9d3aafc0\r\n"
          "[2024-12-05 17:41:03.911][273][1]int CKK_SerialPort::setup_port():[COM38]:enter\r\n"
          exit MainWindow::on_PBT_Start_clicked()
          "[2024-12-05 17:41:03.911][397][10]int CKK_RefThrd::parse(): open m_LogFile success\r\n"
          "[2024-12-05 17:41:03.911][109][1]int CKK_SerialPort::init_port():[COM38]:enter\r\n"
          "[10]m_L1File:" "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../ref/cn0_l1.dat" existence= true
          "[2024-12-05 17:41:03.912][408][10]int CKK_RefThrd::parse(): open m_L1File success\r\n"
          "[10]m_L5File:" "C:/wz/qt/qt_cm260bm/build/Desktop_Qt_6_7_2_MinGW_64_bit-RelWithDebInfo/../../ref/cn0_l5.dat" existence= true
          "[2024-12-05 17:41:03.912][120][1]int CKK_SerialPort::init_port():[COM38]:COM38 Port have been opened\r\n"
          "[2024-12-05 17:41:03.912][133][1]int CKK_SerialPort::init_port():[COM38]:exit 0\r\n"
          "[2024-12-05 17:41:03.913][419][10]int CKK_RefThrd::parse(): open m_L5File success\r\n"
          "[2024-12-05 17:41:03.913][309][1]int CKK_SerialPort::setup_port():[COM38]:exit \r\n"
          "[2024-12-05 17:41:03.913][421][10]int CKK_RefThrd::parse(): parse is completely\r\n"
          "[2024-12-05 17:41:03.913][141][10]int CKK_RefThrd::preWork(): new m_Instrument\r\n"
          "[2024-12-05 17:41:03.913][145][10]int CKK_RefThrd::preWork(): try to connect CW100\r\n"
          "[2024-12-05 17:41:03.913][261][1]int CKK_SocketThread::create_mcuuart(): exit with 0\r\n"
          "[2024-12-05 17:41:03.913][2372][1]int CKK_SocketThread::mcuPowerOnOff(bool): enter with 0\r\n"
          "[2024-12-05 17:41:03.913][157][1]int CKK_SerialPort::sendData(QString&):[COM38]:enter COM38,#POWEROFF\r\n"
          QObject: Cannot create children for a parent that is in a different thread.
          (Parent is QSerialPort(0x1a59d382de0), parent's thread is QThread(0x1a59d382dc0), current thread is CKK_SocketThread(0x1a59d3a9980)
          "[2024-12-05 17:41:03.914][180][1]int CKK_SerialPort::sendData(QString&):[COM38]:COM38 has sent: #POWEROFF\r\n\r\n"
          "[2024-12-05 17:41:03.915][203][1]int CKK_SerialPort::sendData(QString&):[COM38]:COM38 exit with 0\r\n"
          "[2024-12-05 17:41:03.916][212][1]int CKK_SerialPort::recvData(QByteArray&):[COM38]:enter\r\n"
          "[2024-12-05 17:41:03.916][216][1]int CKK_SerialPort::recvData(QByteArray&):[COM38]:m_aReadyRead=0\r\n"
          "[2024-12-05 17:41:03.916][219][1]int CKK_SerialPort::recvData(QByteArray&):[COM38]:wait cond\r\n"
          get sigUpdateCfgBox with "1" ,data= "mcuPort=COM38"
          "[2024-12-05 17:41:03.918][319][1]void CKK_SerialPort::handle_data():[COM38]:get ReadyRead sig\r\n"
          "[2024-12-05 17:41:03.919][224][1]int CKK_SerialPort::recvData(QByteArray&):[COM38]:wait cond OK\r\n"
          "[2024-12-05 17:41:03.919][236][1]int CKK_SerialPort::recvData(QByteArray&):[COM38]:readAll len:4,0\r\n"
          "[2024-12-05 17:41:03.919][239][1]int CKK_SerialPort::recvData(QByteArray&):[COM38]:readAll data :OK\r\n\r\n"
          "[2024-12-05 17:41:03.919][253][1]int CKK_SerialPort::recvData(QByteArray&):[COM38]:exit OK\r\n"
          "[2024-12-05 17:41:03.919][2406][1]int CKK_SocketThread::mcuPowerOnOff(bool): #POWEROFF is ok\r\n"
          "[2024-12-05 17:41:03.919][2421][1]int CKK_SocketThread::mcuPowerOnOff(bool): exit with 1\r\n"
          "[2024-12-05 17:41:03.919][185][1]int CKK_SocketThread::create_chipuart(): this=0x1a59d3a9980\r\n"
          get sigUpdateCfgBox with "1" ,data= "mcuBaud=115200"
          "[2024-12-05 17:41:03.920][192][1]int CKK_SocketThread::create_chipuart(): m_devUart=0x1a59d3e3cc0\r\n"
          "[2024-12-05 17:41:03.921][146][1]int CKK_SerialPort::set_logs(QFile*, QMutex*, int):[]:get logs handlers 0x9d3a9ee8,0x9d3a9f60,id=1\r\n"
          get sigUpdateCfgBox with "1" ,data= "mcupointer=1a59d3e4140"
          "[2024-12-05 17:41:03.921][260][1]int CKK_SerialPort::set_comInfo(QString&, int):[]:enter COM24,115200\r\n"
          "[2024-12-05 17:41:03.921][263][1]int CKK_SerialPort::set_comInfo(QString&, int):[COM24]:exit \r\n"
          "[2024-12-05 17:41:03.922][273][1]int CKK_SerialPort::setup_port():[COM24]:enter\r\n"
          "[2024-12-05 17:41:03.922][109][1]int CKK_SerialPort::init_port():[COM24]:enter\r\n"
          get sigUpdateCfgBox with "1" ,data= "open mcu uart COM38, success"
          "[2024-12-05 17:41:03.923][120][1]int CKK_SerialPort::init_port():[COM24]:COM24 Port have been opened\r\n"
          "[2024-12-05 17:41:03.923][133][1]int CKK_SerialPort::init_port():[COM24]:exit 0\r\n"
          "[2024-12-05 17:41:03.923][309][1]int CKK_SerialPort::setup_port():[COM24]:exit \r\n"
          "[2024-12-05 17:41:03.923][205][1]int CKK_SocketThread::create_chipuart(): exit with 0\r\n"
          "[2024-12-05 17:41:03.923][818][1]int CKK_SocketThread::preWork(): init scanner\r\n"
          QObject: Cannot create children for a parent that is in a different thread.
          (Parent is CKK_SocketThread(0x1a59d3a9980), parent's thread is QThread(0x1a5967d6df0), current thread is CKK_SocketThread(0x1a59d3a9980)
          "[2024-12-05 17:41:03.924][829][1]int CKK_SocketThread::preWork(): m_LogFile=0x9d3a9ee8,m_logmutex=0x9d3a9f60,id=1\r\n"
          "[2024-12-05 17:41:03.924][113][1]int CKK_Scan::set_logs(QFile*, QMutex*, int): get logs handlers 0x9d3a9ee8,0x9d3a9f60\r\n"
          "[2024-12-05 17:41:03.924][68][1]int CKK_Scan::set_uartinfo(QString&, int, int): get uart info COM43,115200,1\r\n"
          "[2024-12-05 17:41:03.924][73][1]int CKK_Scan::set_uartinfo(QString&, int, int): exit with 0\r\n"
          "[2024-12-05 17:41:03.924][852][1]int CKK_SocketThread::preWork(): wait scan thread to run\r\n"
          "[2024-12-05 17:41:03.928][124][1]virtual void CKK_Scan::run(): enter\r\n"
          "[2024-12-05 17:41:03.929][82][1]int CKK_Scan::init_uart(): enter \r\n"
          "[2024-12-05 17:41:03.929][146][0]int CKK_SerialPort::set_logs(QFile*, QMutex*, int):[]:get logs handlers 0x9d3a9ee8,0x9d3a9f60,id=0\r\n"
          "[2024-12-05 17:41:03.929][260][0]int CKK_SerialPort::set_comInfo(QString&, int):[]:enter COM43,115200\r\n"
          "[2024-12-05 17:41:03.929][263][0]int CKK_SerialPort::set_comInfo(QString&, int):[COM43]:exit \r\n"
          "[2024-12-05 17:41:03.929][273][0]int CKK_SerialPort::setup_port():[COM43]:enter\r\n"
          "[2024-12-05 17:41:03.929][109][0]int CKK_SerialPort::init_port():[COM43]:enter\r\n"
          get sigUpdateCfgBox with "1" ,data= "devPort=COM24"
          get sigUpdateCfgBox with "1" ,data= "devBaud=115200"
          get sigUpdateCfgBox with "1" ,data= "devpointer=1a59d3e3cc0"
          "[2024-12-05 17:41:03.933][119]void CKK_CWInstrument::connectedCW(): 客户端连接成功\r\n"
          get sigUpdateCfgBox with "1" ,data= "open dev uart COM24, success"
          "[2024-12-05 17:41:03.934][149][10]int CKK_RefThrd::preWork(): wait sigCWConnected\r\n"
          get sigUpdateCfgBox with "1" ,data= "scanPort=COM43"
          get sigUpdateCfgBox with "1" ,data= "scanBaud=115200"
          get sigUpdateCfgBox with "1" ,data= "open scan uart success"
          get sigUpdateCfgBox with "1" ,data= "logPath=./log/um220-1.log"
          "[2024-12-05 17:41:03.936][584][10]void CKK_RefThrd::onsigCWConnected(): get sigCWConnected\r\n"
          "[2024-12-05 17:41:03.936][585][10]void CKK_RefThrd::onsigCWConnected(): 获得sigCWConnected\r\n"
          "[2024-12-05 17:41:03.936][153][10]int CKK_RefThrd::preWork(): wait sigCWConnected Ok,continue\r\n"
          "[2024-12-05 17:41:03.936][162][10]int CKK_RefThrd::preWork(): set cw100 with L1\r\n"
          "[2024-12-05 17:41:03.936][150]int CKK_CWInstrument::setFreq(int): enter with 1\r\n"
          "[2024-12-05 17:41:03.937][107]int CKK_CWInstrument::send(QByteArray&): 发送信息:SOURce:FREQuency 1561098KHz\n\r\n"
          "[2024-12-05 17:41:03.937][107]int CKK_CWInstrument::send(QByteArray&): 发送信息:SOURce:FREQuency?\n\r\n"
          "[2024-12-05 17:41:03.938][75]QByteArray CKK_CWInstrument::recv(): 客户端读取信息:1561098000\n\r\n"
          "[2024-12-05 17:41:03.939][193]int CKK_CWInstrument::setFreq(int): Get expected data\r\n"
          "[2024-12-05 17:41:03.939][209]int CKK_CWInstrument::setFreq(int): exit with 0\r\n"
          "[2024-12-05 17:41:03.940][169][10]int CKK_RefThrd::preWork(): broadcast sigL1Start\r\n"
          "[2024-12-05 17:41:03.940][172][10]int CKK_RefThrd::preWork(): exit\r\n"
          "[2024-12-05 17:41:03.940][45][10]virtual void CKK_RefThrd::run(): m_aStopFlag=0\r\n"
          "[2024-12-05 17:41:03.940][55][10]virtual void CKK_RefThrd::run(): threadid=0x3b28\r\n"
          "[2024-12-05 17:41:03.940][56][10]virtual void CKK_RefThrd::run(): wait condition\r\n"
          "[2024-12-05 17:41:03.940][1760][1]void CKK_SocketThread::onL1Start(): Got L1 freq start\r\n"
          "[2024-12-05 17:41:03.940][120][0]int CKK_SerialPort::init_port():[COM43]:COM43 Port have been opened\r\n"
          "[2024-12-05 17:41:03.940][133][0]int CKK_SerialPort::init_port():[COM43]:exit 0\r\n"
          "[2024-12-05 17:41:03.940][309][0]int CKK_SerialPort::setup_port():[COM43]:exit \r\n"
          "[2024-12-05 17:41:03.940][101][0]int CKK_Scan::init_uart(): exit with 0\r\n"
          "[2024-12-05 17:41:03.940][142][0]virtual void CKK_Scan::run(): run...1\r\n"
          "[2024-12-05 17:41:03.940][146][0]virtual void CKK_Scan::run(): m_aPauseFlag==true, pause thread now\r\n"
          "[2024-12-05 17:41:03.955][859][1]int CKK_SocketThread::preWork(): scan thread is run,ok\r\n"
          "[2024-12-05 17:41:03.955][867][1]int CKK_SocketThread::preWork(): new m_timer [1]\r\n"
          "[2024-12-05 17:41:03.955][126][1]int CKK_Timer::set_logs(QFile*, QMutex*, int): get logs handlers 0x9d3a9ee8,0x9d3a9f60\r\n"
          "[2024-12-05 17:41:03.955][873][1]int CKK_SocketThread::preWork(): exit [0]\r\n"
          "[2024-12-05 17:41:03.955][99][1]virtual void CKK_SocketThread::run(): loop run\r\n"
          "[2024-12-05 17:41:03.955][911][1]int CKK_SocketThread::doWork(): start test time:2024-12-05 17:41:03.955\r\n"
          "[2024-12-05 17:41:03.955][1837][1]int CKK_SocketThread::getScanSN(): enter\r\n"
          get sigUpdateCfgBox with "1" ,data= "开始测试时间:2024-12-05 17:41:03.955"
          "[2024-12-05 17:41:03.956][1852][1]int CKK_SocketThread::getScanSN(): send sigScanResume 1\r\n"
          "[2024-12-05 17:41:03.956][256][0]void CKK_Scan::onResume(int): get resumeThread signal\r\n"
          "[2024-12-05 17:41:03.956][260][0]void CKK_Scan::onResume(int): call wakeAll()\r\n"
          "[2024-12-05 17:41:03.956][1855][1]int CKK_SocketThread::getScanSN(): exit\r\n"
          "[2024-12-05 17:41:03.956][152][0]virtual void CKK_Scan::run(): run resume\r\n"
          "[2024-12-05 17:41:03.956][927][1]int CKK_SocketThread::doWork(): set getSN timerout 50000ms\r\n"
          get sigUpdateCfgBox with "1" ,data= "请扫描SN二维码"
          "[2024-12-05 17:41:03.956][193][0]int CKK_Scan::readSN(): enter\r\n"
          "[2024-12-05 17:41:03.956][78][1]int CKK_Timer::startTimer(int): enter 50000\r\n"
          "[2024-12-05 17:41:03.957][212][0]int CKK_SerialPort::recvData(QByteArray&):[COM43]:enter\r\n"
          "[2024-12-05 17:41:03.957][95][1]int CKK_Timer::startTimer(int): new m_timer\r\n"
          "[2024-12-05 17:41:03.957][216][0]int CKK_SerialPort::recvData(QByteArray&):[COM43]:m_aReadyRead=0\r\n"
          "[2024-12-05 17:41:03.957][219][0]int CKK_SerialPort::recvData(QByteArray&):[COM43]:wait cond\r\n"
          "[2024-12-05 17:41:03.957][106][1]int CKK_Timer::startTimer(int): exit 1\r\n"
          "[2024-12-05 17:41:03.957][935][1]int CKK_SocketThread::doWork(): wait valid SN\r\n"

          1 Reply Last reply
          0
          • Christian EhrlicherC Online
            Christian EhrlicherC Online
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by
            #5

            windeployqt most likely picks up the wrong qt dlls. Make sure you don't have other Qt paths in Your PATH env var when executing windeployqt. You can also check them afterwards by comparing the byte sizes of the dlls in the deployed folder and the one from the path in the kit you used.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            1 Reply Last reply
            3
            • hskoglundH Online
              hskoglundH Online
              hskoglund
              wrote on last edited by
              #6

              Hi, also: maybe you forgot to copy the directories relative to the build directory into the publish directory, for example: "../../ref", "../../cfg" and "../../fwupdate"

              1 Reply Last reply
              1
              • F Offline
                F Offline
                freepeasantry
                wrote on last edited by
                #7

                thanks @hskoglund @Christian-Ehrlicher @jsulm
                I ouput the run log into a file to debug it and found the root cause:likes @hskoglund mentioned, the cfg dir path is wrong.

                thank you so much .

                1 Reply Last reply
                0
                • F freepeasantry has marked this topic as solved on

                • Login

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