Strange issue running app

Hi -
I am having a strange problem with an app where the app runs fine when I compile and run it in XCode, but when I try to run the app from the Finder it crashes. This is happening with both the release and debug versions of the app. I am not moving any files around, so it is not an issue with missing file dependencies. Also - other projects on my computer wrok fine. Has anyone run into this?

Here is the crash report (at least everything I think that is relevant). I am not so great at reading these, but I think this implies it is an issue with the getMesh() method of the AssimpModel addon. Still confused as to why it would run in XCode and not otherwise.

Thanks -

Process: NeutrinoWorld [603]
Path: /Users/USER/*/
Identifier: cc.openFrameworks.ofapp
Version: 1.0
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: NeutrinoWorld [603]
User ID: 502

Date/Time: 2015-08-27 00:46:00.317 -0400
OS Version: Mac OS X 10.10.4 (14E46)
Report Version: 11
Anonymous UUID: 6D6454BB-B181-99E9-6605-E78DDDFEA304

Time Awake Since Boot: 710 seconds

Crashed Thread: 0 Dispatch queue:

Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008

VM Regions Near 0x8:
__TEXT 0000000000001000-0000000000796000 [ 7764K] r-x/rwx SM=COW /Users/USER/*/

Thread 0 Crashed:: Dispatch queue:
0 cc.openFrameworks.ofapp 0x0000c99b ofxAssimpModelLoader::getMesh(int) + 43
1 cc.openFrameworks.ofapp 0x0001c84d Lepton::setup() + 381
2 cc.openFrameworks.ofapp 0x00004117 ofApp::setup() + 135
3 cc.openFrameworks.ofapp 0x0051b0a4 Poco::PriorityDelegate<ofBaseApp, ofEventArgs, false>::notify(void const*, ofEventArgs&) + 68
4 cc.openFrameworks.ofapp 0x005218dc Poco::AbstractEvent<ofEventArgs, Poco::PriorityStrategy<ofEventArgs, Poco::AbstractPriorityDelegate >, Poco::AbstractPriorityDelegate, Poco::FastMutex>::notify(void const*, ofEventArgs&) + 156
5 cc.openFrameworks.ofapp 0x0051e8cc ofNotifySetup() + 44
6 cc.openFrameworks.ofapp 0x0058414a ofAppGLFWWindow::runAppViaInfiniteLoop(ofBaseApp*) + 42
7 cc.openFrameworks.ofapp 0x0051700e ofRunApp(ofBaseApp*) + 1262
8 cc.openFrameworks.ofapp 0x00002712 main + 82
9 cc.openFrameworks.ofapp 0x000026b5 start + 53

Hi - In case someone comes across this and wonders where it was left. I was able to solve the problem by using a differnet strategy for loading models. I was loading a new model in every instance of the class, so instead I declared the models in a higher-level class then passed them by reference to the model classes so that I am only loading them once. Probably a better design in the end anyway. I still don’t understand why it would run through XCode and not oterhwise, but since it stopped crashing I am not going to dwell on it.

1 Like