Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to link to librt.so.1 on linux #44

Open
spocino opened this issue Jul 15, 2022 · 4 comments
Open

Failed to link to librt.so.1 on linux #44

spocino opened this issue Jul 15, 2022 · 4 comments

Comments

@spocino
Copy link

spocino commented Jul 15, 2022

Got this error at runtime:

 2: ERROR
 2:   [Client] 1: rendering faulted with System.DllNotFoundException: Unable to load shared library 'librt' or one of its dependencies. In order to help diagnose loading problems, consider setting the LD_DEBUG environment variable: liblibrt: cannot open shared object file: No such file or directory
 2:      at Aardvark.Service.SharedMemory.Posix.Linux.shmunlink(String name)
 2:      at Aardvark.Service.SharedMemory.Posix.Linux.create(String name, Int64 size)
 2:      at Aardvark.Service.MappedClientRenderTask.recreateMapping(Int64 desiredSize)
 2:      at Aardvark.Service.MappedClientRenderTask.ProcessImage(IFramebuffer target, IRenderbuffer color)
 2:      at Aardvark.Service.ClientRenderTask.Run(AdaptiveToken token, ClientInfo info, ClientState state)
 2:      at <StartupCode$Aardvark-Service>.$Server.arg10@1860-1(Client this, V2i size, C4b background, AdaptiveToken token) (stopping)

I have librt.so.1 installed at /lib

@haraldsteinlechner
Copy link
Member

haraldsteinlechner commented Jul 15, 2022

thanks for reporting. as a workaround you could use attribute "useMapping" "false" on the render control. clearly this is a not optimal since it should be robust to missing mapping support. is there a problem with new sharedmem builds @krauthaufen - any clue? for real diagnosis of the actual problem (wich is hard when not having your system) you could use LD_DEBUG=all dotnet yourapp.dll? maybe this gives a clue. otherwise nm or ldd could help to figure out what is missing.

@krauthaufen
Copy link
Member

I don't think there is a linux without shared-memory support, so i guess this is related to some version trouble with librt? Maybe we should manually try to load librt.so.1?

@spocino
Copy link
Author

spocino commented Jul 15, 2022

I use Fedora 36, and it does have librt. I noticed it attempted to load "liblibrt"

@hyazinthh
Copy link
Member

We have recently changed how we import those functions. Your error message looks like you're using an old version of media. Everything is working on my Ubuntu 22.04 system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants