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

show(m, to = c("audio","score")) results in Error: rsession-arm64: NegativeOrZeroImageSize `' @ error/image.c/CloneImage/795 #15

Closed
markariosd3 opened this issue Apr 2, 2024 · 2 comments

Comments

@markariosd3
Copy link

I'm trying to run show(m, to = c("audio","score")) from the Quick Example but it gives the error Error: rsession-arm64: NegativeOrZeroImageSize ' @ error/image.c/CloneImage/795`. Are there any suggestions you can kindly recommend for getting past this error?

What I've Tried Thus Far

  1. I searched for this error and it's related to the magick library. So I then tested it to make sure it's working and it does.

  2. I read that .Renviron needs MUSESCORE_PATH=/Applications/MuseScore 4.app and usethis::edit_r_environ() to verify that it's there.

  3. I tried running `show(m, to = c("audio")) and in the Rstudio view is just renders a media ui that's not playable, i.e. you can not click play to hear the "C5".

  4. I tried running show(m) and it results in the same error mentioned in the title.

  5. I checked that MuseScore 4 is working by exporting a score in svg.

  6. I tried checking that all the dependencies are installed with tools::package_dependencies("gm").

System Details
Computer: Macbook Air
Memory: 8GB
Chip: Apple M1
Sonoma 14.2.1
git version 2.39.3 (Apple Git-146)
Homebrew 4.2.16
/opt/brew/opt/pkg-config (appears installed here)
Rstudio: Version 2023.03.1+446 (2023.03.1+446)
R version 4.3.3
gm version 1.0.2

Console Details
`

library(gm)

m <- Music()

m <- m +

  • Meter(4,4) +
  • Line(pitches = list("C5"), durations = list("whole"))

show(m, to = c("audio","score"))
Error: rsession-arm64: NegativeOrZeroImageSize ' @ error/image.c/CloneImage/795

@flujoo
Copy link
Owner

flujoo commented Apr 2, 2024

Hi @markariosd3, thanks for your feedback! I just tried the following path and it worked:

MUSESCORE_PATH=/Applications/MuseScore 4.app/Contents/MacOS/mscore

Hope this will help.

@markariosd3
Copy link
Author

markariosd3 commented Apr 2, 2024 via email

@flujoo flujoo closed this as completed Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants