Results 1 to 4 of 4

Thread: Error: "Cannot create semaphore ..."?

  1. #1
    Join Date
    Aug 2009
    Posts
    13
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Error: "Cannot create semaphore ..."?

    Hi, has anyone seen this error message before?

    Cannot create semaphore /tmp/qtembedded-0/QtEmbedded-0 'd'
    Error 22 Invalid argument
    Cannot get display lock

    I googled the error but still have no idea what it means. I couldn't find anything in the Qt source files that contains "Error 22 Invalid argument" either.

    I'm using QtEmbedded 4.5.3.
    Thanks in advance.
    Last edited by vkincaid; 21st October 2009 at 05:28.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Error: "Cannot create semaphore ..."?

    what are the access permissions for /tmp/qtembedded-0/ ?
    Does your user have write permission there?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Aug 2009
    Posts
    13
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Error: "Cannot create semaphore ..."?

    the directory has permission 700

    root@(none):/tmp# ls -l
    drwx------ 3 root root 80 Jan 1 08:04 qtembedded-0

    I'm running under root superuser. If I tried to change the permission to 777 or 755, it will say "Qt for Embedded Linux data directory has incorrect permissions: /tmp/qtembedded-0"

    Thanks

  4. #4
    Join Date
    Aug 2009
    Posts
    13
    Thanks
    7
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: Error: "Cannot create semaphore ..."?

    Well, I just reboot the box and it runs fine again. Permission of /tmp/qtembedded-0 stays 700. But I still don't understand how that seemed to fix the problem?

Similar Threads

  1. cannot create semaphore
    By Svaths in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 22nd May 2014, 08:30
  2. Eclipse debugging: Unable to create variable object
    By PUK_999 in forum Installation and Deployment
    Replies: 0
    Last Post: 20th August 2009, 21:42
  3. Replies: 4
    Last Post: 1st May 2009, 11:00
  4. Cannot create MySQL stored procedure / views from Qt
    By pshah.mumbai in forum Qt Programming
    Replies: 8
    Last Post: 8th October 2008, 16:22
  5. What is the best way to create a file management panel?
    By DIMEDROLL in forum Qt Programming
    Replies: 0
    Last Post: 24th September 2008, 08:49

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.