BAS crashing because of Qt Error

Support
  • Tried to rund an script that worked without any problems before with the latest 28.7.2 version of BAS and now it's crashing every run with an "QProcess: Destroyed while process (".\Worker.25\Worker.exe") is still running."

    There are other Qt-related errors in the debug.txt log but this one seems to be the cause for the crashes.

    Here are the complete logs for one script-run:

    Debug 14:44:17: true
    Debug 14:44:17: 0x7ff6dc872e10
    Warning 14:44:48: QFSFileEngine::open: No file name specified
    Warning 14:44:55: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:44:55: QObject::disconnect: Unexpected null parameter
    Warning 14:44:55: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:44:55: QObject::disconnect: Unexpected null parameter
    Debug 14:44:55: "EnableWidevine=true\nEnableSafeBrowsing=true\nEnableVariations=true\nEnableComponents=true\nAutostartDebug=false\nSaveBrowserLog=false\nProfilesCaching=true\nMaxBrowserStartSimultaneously=3\nMinFreeMemoryToStartBrowser=1500\nMinUnusedCpu=35\nIsMaximized=true\nRestart=true\nUseHumanLikeMouseMoves=true\nDebugToolbox=false\nDebugScenario=false\nLanguages="Node,22.11.0"\nModules="Node,22.11.0,cheerio,;Node,22.11.0,sha256,"\nHelper="disable"\nCanvas="enable"\nCanvasNoise=""\nAudio="enable"\nQUIC="disable"\nAudioNoise=""\nMaxFPS=90\nWebrtc="enable"\nWebrtcIps=""\nWebgl="enable"\nWebglNoise=""\nWebglRenderer=""\nWebglVendor=""\nDetector=false\n" true
    Warning 14:44:55: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:44:55: QObject::disconnect: Unexpected null parameter
    Warning 14:45:08: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:08: QObject::disconnect: Unexpected null parameter
    Debug 14:45:31: "EnableWidevine=true\nEnableSafeBrowsing=true\nEnableVariations=true\nEnableComponents=true\nAutostartDebug=false\nSaveBrowserLog=false\nProfilesCaching=true\nMaxBrowserStartSimultaneously=3\nMinFreeMemoryToStartBrowser=1500\nMinUnusedCpu=35\nIsMaximized=true\nRestart=true\nUseHumanLikeMouseMoves=true\nDebugToolbox=false\nDebugScenario=false\nLanguages="Node,22.11.0"\nModules="Node,22.11.0,cheerio,;Node,22.11.0,sha256,"\nHelper="disable"\nCanvas="enable"\nCanvasNoise=""\nAudio="enable"\nQUIC="disable"\nAudioNoise=""\nMaxFPS=90\nWebrtc="enable"\nWebrtcIps=""\nWebgl="enable"\nWebglNoise=""\nWebglRenderer=""\nWebglVendor=""\nDetector=false\n" true
    Debug 14:45:31: "EnableWidevine=true\nEnableSafeBrowsing=true\nEnableVariations=true\nEnableComponents=true\nAutostartDebug=false\nSaveBrowserLog=false\nProfilesCaching=true\nMaxBrowserStartSimultaneously=3\nMinFreeMemoryToStartBrowser=1500\nMinUnusedCpu=35\nIsMaximized=true\nRestart=true\nUseHumanLikeMouseMoves=true\nDebugToolbox=false\nDebugScenario=false\nLanguages="Node,22.11.0"\nModules="Node,22.11.0,cheerio,;Node,22.11.0,sha256,"\nHelper="disable"\nCanvas="enable"\nCanvasNoise=""\nAudio="enable"\nQUIC="disable"\nAudioNoise=""\nMaxFPS=90\nWebrtc="enable"\nWebrtcIps=""\nWebgl="enable"\nWebglNoise=""\nWebglRenderer=""\nWebglVendor=""\nDetector=false\n" true
    Debug 14:45:31: "EnableWidevine=true\nEnableSafeBrowsing=true\nEnableVariations=true\nEnableComponents=true\nAutostartDebug=false\nSaveBrowserLog=false\nProfilesCaching=true\nMaxBrowserStartSimultaneously=3\nMinFreeMemoryToStartBrowser=1500\nMinUnusedCpu=35\nIsMaximized=true\nRestart=true\nUseHumanLikeMouseMoves=true\nDebugToolbox=false\nDebugScenario=false\nLanguages="Node,22.11.0"\nModules="Node,22.11.0,cheerio,;Node,22.11.0,sha256,"\nHelper="disable"\nCanvas="enable"\nCanvasNoise=""\nAudio="enable"\nQUIC="disable"\nAudioNoise=""\nMaxFPS=90\nWebrtc="enable"\nWebrtcIps=""\nWebgl="enable"\nWebglNoise=""\nWebglRenderer=""\nWebglVendor=""\nDetector=false\n" true
    Warning 14:45:44: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:44: QObject::disconnect: Unexpected null parameter
    Warning 14:45:45: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:45: QObject::disconnect: Unexpected null parameter
    Warning 14:45:46: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:46: QObject::disconnect: Unexpected null parameter
    Warning 14:45:46: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:46: QObject::disconnect: Unexpected null parameter
    Warning 14:45:47: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:47: QObject::disconnect: Unexpected null parameter
    Debug 14:45:47: "EnableWidevine=true\nEnableSafeBrowsing=true\nEnableVariations=true\nEnableComponents=true\nAutostartDebug=false\nSaveBrowserLog=false\nProfilesCaching=true\nMaxBrowserStartSimultaneously=3\nMinFreeMemoryToStartBrowser=1500\nMinUnusedCpu=35\nIsMaximized=true\nRestart=true\nUseHumanLikeMouseMoves=true\nDebugToolbox=false\nDebugScenario=false\nLanguages="Node,22.11.0"\nModules="Node,22.11.0,cheerio,;Node,22.11.0,sha256,"\nHelper="disable"\nCanvas="enable"\nCanvasNoise=""\nAudio="enable"\nQUIC="disable"\nAudioNoise=""\nMaxFPS=90\nWebrtc="enable"\nWebrtcIps=""\nWebgl="enable"\nWebglNoise=""\nWebglRenderer=""\nWebglVendor=""\nDetector=false\n" true
    Warning 14:45:47: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:47: QObject::disconnect: Unexpected null parameter
    Debug 14:45:47: "EnableWidevine=true\nEnableSafeBrowsing=true\nEnableVariations=true\nEnableComponents=true\nAutostartDebug=false\nSaveBrowserLog=false\nProfilesCaching=true\nMaxBrowserStartSimultaneously=3\nMinFreeMemoryToStartBrowser=1500\nMinUnusedCpu=35\nIsMaximized=true\nRestart=true\nUseHumanLikeMouseMoves=true\nDebugToolbox=false\nDebugScenario=false\nLanguages="Node,22.11.0"\nModules="Node,22.11.0,cheerio,;Node,22.11.0,sha256,"\nHelper="disable"\nCanvas="enable"\nCanvasNoise=""\nAudio="enable"\nQUIC="disable"\nAudioNoise=""\nMaxFPS=90\nWebrtc="enable"\nWebrtcIps=""\nWebgl="enable"\nWebglNoise=""\nWebglRenderer=""\nWebglVendor=""\nDetector=false\n" true
    Warning 14:45:47: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:47: QObject::disconnect: Unexpected null parameter
    Warning 14:45:49: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:49: QObject::disconnect: Unexpected null parameter
    Warning 14:45:49: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:49: QObject::disconnect: Unexpected null parameter
    Warning 14:45:57: QProcess: Destroyed while process (".\Worker.25\Worker.exe") is still running.
    Warning 14:45:59: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:45:59: QObject::disconnect: Unexpected null parameter
    Warning 14:46:00: QProcess: Destroyed while process (".\Worker.25\Worker.exe") is still running.
    Warning 14:46:00: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:46:00: QObject::disconnect: Unexpected null parameter
    Warning 14:46:00: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:46:00: QObject::disconnect: Unexpected null parameter
    Warning 14:46:00: QObject::connect: Cannot connect (null)::destroyed(QObject*) to BrowserAutomationStudioFramework::TimeoutWaiter::dummy()
    Warning 14:46:00: QObject::disconnect: Unexpected null parameter

    Any idea how to solve this?

  • @morpheus93 said in BAS crashing because of Qt Error:

    Tried to rund an script that worked without any problems before with the latest 28.7.2 version of BAS and now it's crashing every run with an "QProcess: Destroyed while process (".\Worker.25\Worker.exe") is still running."

    Antivirus?

  • Try reinstalling BAS completely, or reinstalling it in a different folder.

  • This post is deleted!
  • @vichma said in BAS crashing because of Qt Error:

    tool does not count streams

    I don't quite understand what you're talking about, could you give a little more detail?

  • @vichma said in BAS crashing because of Qt Error:

    @sergerdn @m4zuper I noticed now that my tool does not count streams on RDP but when i Install on my home PC it works fine.
    What could be the issue??

    Мая твая Π½ΠΈ ΠΏΠ°Π½ΠΈΠΌΠ°ΠΉ.

  • This post is deleted!
  • This post is deleted!
  • @m4zuper Should it be enough to re-install the latest version 28.7.2 or all versions, as I have multiple versions installed in parallel (sometimes the same version 2 times to open a project multiple times without conflicts). Thanks

  • @morpheus93
    Sorry for the long reply.
    At the very least, try installing 28.7.2 separately from the others, in a separate folder on your PC. If everything is fine, then you will have to reinstall all the others.

  • @m4zuper Unfortunately installing BAS 28.7.2 on another partition does not solve the crashing issue. Also it seems that the BrowserAutomationStudio.exe process is hanging somewhere after the crash. It's not visible in the Taskmanager but blocks files and can be found and killed by a detailed process search.

  • @morpheus93 said in BAS crashing because of Qt Error:

    @m4zuper Unfortunately installing BAS 28.7.2 on another partition does not solve the crashing issue. Also it seems that the BrowserAutomationStudio.exe process is hanging somewhere after the crash. It's not visible in the Taskmanager but blocks files and can be found and killed by a detailed process search.

    Take a look at the BAS script logs. It looks like your app writes them very fast at startup – for example, because of some errors – and Windows kills the process.

  • @morpheus93
    Can you remember what changes were made before the problems started?
    Are you running the project from the BAS shell or using a compiled project?
    If you are using a compiled project, try changing the compilation settings.

  • @m4zuper It seemed the crash is triggered by a check for the nuber of items in a resource and a following "success" step if the resource is empty to achieve the "graceful" ending of the single threads of a multithreaded function call.
    Unfortunately this causes some kind of "endless loop" as the very last thread triggers the "success" step again and again (and not as expected only 1 time) until the script crashes or Windows stops the thread.

    bas_crash_001.jpg

  • @morpheus93 said in BAS crashing because of Qt Error:

    @m4zuper It seemed the crash is triggered by a check for the nuber of items in a resource and a following "success" step if the resource is empty to achieve the "graceful" ending of the single threads of a multithreaded function call.
    Unfortunately this causes some kind of "endless loop" as the very last thread triggers the "success" step again and again (and not as expected only 1 time) until the script crashes or Windows stops the thread.

    It might be that:

    success == error, e.g., throw some exception with success state(?).

    You ignore errors, so success are also ignored(?).

    In any case, it's a very bad pattern to ignore errors in large code blocks.