Airspace-Encounter-Models / em-model-manned-bayes

Manned Bayesian Network Encounter Models
BSD 2-Clause "Simplified" License
14 stars 7 forks source link

[BUG] MATLAB crashing when running RUN_uncor #28

Closed aweinert-MIT closed 2 years ago

aweinert-MIT commented 2 years ago

Description

MATLAB crashes when running the script RUN_uncor. As part of the initial setup, the RUN_mex script from em-core successfully ran. Prior to executing RUN_uncor the startup_bayes script is ran. However there are issues with setting persistent system environment variables and path variables were set using setenv instead in MATLAB.

I did set up the environment variables on my computer but I was still having issues fetching them from MATLAB so I did a programmatic workaround (setenv) on MATLAB

Reproducibility

@aweinert-MIT cannot reproduce on their windows machine.

Expectation

Stop MATLAB from crashing.

Recency

Commit #c6258f8 for em-core and commit #e47fc0a for em-model-manned-bayes repository

Files

Script crashes prior to using the run_dynamics_fast mex function in the track method of the UncorEncounterModel class

Environment

Screenshots

Include screenshots and animated GIFs which show you following the described steps and clearly demonstrate the problem. You can use this tool to record GIFs on macOS and Windows, and this tool or this tool on Linux.

Additional context

Issue first reported by @lydiaZeleke after email with @aweinert-MIT summarizing the issue when creating this bug report

aweinert-MIT commented 2 years ago

Bug was resolved by compiling the run_dynamics_fast mex function from em-core without the -g flag. Specifically, line 14 was used by em-core/matlab/RUN_mex.m. Documentation will need to be updated (see /em-core/issues/7).