Thanks to visit codestin.com
Credit goes to github.com

Skip to content

macOS: Session tracks aren't loaded when Corelyzer is launched through CML session file #18

@sorghumking

Description

@sorghumking

When a CML session file is used to invoke Corelyzer (via double-click, right-click + Open, or dragging CML file onto Corelyzer app), the session loads incompletely. Data files are added correctly, but tracks and sections don't appear.

CorelyzerAppController.doAssociatedFile() calls loadStateFile(). This eventually leads to CorelyzerAppController.createTrack(), where the SceneGraph.addTrack() call returns -1 instead of a valid, non-negative ID.

However, if I create a Runnable with Thread.sleep(2000) before calling loadStateFile(), everything works correctly.

So it appears the problem is a race condition: we try to add a track before SceneGraph is ready.

To fix, ensure app initialization is complete, then load the CML file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions