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

Crashing segfault when calling: app.command.CloseFile() or app.command.GotoPreviousTab() , in --batch mode #4352

Open
jestarray opened this issue Mar 1, 2024 · 1 comment · May be fixed by #4421
Assignees
Labels
crash report Issue originated from a crash report / .dmp file high priority scripting Related to scripting API time-3
Milestone

Comments

@jestarray
Copy link
Contributor

jestarray commented Mar 1, 2024

aseprite_segfault.mp4

Aseprite and System version

  • Aseprite version: version number, installer/portable/Steam/beta/dev/commit-hash
    • v1.3 master branch
    • commit: 73fe8099d96479364f92ff6317a5687498d43d36
  • System: Arch Linux

lua script:

-- these aren't the problem but are included to simulate my big script that has this issue in case.
--app.open(app.activeSprite.filename)
--app.open(app.activeSprite.filename)

-- running either of these in batch mode segfaults!
--app.command.GotoPreviousTab()
app.command.CloseFile()
--app.command.GotoNextTab()
--app.command.CloseAllFiles()

command:

aseprite image.png --script "test_crash.lua" --batch

NOTE: It crashes even without the app.open() calls but I included it in there because I have a big script that opens 3-4 tabs so I thought it was a memory limit issue.

@Gasparoken Gasparoken added high priority scripting Related to scripting API time-3 crash report Issue originated from a crash report / .dmp file labels Mar 19, 2024
@Gasparoken Gasparoken added this to the v1.3.x milestone Mar 19, 2024
@Gasparoken
Copy link
Member

Thank you @jestarray. I was able to reproduce it easily with your files and clear explanation.

@dacap dacap modified the milestones: v1.3.x, v1.3.6 Mar 19, 2024
@dacap dacap modified the milestones: v1.3.6, v1.3.7 Apr 9, 2024
@Gasparoken Gasparoken self-assigned this Apr 17, 2024
Gasparoken added a commit to Gasparoken/aseprite that referenced this issue Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crash report Issue originated from a crash report / .dmp file high priority scripting Related to scripting API time-3
Projects
Status: Done
3 participants