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. Advanced Question : Crash after hours of running my multithreaded application
Forum Updated to NodeBB v4.3 + New Features

Advanced Question : Crash after hours of running my multithreaded application

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.6k 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.
  • B Offline
    B Offline
    black_coder
    wrote on last edited by
    #1

    I have this very very annoying and hard to trace crash that happens after 20 hours of running my application. I have this multithreaded application that that controls some mechanical linear stages and image acquisition. Now for some reason, after around 20 hours of running my application it crashes. In my app logs I can see a "QMutexPrivate::QMutexPrivate: Cannot create event" error, and a windows application error pops up saying "The instruction at 0x****** referenced memory at 0x*******. The memory could not be written".

    It's a very hard crash to trace given that it takes long time to replicate. Is there a system specific memory even that happens after long hours that can cause an app to crash ? This crash is driving me crazy !

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      hard to tell ... show the stack trace please.
      Maybe you have a memory leak and fill up the memory?

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • B Offline
        B Offline
        black_coder
        wrote on last edited by
        #3

        Will post it next time it crashes. It's really puzzling, the software perfectly for hours and hours, and suddenly after almost 20 hours it simply crashes. The only thing unusual I notices was that the memory page faults as reported by "process explorer" is large.

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          then look out as i said for memory leaks.
          There are several tools for the major platforms out there to identify memory leaks.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0
          • B Offline
            B Offline
            black_coder
            wrote on last edited by
            #5

            No, definitely no. That's the first thing I monitored closely, I am acquiring larget set of images from the camera at 15fps, you will be able to notice any memory leak easily. Close to the crashing time, the memory usuage is almost the same as when the software started.

            1 Reply Last reply
            0

            • Login

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