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. ASSERT: "copy" in file thread\qmutex.cpp, occurs when I close the program.
Forum Updated to NodeBB v4.3 + New Features

ASSERT: "copy" in file thread\qmutex.cpp, occurs when I close the program.

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 1.3k 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.
  • A Offline
    A Offline
    Aaron Kim
    wrote on last edited by
    #1

    I searched and I found that this assert occurs when it fails to lock a mutex.
    I suppose that this happens because it tries to lock a mutex even after I close the program.
    How can I prevent this?

    A 1 Reply Last reply
    0
    • A Aaron Kim

      I searched and I found that this assert occurs when it fails to lock a mutex.
      I suppose that this happens because it tries to lock a mutex even after I close the program.
      How can I prevent this?

      A Offline
      A Offline
      ambershark
      wrote on last edited by
      #2

      @Aaron-Kim You'll have to share some code for us to help with this.

      Also it would be nice to share the backtrace of the crash/assert.

      It isn't normal behavior for Qt to lock a mutex while an app is closing. So that means somewhere in your code a mutex is being locked probably after the event loop is closed or something like that. Again you'd have to share code for us to help.

      My L-GPL'd C++ Logger github.com/ambershark-mike/sharklog

      1 Reply Last reply
      2

      • Login

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