Results 1 to 2 of 2

Thread: QProcess FailedToStart, not always

  1. #1
    Join Date
    Jul 2009
    Posts
    26
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Windows

    Default QProcess FailedToStart, not always

    Hi everyone,

    I have this problem and can't overcome it. Maybe someone of You has an idea. I would really appreciate it. So goint to the problem...

    In my application I need to start mplayer with radiostation url. And it works for few first times. After I play with some gui in the application and want to start the process again, I get FailedToStart error and nothing happens. The arguments are the same, and the program "mplayer" still exists.
    In the documentation, they write:
    "The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program."
    However this is obvious, none of the cases apply to mine. But it still fails.
    Additionally, this happens when the program is run on Embedded Linux. Running on Ubuntu, haven't gotten this kind of problem.

    Thank You in advance, for any help.

  2. #2
    Join Date
    Jul 2009
    Posts
    26
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Windows

    Default QProcess FailedToStart, not always - more information

    Hi, me once more...

    So I run my application and on the second consloe observe the "top" output. And this QProcess::FailedToStart comes out, when the VSZ (Virtual Memory Size) approaches 270m. But from the console mplayer may be played, so this is not a physical limitation of the hardware, but probably some limitation to a process.

    So this is the state (top process run) when mplayer is running correctly:

    Qt Code:
    1. PID PPID USER STAT VSZ %MEM %CPU COMMAND
    2. 2289 2229 root R 16244 26% 12% mplayer -demuxer aac http://gr-relay-3.gaduradio.pl/45 -ss 0
    3. 2144 1919 root R 3044 5% 4% top -d1
    4. 2096 951 root R 3044 5% 3% top -d1
    5. 1918 899 root S 2348 4% 3% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
    6. 950 899 root S 2348 4% 2% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
    7. 2229 1138 root S 276m 461% 0% ./myapplication -qws
    8. 913 1 root S 16628 27% 0% /usr/bin/commserver
    9. 2292 2289 root S 15984 26% 0% mplayer -demuxer aac http://gr-relay-3.gaduradio.pl/45 -ss 0
    10. 951 950 root S 3044 5% 0% -sh
    11. 1919 1918 root S 3044 5% 0% -sh
    12. 1138 1137 root S 3044 5% 0% -sh
    13. 902 1 root S 2928 5% 0% /sbin/syslogd -n -C64 -m 20
    14. 860 1 root S 2868 5% 0% udhcpc -R -n -p /var/run/udhcpc.eth0.pid -i eth0
    15. 904 1 root S 2864 5% 0% /sbin/klogd -n
    16. 1137 899 root S 2348 4% 0% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
    17. 899 1 root S 2172 4% 0% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
    18. 909 1 root S 1904 3% 0% /usr/sbin/bftpd -d
    19. 929 1 root S 1828 3% 0% /sbin/getty 115200 ttySAC0
    20. 306 1 root S < 1808 3% 0% /sbin/udevd -d
    21. 1 0 root S 1572 3% 0% init [5]
    22. 280 2 root SWN 0 0% 0% [jffs2_gcd_mtd4]
    23. 135 2 root SW 0 0% 0% [pdflush]
    24. 136 2 root SW< 0 0% 0% [kswapd0]
    25. 5 2 root SW< 0 0% 0% [khelper]
    26. 4 2 root SW< 0 0% 0% [events/0]
    27. 2 0 root SW< 0 0% 0% [kthreadd]
    28. 3 2 root SW< 0 0% 0% [ksoftirqd/0]
    29. 102 2 root SW< 0 0% 0% [kblockd/0]
    30. 109 2 root SW< 0 0% 0% [kseriod]
    31. 112 2 root SW< 0 0% 0% [kmmcd]
    32. 134 2 root SW 0 0% 0% [pdflush]
    33. 137 2 root SW< 0 0% 0% [aio/0]
    34. 138 2 root SW< 0 0% 0% [nfsiod]
    35. 210 2 root SW< 0 0% 0% [mtdblockd]
    36. 272 2 root SW< 0 0% 0% [rpciod/0]
    To copy to clipboard, switch view to plain text mode 

    And now, when it does not start:
    Qt Code:
    1. PID PPID USER STAT VSZ %MEM %CPU COMMAND
    2. 2096 951 root S 3044 5% 4% top -d1
    3. 2293 1919 root R 3044 5% 4% top -d1
    4. 950 899 root S 2348 4% 2% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
    5. 1918 899 root S 2348 4% 1% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
    6. 2229 1138 root S 277m 462% 0% ./myapplication -qws
    7. 913 1 root S 16628 27% 0% /usr/bin/commserver
    8. 951 950 root S 3044 5% 0% -sh
    9. 1919 1918 root S 3044 5% 0% -sh
    10. 1138 1137 root S 3044 5% 0% -sh
    11. 902 1 root S 2928 5% 0% /sbin/syslogd -n -C64 -m 20
    12. 860 1 root S 2868 5% 0% udhcpc -R -n -p /var/run/udhcpc.eth0.pid -i eth0
    13. 904 1 root S 2864 5% 0% /sbin/klogd -n
    14. 1137 899 root S 2348 4% 0% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
    15. 899 1 root S 2172 4% 0% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
    16. 909 1 root S 1904 3% 0% /usr/sbin/bftpd -d
    17. 929 1 root S 1828 3% 0% /sbin/getty 115200 ttySAC0
    18. 306 1 root S < 1808 3% 0% /sbin/udevd -d
    19. 1 0 root S 1572 3% 0% init [5]
    20. 280 2 root SWN 0 0% 0% [jffs2_gcd_mtd4]
    21. 135 2 root SW 0 0% 0% [pdflush]
    22. 136 2 root SW< 0 0% 0% [kswapd0]
    23. 5 2 root SW< 0 0% 0% [khelper]
    24. 4 2 root SW< 0 0% 0% [events/0]
    25. 2 0 root SW< 0 0% 0% [kthreadd]
    26. 3 2 root SW< 0 0% 0% [ksoftirqd/0]
    27. 102 2 root SW< 0 0% 0% [kblockd/0]
    28. 109 2 root SW< 0 0% 0% [kseriod]
    29. 112 2 root SW< 0 0% 0% [kmmcd]
    30. 134 2 root SW 0 0% 0% [pdflush]
    31. 137 2 root SW< 0 0% 0% [aio/0]
    32. 138 2 root SW< 0 0% 0% [nfsiod]
    33. 210 2 root SW< 0 0% 0% [mtdblockd]
    34. 272 2 root SW< 0 0% 0% [rpciod/0]
    To copy to clipboard, switch view to plain text mode 

    in ps myapplication, in current session, my application has id 2229, so find / -name limits | grep 2229 gives:

    Qt Code:
    1. /proc/2229/task/2229/limits
    2. /proc/2229/task/2232/limits
    3. /proc/2229/task/2236/limits
    4. /proc/2229/task/2237/limits
    5. /proc/2229/task/2238/limits
    6. /proc/2229/task/2239/limits
    7. /proc/2229/task/2240/limits
    8. /proc/2229/task/2241/limits
    9. /proc/2229/task/2242/limits
    10. /proc/2229/task/2243/limits
    11. /proc/2229/task/2244/limits
    12. /proc/2229/task/2245/limits
    13. /proc/2229/task/2246/limits
    14. /proc/2229/task/2247/limits
    15. /proc/2229/task/2251/limits
    16. /proc/2229/task/2252/limits
    17. /proc/2229/task/2253/limits
    18. /proc/2229/task/2254/limits
    19. /proc/2229/task/2255/limits
    20. /proc/2229/task/2256/limits
    21. /proc/2229/task/2257/limits
    22. /proc/2229/task/2258/limits
    23. /proc/2229/task/2259/limits
    24. /proc/2229/task/2260/limits
    25. /proc/2229/task/2261/limits
    26. /proc/2229/task/2262/limits
    27. /proc/2229/task/2263/limits
    28. /proc/2229/limits
    To copy to clipboard, switch view to plain text mode 

    The multitude (as well as more than 100% VSZ size) of tasks is due to few plug-ins loaded. All of these tasks have the same limits, which are (cat /proc/2229/task/<number>/limits and cat /proc/2229/limits):

    Qt Code:
    1. Limit Soft Limit Hard Limit Units
    2. Max cpu time unlimited unlimited ms
    3. Max file size unlimited unlimited bytes
    4. Max data size unlimited unlimited bytes
    5. Max stack size 8388608 unlimited bytes
    6. Max core file size 0 0 bytes
    7. Max resident set unlimited unlimited bytes
    8. Max processes 512 512 processes
    9. Max open files 1024 1024 files
    10. Max locked memory 65536 65536 bytes
    11. Max address space unlimited unlimited bytes
    12. Max file locks unlimited unlimited locks
    13. Max pending signals 512 512 signals
    14. Max msgqueue size 819200 819200 bytes
    15. Max nice priority 0 0
    16. Max realtime priority 0 0
    17. Max realtime timeout unlimited unlimited us
    To copy to clipboard, switch view to plain text mode 

    Hope this information is important and useful for solution. Please, if anyone has some thoughts on that, write them here.

    Thank You in advance.

Similar Threads

  1. Trying to use QProcess
    By hybrid_snyper in forum Newbie
    Replies: 7
    Last Post: 20th October 2009, 14:55
  2. QProcess inside QProcess
    By bunjee in forum Qt Programming
    Replies: 7
    Last Post: 4th December 2008, 00:39
  3. QProcess
    By jaca in forum Newbie
    Replies: 5
    Last Post: 15th May 2008, 11:24
  4. QProcess
    By girishdomain in forum Newbie
    Replies: 2
    Last Post: 31st August 2007, 09:48
  5. QProcess again ..
    By cmeliak in forum Qt Programming
    Replies: 13
    Last Post: 24th May 2006, 20:56

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.