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. Executing a GUI app on a remote debug target via QProcess and a console app
Forum Update on Monday, May 27th 2025

Executing a GUI app on a remote debug target via QProcess and a console app

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 2 Posters 678 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.
  • M Offline
    M Offline
    MuratUrsavas
    wrote on 26 Aug 2020, 11:51 last edited by
    #1

    Hi,

    I have a console service application which controls rest of the system components. The whole system is a remote target which runs on Linux (namely Raspbian). I've set up my development environment right and can debug my console application remotely. No problems there.

    One of the system components is a GUI/QML application and I want it to be executed by my main control application via QProcess. The idea actually works if I trigger the execution on the remote target directly (via local inputs or VNC connection).

    Problem starts if I try to debug the setup remotely. The console application starts remotely and GDB multiarch connects successfully. But the process which started by the QProcess fails and debugger outputs the message seen below:

    Detaching from process <nnnn>
    

    This means the application closes somehow (I don't know the root cause, maybe a seg fault) and does not continue the execution. I can confirm that via process listing. The process is not there.

    My question is, what can I do to be able to execute this GUI component normally while remote debugging? I'd like to see the output on remote targets display but if I can not, seeing it on my local machine is OK, too.

    Regards,

    Qt 5.15, Dev: Ubuntu 20.04 -> Remote Target: Raspbian, Kernel 5.4.51

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 26 Aug 2020, 18:18 last edited by
      #2

      Hi,

      Might be a silly question but if you want to debug that specific application, why not execute it directly from Qt Creator like you do with your console application ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        MuratUrsavas
        wrote on 26 Aug 2020, 20:07 last edited by
        #3

        No, it's a rightful question. This GUI component is optional and exists for auxilary tasks. The console app is the core of the system and I'd like to debug it in the first place.

        I'm planning to connect via GDB on the fly to this kind of other system components if I have to. Normally I'll be seeing everything on that core console app.

        By the way I've asked for help to debug that UI app directly on the embedded forum but with no luck. Still waiting for a response :)

        Here: https://forum.qt.io/post/614152

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MuratUrsavas
          wrote on 2 Sept 2020, 06:17 last edited by
          #4

          As I've solved my own question in https://forum.qt.io/post/614152 thread, I'm marking this one as solved.

          1 Reply Last reply
          1

          1/4

          26 Aug 2020, 11:51

          • Login

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