2D to 3D (analysis-by-synthesis) crashes on scalismo.initialize() on my MAC

32 views
Skip to first unread message

Divya Choudhary

unread,
Aug 11, 2021, 12:59:24 PM8/11/21
to scalismo-faces
Hi, 

Thanks a lot for your evolved research and making BFM available for research.

I have been trying to construct a 3D image from a 2D input image (.png) along with a .tlms for its face (both placed appropriately in lfwSelection folder in the correct path). However, whenever i run "sbt run fitting.experiments.QualitativeLFW", it tries to open Scalismo (it pops up in my dock) and then crashes with error "Terminating app due to uncaught exception  'NSInternalInconsistencyException' reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'.

Based on my research, it seems this crash is due to JDK version mismatch, I have used JDK 16 and also Zulu build of Java, but I face the same issue in both scenarios. 

I will really appreciate help on this. If there is a code chunk you can send me that can at least help me generate .ply file or .obj file for 3D image outptut, I can even try rendering it other 3D renderers may be. 

Thanks,
Divya Choudhary

egger.b...@gmail.com

unread,
Aug 11, 2021, 2:41:48 PM8/11/21
to scalismo-faces
Hi Divya,

can you try openJDK 8 or Java 8 please?
Most recent java versions seem to cause issues, especially on Mac
I did not get it working on Big Sur and had to go via an Ubuntu 20.04 virtual machine (virtualbox) with openJDK 8

Best
Bernhard

Marcel Luethi

unread,
Aug 12, 2021, 6:54:41 AM8/12/21
to egger.b...@gmail.com, scalismo-faces
Hi Divya and Bernhard

There is a bug in many versions of the JVM which causes that crash on Macs. The good news is that it is fixed in the Zulu distribution. So if you just user the azul Zulu JDK 11, it should work. It is most convenient to just download and select the right JDK from within IntelliJ (see this page: https://scalismo.org/docs/ide#using-scalismo-from-intellij-idea)

Best regards

Marcel

--
You received this message because you are subscribed to the Google Groups "scalismo-faces" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalismo-face...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/scalismo-faces/d22ece11-635b-45b1-8397-aa9602c488a3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages