Prowl icon indicating copy to clipboard operation
Prowl copied to clipboard

Failed to import ...

Open Shadowblitz16 opened this issue 7 months ago • 7 comments

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

Shadowblitz16 avatar Apr 25 '25 01:04 Shadowblitz16

This solved the issue: https://github.com/dotnet/dotnet-docker/discussions/4938#discussioncomment-7892892

bulutonur avatar May 02 '25 22:05 bulutonur

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?

Shadowblitz16 avatar May 03 '25 16:05 Shadowblitz16

what OS/Hardware are you using?

PaperPrototype avatar May 04 '25 14:05 PaperPrototype

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

Shadowblitz16 avatar May 04 '25 19:05 Shadowblitz16

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

PaperPrototype avatar May 04 '25 22:05 PaperPrototype

$ 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.

Shadowblitz16 avatar May 05 '25 01:05 Shadowblitz16

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

PaperPrototype avatar May 05 '25 02:05 PaperPrototype