Skip to content

[Bug] Saving an .ork with 2 post-ground-hit warnings makes file unloadable with a bug warning #2804

@jimmiedave

Description

@jimmiedave

Describe the bug

Description

When a rocket motor is not powerful enough to keep the model in the air until recovery deployment, deployment happens after ground-hit, which creates two post-ground-hit warnings. Saving this file with all simulation data creates an otherwise-valid .ork which cannot be opened due to the presence of two warnings in the file that are missing something. The bug warning that appears does not present a GUID for the problematic warnings in the file.

Editing the underlying rocket.ork and removing the block and the sections makes the file loadable again.

Expectation:

No matter the content, the saved file should be able to be opened.

To Reproduce

  1. Open OpenRocket 24.12 RC.01
  2. File>Open example>A simple model rocket.
  3. OK "Rocket configuration" dialog.
  4. Click "Motors & Configuration" tab.
  5. [New Configuration].
  6. Add an Estes 1/4A3 motor (guaranteed to be too small for a successful flight).
  7. OK the Motor selection dialog.
  8. Click "Flight simulations" tab.
  9. Select All.
  10. [Run simulations].
  11. Note that "Simulation 6" has 2 warnings.
  12. File>Save as...
  13. important Optionally fill, but definitely OK the "Save Design Info" dialog (to work around [Bug] TITLE CHANGE: Cancelling "Save design info" dialog during "Save as..." REVERTS MOST RECENT CHANGE to component/simulation #2680).
  14. In the "Save as OpenRocket ork file" dialog, ensure "All simulated data" is selected.
  15. Name the file and save it.
  16. If the "Save options" dialog appears, ensure that "All simulated data" is selected once more, and OK it.
  17. Quit OpenRocket
  18. Re-open OpenRocket and open the just-saved file, or double-click it to open OpenRocket.
  19. BUG file will not open with "BugException: BUG: Unknown error when opening file"

Screenshots / .ork file

Image

junk2.ork.zip

OpenRocket version

24.12 RC01

What platform are you running on?

macOS

Additional context

StackTrace.txt.zip

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions