Application crashed while binary executive file running correctly?
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.
Have you run macdeployqt?
Also, check the run environment in Qt Creator to see which env. vars are being set.
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.
Hi and welcome to devnet,
Are you doing any file access using relative paths in your application ?
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.
@SGaist Thx my bro. U really saved me! Thanks a lot!