Skip to content

sampleLoad: orso.load_orso runs outside try/except and crashes on bad ORSO files #322

Closed

Description

@rozyczko

Source: EasyReflectometryApp/Backends/Py/project.py:127-147 — DEEP_ANALYSIS.md §5 item 11

In the sampleLoad slot, orso.load_orso(...) runs outside any try/except. A malformed or unreadable ORSO file raises straight through the slot into the Qt event loop.

Contrast with load() directly above, which carefully catches errors and signals projectLoadError.

Fix: Wrap the ORSO load in try/except and report failures via an error signal (e.g. projectLoadError) as the project-load path does.

Activity

  1. added
    [scope] bug
    [priority] high
    on Jun 17, 2026
  2. added a commit that references this issue on Jun 18, 2026
  3. added a commit that references this issue on Jul 15, 2026
  4. added a commit that references this issue on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [priority] high[scope] bugfile-io

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions