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

Crash on drawing heatmap with M1 chip #943

Open
PanKuanYu opened this issue Jun 23, 2022 · 3 comments
Open

Crash on drawing heatmap with M1 chip #943

PanKuanYu opened this issue Jun 23, 2022 · 3 comments

Comments

@PanKuanYu
Copy link

Hi!
I got the error messages when I was using the ComplexHeatmap (2.13.1) on R studio 4.2.0 with Mac OS (M1 chip)
(my database contain 13443 genes)

Error in magick_image_readpath(path, density, depth, strip, defines) :
rsession: UnableToOpenBlob `/var/folders/cj/ndnjs11j7zg6vkgvfwf_f8th0000gn/T//Rtmp1A10U7/.heatmap_body_4fc49bca92ca6455b217df148241b837_1_1c6161dea6d.png': No such file or directory @ error/blob.c/OpenBlob/2924
In addition: Warning messages:
1: In grSoftVersion() :
unable to load shared object '/Library/Frameworks/R.framework/Resources/modules//R_X11.so':
dlopen(/Library/Frameworks/R.framework/Resources/modules//R_X11.so, 6): Library not loaded: /opt/X11/lib/libSM.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.2/Resources/modules/R_X11.so
Reason: image not found
2: In cairoVersion() :
unable to load shared object '/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so':
dlopen(/Library/Frameworks/R.framework/Resources/library/grDevices/libs//cairo.so, 6): Library not loaded: /opt/X11/lib/libXrender.1.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.2/Resources/library/grDevices/libs/cairo.so
Reason: image not found
3: In (function (filename = "Rplot%03d.png", width = 480, height = 480, :
failed to load cairo DLL

Then I tried on windows os, the error messages didn't pop out ,but I got a few gene display on plot panel on Rstudio (R version 4.2.0, ComplexHeatmap 2.13.1).
And I also tried my classmate's computer with same operation system Mac OS (intel chip)(R version 4.2.0, ComplexHeatmap 2.4.3)
the gene numbers is correctly display on plot panel.

I'm a beginner of bioinformatic and R programming. I search this error message on google, and I still not figure out to resolve this problem.
Could you please help me to solve the problem or Do I have a pleasure to get the previous version from you that may work on Mac OS with M1 chip ?

Best regards

Tina Pan

@jokergoo
Copy link
Owner

jokergoo commented Jun 23, 2022

Can you try to install the newest version of xquartz: https://www.xquartz.org/, and also update the Cairo package?

@PanKuanYu
Copy link
Author

Thank you for your suggestion !!!!!!
I tried it on Mac OS and the problem was solved.

@ektapathak08
Copy link

Thanks @jokergoo, that did work.

Best
Ekta

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

3 participants