Hi Spasi,
This solves the issue, thank you very much!!
PS:
If JavaFX was initialized everything goes as expected. However, if JavaFX was not initialized, it causes the VM to crash when calling glfwCreateWindow:
+[NSUndoManager(NSInternal) _endTopLevelGroupings] is only safe to invoke on the main thread..