SimulaVR / Simula

Linux VR Desktop
MIT License
2.97k stars 91 forks source link

sn0w75 Build Error on Debian Testing Branch + RX 580 GPU + mesa open-source drivers #20

Closed georgewsinger closed 6 years ago

georgewsinger commented 6 years ago

Context. @sn0w75 built Simula on ~Ubuntu 17.10~ Debian Testing Branch with an RX 580 GPU and mesa open-source drivers. I collected his run-time error report here so that we can solve it.

Compilation. @sn0w75:

stack build completes without errors [but with the following warnings]:

Warning: /home/bb2045/Dev/Packages/Simula/Simula/stack.yaml: The `*` ghc-options key is not recommended. Consider using $locals, or if really needed, $everything

Warning: Specified pattern "src/**/*.c" for c-sources does not match any files
WARNING: Ignoring out of range dependency (allow-newer enabled): base-4.10.1.0. linear-opengl requires: >=4.6 && <4.10
WARNING: Ignoring out of range dependency (allow-newer enabled): lens-4.15.4. linear-opengl requires: >=4.2 && <4.15

Run-Time Errors. Here are the highlights from zerobin:

$ ~/Dev/Packages/Simula/Simula$ /home/bb2045/.local/bin/stack exec simulavr
# ...
ioctl (GFEATURE): Broken pipe
WARNING: radv is not a conformant vulkan implementation, testing use only.
ioctl (GFEATURE): Broken pipe
# ...
WARNING: radv is not a conformant vulkan implementation, testing use only.
["VK_KHR_dedicated_allocation","VK_KHR_get_memory_requirements2","VK_KHR_external_memory","VK_KHR_external_memory_fd","VK_KHR_external_semaphore","VK_KHR_external_semaphore_fd"]
output pending
/usr/share/weston/wayland.png: No such file or directory
Chosen EGL config details:
               RGBA bits: 8 8 8 0
               swap interval range: 0 - 1000
x11 output 1512x1680, window id 148897797
output created
[Error InvalidOperation "invalid operation"]
CallStack (from HasCallStack):
  checkForErrors, called at src/Simula/ViveCompositor/ViveCompositor.hs:309:7 in Simula-0.0.0-4NCfWS7fuo4DKgHyUmYd62:Simula.ViveCompositor.ViveCompositor
[Error InvalidOperation "invalid operation"]
CallStack (from HasCallStack):
  checkForErrors, called at src/Simula/ViveCompositor/ViveCompositor.hs:334:7 in Simula-0.0.0-4NCfWS7fuo4DKgHyUmYd62:Simula.ViveCompositor.ViveCompositor
created FBO
Created shell
creating new viewpoint
created new viewpoint
creating new viewpoint
created new viewpoint
Loading module '/usr/lib/x86_64-linux-gnu/libweston-3/xwayland.so'
Registered plugin API 'weston_xwayland_v1' of size 32
Registered plugin API 'weston_xwayland_surface_v1' of size 16
failed to bind to @/tmp/.X11-unix/X0: Address already in use
unlinking stale lock file /tmp/.X1-lock
xserver listening on display :1
Compositor start
FPS: 179769313486231590772930519078902473361797697894230657273430081157732675805500963132708477322407536021120113879871393357658789768814416622492847430639474124377767893424865485276302219601246094119453082952085005768838150682342462881473913110540827237163350510684586298239947245938479716304835356329624224137216
EVENT: KnownEvent VREvent_MCImageUpdated
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_IpdChanged
EVENT: KnownEvent VREvent_PropertyChanged
RENDER MODEL: generic_hmd
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_ProcessConnected
EVENT: KnownEvent VREvent_TrackedDeviceUserInteractionStarted
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_PropertyChanged
EVENT: KnownEvent VREvent_ProcessConnected
[Error InvalidFramebufferOperation "invalid framebuffer operation"]
CallStack (from HasCallStack):
  checkForErrors, called at src/Simula/BaseCompositor/SceneGraph.hs:579:3 in Simula-0.0.0-4NCfWS7fuo4DKgHyUmYd62:Simula.BaseCompositor.SceneGraph
[Error InvalidFramebufferOperation "invalid framebuffer operation"]
CallStack (from HasCallStack):
  checkForErrors, called at src/Simula/ViveCompositor/SimulaVRModel.hs:200:7 in Simula-0.0.0-4NCfWS7fuo4DKgHyUmYd62:Simula.ViveCompositor.SimulaVRModel
[Error InvalidFramebufferOperation "invalid framebuffer operation"]
CallStack (from HasCallStack):
  checkForErrors, called at src/Simula/ViveCompositor/SimulaVRModel.hs:200:7 in Simula-0.0.0-4NCfWS7fuo4DKgHyUmYd62:Simula.ViveCompositor.SimulaVRModel
[Error InvalidFramebufferOperation "invalid framebuffer operation"]
CallStack (from HasCallStack):
  checkForErrors, called at src/Simula/ViveCompositor/SimulaVRModel.hs:234:7 in Simula-0.0.0-4NCfWS7fuo4DKgHyUmYd62:Simula.ViveCompositor.SimulaVRModel
[Error InvalidFramebufferOperation "invalid framebuffer operation"]
CallStack (from HasCallStack):
  checkForErrors, called at src/Simula/ViveCompositor/SimulaVRModel.hs:234:7 in Simula-0.0.0-4NCfWS7fuo4DKgHyUmYd62:Simula.ViveCompositor.SimulaVRModel
amdgpu: The CS has been rejected, see dmesg for more information.
vk: error: failed to submit CS 0

Aborted

and

$ ~/Dev/Packages/Simula/Simula$ Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198025336018 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561198025336018
Unable to load 'libpangoft2-1.0.so' (error info '/usr/lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by /home/bb2045/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/libpangoft2-1.0.so)'), your game install may be corrupted or you may have a system conflict
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
QObject::connect: No such signal CQVRStatusDismissableWarning::OnDismissButtonClicked() in qsteamvrstatuswindow.cpp:618
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
Using breakpad crash handler
Setting breakpad minidump AppID = 250820
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198025336018 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561198025336018
Unable to load 'libpangoft2-1.0.so' (error info '/usr/lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by /home/bb2045/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/libpangoft2-1.0.so)'), your game install may be corrupted or you may have a system conflict
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='UTF-8'>
BrokenPipeError: [Errno 32] Broken pipe
Initialize() is failed!!!
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198025336018 [API loaded yes]
Steam_SetMinidumpSteamID:  Setting Steam ID:  76561198025336018

Other Relevant Info. From @sn0w75:

Note that I symlinked /lib/x86_64-linux-gnu/libudev.so.1 to /lib/x86_64-linux-gnu/libudev.so.0 to get rid of a shared library error. I also tried symlinking libpng16 lib to libpng12.so.0 but as you'll see in the log it didn't take kindly to that. I'll probably have to install older version of libpng, libpng12 for that. SteamVR comes up just fine but as best as I can tell Simula isn't coming up with it.

georgewsinger commented 6 years ago

@sn0w75 is getting a libpng12 error:

Unable to load 'libpangoft2-1.0.so' (error info '/usr/lib/x86_64-linux-gnu/libpng12.so.0: version `PNG12_0' not found (required by /home/bb2045/.local/share/Steam/steamapps/common/SteamVR/bin/linux64/libpangoft2-1.0.so)'), your game install may be corrupted or you may have a system conflict

~But AFAIK libpng12 isn't available on Ubuntu 17.10 (but libpng16 should be available). In the past, I received a similar error after building on Ubuntu on 16.*, upgrading to Ubuntu 17.10, and then trying to run the simulavr binary.~

@sn0w75 Did you do something similar here?

ghost commented 6 years ago

@georgewsinger I'm running Debian testing branch, not Ubuntu 17.10. (Both debian-based systems with fairly up-to-date packages so close enough I suppose.)

libpng12 isn't available on Debian testing branch either, only libpng16, and I was getting an error about a missing shared library even with libpng16 installed since the program was looking specifically for libpng12.so.0. That's when I tried symlinking the libpng16 library file to libpng12.so.0, but it seems libpng is strict about what version gets used with a particular application (thus the error related to libpng12 you see in the log).

I'll try to install the libpng12 deb package from debian's stable branch when I next have time to fiddle around with Simula some, and that ought to easily fix that particular error unless I run into trouble installing the libpng12 package due to missing dependencies or something (probably shouldn't).

lboklin commented 6 years ago

Issue made obsolete after move to Godot.