Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BehaviorSpace runtime error if output file is open in Windows #2232

Open
brandesNW opened this issue Mar 26, 2024 · 1 comment
Open

BehaviorSpace runtime error if output file is open in Windows #2232

brandesNW opened this issue Mar 26, 2024 · 1 comment

Comments

@brandesNW
Copy link
Contributor

This error occurs in Windows, but not MacOS, probably not on Linux (should be tested)

To reproduce:

  1. Open a model with a BehaviorSpace experiment
  2. Open an experiment
  3. Hit Run
  4. In the Run dialog select table output (should happen with other outputs as well)
  5. Optionally change the file name or location
  6. Make note of the file location
  7. Run the experiment
  8. Open the output ".csv" file
  9. Run the experiment again

You should get an error

java.io.FileNotFoundException: <filename> (The process cannot access the file because it is being used by another process)
 at java.base/java.io.FileOutputStream.open0(Native Method)
@LaCuneta
Copy link
Contributor

Related (semi-duplicate): #243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants