Yes I have had this issue, however this platform example now works out the box ![]()
(I am on Ubuntu, old Nvidia card). A thing I had to do was change ‘Opengl version hint’ from ‘highest available’ to a set value (eg 3.3 and 4.6 works); (and I do this to make defold-pixelart-shader-example work). I don’t know why, I just keep throwing stuff at the wall until something sticks:-)
Ah! Yes, this is also worth trying. Did you try Vulkan on Linux? (just curious)
I’d like to clarify that these issues are not specific to those projects.
Vulcan results in:
INFO:GRAPHICS: Vulkan device selected: NVIDIA GeForce GTX 1080
ERROR:ENGINE: Could not find '@render' socket.
And gives me a black window.
Edit:
Tested with ‘Linker sample game’
‘Opengl version hint’ = ‘highest available’ Does not work. (3.3 does work)
Vulcan ‘works’ and prints the error (ERROR:ENGINE: Could not find ‘@render’ socket.)
meh?
This is definitely not something I can fix ![]()
You should consider adding an issue on GitHub, including more information about your system:
Edited my post, before spotting (refreshing to) your reply, drat. I lack knowledge required to understand what is occurring here. Could be something up with my old graphics card or something else on my system, I don’t know.
I remember this now, this comes from Defos, but it shouldn’t cause a black screen or any kind of a problem…
Can you try by commenting this line like this -- init_defos()
It’s weird that you’re getting the same error with the Linker sample game, it doesn’t use Defos at all. I don’t know ![]()
imgui Opengl only (probably say this above somewhere
) ?
With Vulcan:
dmengine: upload/imgui/src/imgui/imgui_impl_opengl3.cpp:401: void ImGui_ImplOpenGL3_NewFrame(): Assertion `bd != nullptr && "Context or backend not initialized! Did you call ImGui_ImplOpenGL3_Init()?"' failed.
This results in the following errors:
ERROR:GRAPHICS: Vulkan Error (../src/vulkan/graphics_vulkan.cpp:1401) VK_ERROR_OUT_OF_DATE_KHR
dmengine: ../src/vulkan/graphics_vulkan.cpp:1401: void dmGraphics::VulkanFlip(HContext): Assertion `0' failed.
...
ERROR:CRASH: /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x74a188642520]
ERROR:CRASH: /lib/x86_64-linux-gnu/libc.so.6(pthread_kill+0x12c) [0x74a1886969fc]
...
Maybe something wrong with my libc or my graphics card is not compatible, no idea. I am chasing shadows here, Opengl works and that is good enough for me for now.