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. Application crashed while binary executive file running correctly?
QtWS25 Last Chance

Application crashed while binary executive file running correctly?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 4 Posters 911 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.
  • G Offline
    G Offline
    GGGu0
    wrote on last edited by
    #1

    Hi every one, my system is macOs 10.12.6 and i am using QT Creator 5.6.3.
    After I compiled the release version, i found that i could run my executive file correctly(located in content package/macOs). But when i ran my application file directly, it crashed while running to someplace using my own static library which would create new thread, and the report showed that the last operation in my call stack was QThreadStorage::get() and the terminate reason was BAD_ACCESS_ADDRESS.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Have you run macdeployqt?
      Also, check the run environment in Qt Creator to see which env. vars are being set.

      (Z(:^

      1 Reply Last reply
      1
      • G Offline
        G Offline
        GGGu0
        wrote on last edited by
        #3

        Thx my bro.
        I tried both applications before and after macdeployqt, but neither was okay.

        And I think that the application should run that binary executive file in some way.
        After code was built we would get that binary file, and this binary file would be called. And this could explain why i did not get that crash in qt creator and in the process running the executive file directly.

        jsulmJ 1 Reply Last reply
        0
        • G GGGu0

          Thx my bro.
          I tried both applications before and after macdeployqt, but neither was okay.

          And I think that the application should run that binary executive file in some way.
          After code was built we would get that binary file, and this binary file would be called. And this could explain why i did not get that crash in qt creator and in the process running the executive file directly.

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @GGGu0 Please take a look at http://doc.qt.io/qt-5/deployment.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          G 1 Reply Last reply
          1
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi and welcome to devnet,

            Are you doing any file access using relative paths in your application ?

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

            G 1 Reply Last reply
            2
            • jsulmJ jsulm

              @GGGu0 Please take a look at http://doc.qt.io/qt-5/deployment.html

              G Offline
              G Offline
              GGGu0
              wrote on last edited by
              #6

              @jsulm said in Application crashed while binary executive file running correctly?:

              http://doc.qt.io/qt-5/deployment.html

              Thx my friend.
              I built it in static way and it did not contain plugins. And my question is that i can call some functions which will not create new thread without crash in my application, but i can call all the functions in running my binary executive file way.

              1 Reply Last reply
              0
              • SGaistS SGaist

                Hi and welcome to devnet,

                Are you doing any file access using relative paths in your application ?

                G Offline
                G Offline
                GGGu0
                wrote on last edited by
                #7

                @SGaist Thx my bro. U really saved me! Thanks a lot!

                1 Reply Last reply
                1

                • Login

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