febiosoftware / FEBioStudio

https://febio.org/
MIT License
62 stars 20 forks source link

Crash on launch configuration + run on macOS Ventura / Apple M1 #54

Closed asrvsn closed 1 year ago

asrvsn commented 1 year ago

Just wanted to report the following issue I'm encountering when attempting to run a model on a macOS Ventura / M1 pro system. The following occurs with both the current release build for macOS x86 and when built from source for arm64.

Repro:

asrvsn commented 1 year ago

The workaround is to add at least two launch configurations initially, and the second one will persist. Still not sure why no Default launch configuration appears by default.

SteveMaas1978 commented 1 year ago

Hi, thanks for reporting this issue. I'm not sure yet what is causing this, but can you try the following: start FEBio Studio from the terminal with the -reset command line option. For some users, this seems to fix it. Let us know what you find.

Steve

asrvsn commented 1 year ago

Hi Steve, adding -reset fixed the launch configuration issue for me. I did also notice that in some other list menus, such as adding objects to a boundary condition, removing the single element from the list using the "minus" button did not work for me (a workaround is deleting and adding the BC again).

SteveMaas1978 commented 1 year ago

Glad to hear that fixed it!

In the meantime, I did find the issue, and it looks like it only affects new users. The bug was that FEBioStudio expected there to be launch configurations defined in the settings file. But since there isn't any yet for first-time users, the launch configurations were not initialized, and the default configuration was not added.

I pushed a dev update for Windows (to do a dev update, please see here) and hopefully will get to the other OSs soon.

Aside from adding the -reset flag on the command line, another workaround that should work, is by adding two custom launch configurations, then closing FEBioStudio and reopening it. The Default launch configuration should be available, and you can then delete the other launch configurations.

I'm going to close this issue since it sounds like it's working for you now, but feel free to re-open if any problems remain.

Steve