Skip to content

Code error stopping exporting from fusion straight to Slicer if an instance is already running #605

Description

@Ohdeeeer

Is there an existing issue for this problem?

  • I have searched the existing issues

Snapmaker_Orca Version

2.3.5

Operating System (OS)

Windows

OS Version

Win10

Additional system information

No response

Printer

Snapmaker U1

How to reproduce

Set Snapmaker orca to "Allow only one Snapmaker Orca instance".
Autodesk Fusion, Mesh tab, Export to 3D print, Custom, select Snapmaker orca executable. Exporting using this method sends selected model straight to slicer. If slicer is already open, it should import the model to current project.

Actual results

Snapmaker orca will only load the model if it is not already running. Any further ones once an instance is running will be ignored.

Expected results

Double-clicking an STL/3MF file while Snapmaker Orca is already running silently fails to load the file into the existing instance. The second instance starts, detects the first, then exits without forwarding the file path.

Bugs in src/slic3r/GUI/InstanceCheck.cpp:

Wrong window title string (line 108)
The EnumWindowsProc callback searches for L"Snapmaker_Orca" (underscore) in window titles, but the actual window class/title uses "Snapmaker Orca" (space), set via SLIC3R_APP_KEY in Snapmaker_OrcaApp.cpp. The window is never found, so send_message() can never deliver the file path.

Fix: Changed the search string from L"Snapmaker_Orca" to L"Snapmaker Orca".

Project file & Debug log uploads

.

Checklist of files to include

  • Log file
  • Project file

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions