jokergoo / ComplexHeatmap

Make Complex Heatmaps
https://jokergoo.github.io/ComplexHeatmap-reference/book/
Other
1.31k stars 230 forks source link

Crash on drawing heatmap with M1 chip #943

Open PanKuanYu opened 2 years ago

PanKuanYu commented 2 years ago

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 commented 2 years ago

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

PanKuanYu commented 2 years ago

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

ektapathak08 commented 11 months ago

Thanks @jokergoo, that did work.

Best Ekta