Skip to content

Failed to import ... #212

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

Open
Shadowblitz16 opened this issue Apr 25, 2025 · 7 comments
Open

Failed to import ... #212

Shadowblitz16 opened this issue Apr 25, 2025 · 7 comments

Comments

@Shadowblitz16
Copy link

Describe the bug
Error when running the editor.

Failed to import /home/shadowblitz16/Documents/Source/Test/Library/AssetDatabase/2debb6a9-0fb7-4ddb-9e7d-c20a5133718a.serialized.
System.Exception: Failed to import /home/shadowblitz16/Documents/Source/Test/Library/AssetDatabase/2debb6a9-0fb7-4ddb-9e7d-c20a5133718a.serialized.
   at Prowl.Editor.Assets.AssetDatabase.LoadAsset(Guid assetGuid) in /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Assets/AssetDatabase.Core.cs:line 532
   at Prowl.Editor.Assets.AssetDatabase.LoadAsset[T](Guid assetGuid, UInt16 fileID) in /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Assets/AssetDatabase.Core.cs:line 456
Exception in EditorWindow
Something went wrong loading asset.
        In AssetDatabase.LoadAsset at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Assets/AssetDatabase.Core.cs(478,13)
        In AssetDatabase.LoadAsset at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Assets/AssetDatabase.Core.cs(439,13)
        In EditorAssetProvider.LoadAsset at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Assets/EditorAssetProvider.cs(17,9)
        In DefaultRenderPipeline.ValidateDefaults at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Runtime/Rendering/RenderPipeline/DefaultRenderPipeline.cs(60,13)
        In DefaultRenderPipeline.Render at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Runtime/Rendering/RenderPipeline/DefaultRenderPipeline.cs(110,9)
        In SceneViewWindow.Draw at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Editor/SceneViewWindow.cs(161,9)
        In EditorWindow.ProcessFrame at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Editor/EditorWindow.cs(165,25)

Failed to import Defaults/SkyDome.obj Took 0ms
Unable to load shared library 'libdl.so' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: 
/home/shadowblitz16/Documents/Source/cs/Prowl/Build/Editor/Debug/net9.0/runtimes/linux-x64/native/libdl.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/.dotnet/shared/Microsoft.NETCore.App/9.0.2/libdl.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/Prowl/Build/Editor/Debug/net9.0/libdl.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/Prowl/Build/Editor/Debug/net9.0/runtimes/linux-x64/native/liblibdl.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/.dotnet/shared/Microsoft.NETCore.App/9.0.2/liblibdl.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/Prowl/Build/Editor/Debug/net9.0/liblibdl.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/Prowl/Build/Editor/Debug/net9.0/runtimes/linux-x64/native/libdl.so.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/.dotnet/shared/Microsoft.NETCore.App/9.0.2/libdl.so.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/Prowl/Build/Editor/Debug/net9.0/libdl.so.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/Prowl/Build/Editor/Debug/net9.0/runtimes/linux-x64/native/liblibdl.so.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/.dotnet/shared/Microsoft.NETCore.App/9.0.2/liblibdl.so.so: cannot open shared object file: No such file or directory
/home/shadowblitz16/Documents/Source/cs/Prowl/Build/Editor/Debug/net9.0/liblibdl.so.so: cannot open shared object file: No such file or directory

        In UnmanagedLinuxLibraryImplementation.dlopen at (0,0)
        In UnmanagedLinuxLibraryImplementation.NativeLoadLibrary at (0,0)
        In UnmanagedLibrary.LoadIfNotLoaded at (0,0)
        In AssimpContext.CreateConfigs at (0,0)
        In AssimpContext.ImportFile at (0,0)
        In ModelImporter.Import at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Assets/Importers/ModelImporter.cs(68,13)
        In AssetDatabase.Reimport at /home/shadowblitz16/Documents/Source/cs/Prowl/Prowl.Editor/Assets/AssetDatabase.Core.cs(388,13)


To Reproduce
Steps to reproduce the behavior:

  1. git clone --recursive https://github.com/ProwlEngine/Prowl.git
  2. open the sln in rider
  3. build the sln
  4. play the editor.
  5. see lots of errors.

Expected behavior
No errors.
If a asset fails to import it should be a warning and it should only print out once.

Screenshots
Image

Additional context
NA

@bulutonur
Copy link

This solved the issue: dotnet/dotnet-docker#4938 (comment)

@Shadowblitz16
Copy link
Author

This solved the issue: dotnet/dotnet-docker#4938 (comment)

Solved? Do I have to do something to fix it, or will it be fixed later?

@PaperPrototype
Copy link
Contributor

what OS/Hardware are you using?

@Shadowblitz16
Copy link
Author

what OS/Hardware are you using?

Operating System: Kubuntu 24.04
KDE Plasma Version: 5.27.12
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13
Kernel Version: 6.14.3-1-liquorix-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 11.6 GiB of RAM
Graphics Processor: AMD Radeon Graphics

@PaperPrototype
Copy link
Contributor

Run whereis libdl.so.2 and whereis libdl.so in your terminal

Then you can use ln command to create a symlink to the missing file (ln a standard Unix command utility used to create a hard link or a symbolic link (symlink) to an existing file or directory -- from google search AI)

This is all per the solution provided by @bulutonur

@Shadowblitz16
Copy link
Author

Shadowblitz16 commented May 5, 2025

$ whereis libdl.so.2
libdl.so.2: /usr/lib/x86_64-linux-gnu/libdl.so.2 /usr/lib32/libdl.so.2

$ whereis libdl.so
libdl.so:

Why am I linking in the first place?
Oh I see it's someone else error, which will be fixed.

@PaperPrototype
Copy link
Contributor

Your system has a file that a C# lib depends on but it is not in the place that it expected, so you need to create a symlink (path) so that the lib can find the file

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

3 participants