BlazorWebView
BlazorWebView copied to clipboard
Cannot run because DLLs not found
Exception has occurred: CLR/System.DllNotFoundException
An unhandled exception of type 'System.DllNotFoundException' occurred in Gtk-4.0.dll: 'Unable to load shared library 'libgtk-4.so.1' 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:
/snap/dotnet-sdk/236/shared/Microsoft.NETCore.App/8.0.2/libgtk-4.so.1: cannot open shared object file: No such file or directory
/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/libgtk-4.so.1: cannot open shared object file: No such file or directory
/snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libgtk-4.so.1) /snap/dotnet-sdk/236/shared/Microsoft.NETCore.App/8.0.2/liblibgtk-4.so.1: cannot open shared object file: No such file or directory /mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/liblibgtk-4.so.1: cannot open shared object file: No such file or directory /snap/dotnet-sdk/236/shared/Microsoft.NETCore.App/8.0.2/libgtk-4.so.1.so: cannot open shared object file: No such file or directory /mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/libgtk-4.so.1.so: cannot open shared object file: No such file or directory /snap/dotnet-sdk/236/shared/Microsoft.NETCore.App/8.0.2/liblibgtk-4.so.1.so: cannot open shared object file: No such file or directory /mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/liblibgtk-4.so.1.so: cannot open shared object file: No such file or directory' at System.Runtime.InteropServices.NativeLibrary.<LoadByName>g____PInvoke|2_0(UInt16* __libraryName_native, QCallAssembly __callingAssembly_native, Int32 __hasDllImportSearchPathFlag_native, UInt32 __dllImportSearchPathFlag_native, Int32 __throwOnError_native) at Gtk.Internal.ImportResolver.Resolve(String libraryName, Assembly assembly, Nullable1 searchPath)
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
at Gtk.Internal.Functions.Init()
at Gtk.Module.Initialize()
at WebKit.Module.Initialize()
at Program.Main(String[] args) in /mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/Program.cs:line 12
Installed libgtk and glibc with: sudo apt -y install libgtk-4-1
This is some strange output:
- Can you try to avoid windows file systems?
- Can you try to avoid things related to snaps?
I can try ?
I have a pi 5 i will configure this weekend and retry
From: Marcel Tiede @.> Sent: Thursday, February 15, 2024 11:29 AM To: JinShil/BlazorWebView @.> Cc: Michael Margolese @.>; Author @.> Subject: Re: [JinShil/BlazorWebView] Cannot run because DLLs not found (Issue #7)
This is some strange output:
- Can you try to avoid windows file systems?
- Can you try to avoid things related to snaps?
— Reply to this email directly, view it on GitHubhttps://github.com/JinShil/BlazorWebView/issues/7#issuecomment-1947077619, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYMHAOQMPCIB3M4ZPFKG5ZDYTZO2TAVCNFSM6AAAAABDKYZWW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGA3TONRRHE. You are receiving this because you authored the thread.Message ID: @.***>
I have a pi 5 i will configure this weekend and retry
Note that on a Pi 5, running Bookworm, you will likely encounter this issue: https://github.com/raspberrypi/linux/issues/5750. You can workaround that issue by adding webView.GetSettings().SetHardwareAccelerationPolicy(WebKit.HardwareAccelerationPolicy.Never);
I'm afraid I don't know what to do about the missing DLL errors. Check the paths listed in the error message. If the file doesn't exist, then try to find which package in your package manager provides those files. If the files are in a different location, or have a different name, you may need to add a symlink to those files.
Which OS distribution are you using?
Ubuntu (WSL2) 22.04.3 (jammy) x64/x86
$ strace ./WebKitGtk.Test
execve("./WebKitGtk.Test", ["./WebKitGtk.Test"], 0x7ffd3cffa020 /* 26 vars /) = 0 brk(NULL) = 0x564743463000 arch_prctl(0x3001 / ARCH_??? /, 0x7ffc5169aef0) = -1 EINVAL (Invalid argument) readlink("/proc/self/exe", "/mnt/d/Development/Visual Studio"..., 4096) = 102 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff20069e000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/tls/haswell/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/tls/haswell/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/tls/haswell/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/tls/haswell", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/tls/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/tls", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/haswell/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/haswell/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/haswell/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/haswell", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/netcoredeps", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/tls/haswell/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/tls/haswell/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/tls/haswell/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/tls/haswell", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/tls", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/haswell/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/haswell/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/haswell/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/haswell", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../usr/lib/x86_64-linux-gnu", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/tls/haswell/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/tls/haswell/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/tls/haswell/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/tls/haswell", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/tls/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/tls", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/haswell/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/haswell/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/haswell/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/haswell", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/../../../../../../lib", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/tls/haswell/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/snap/core20/current/lib/x86_64-linux-gnu/tls/haswell/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/tls/haswell/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/snap/core20/current/lib/x86_64-linux-gnu/tls/haswell", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/snap/core20/current/lib/x86_64-linux-gnu/tls/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/tls/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/snap/core20/current/lib/x86_64-linux-gnu/tls", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/haswell/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/snap/core20/current/lib/x86_64-linux-gnu/haswell/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/haswell/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/snap/core20/current/lib/x86_64-linux-gnu/haswell", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) stat("/snap/core20/current/lib/x86_64-linux-gnu/x86_64", 0x7ffc5169a140) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\220q\0\0\0\0\0\0"..., 832) = 832 pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\365\267\271\263\357\340\36\367\256\306\221\334\217N',"..., 68, 824) = 68 fstat(3, {st_mode=S_IFREG|0755, st_size=157224, ...}) = 0 pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\365\267\271\263\357\340\36\367\256\306\221\334\217N',"..., 68, 824) = 68 mmap(NULL, 140408, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff20067b000 mmap(0x7ff200681000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7ff200681000 mmap(0x7ff200692000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7ff200692000 mmap(0x7ff200698000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c000) = 0x7ff200698000 mmap(0x7ff20069a000, 13432, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff20069a000 close(3) = 0 openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \22\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=18848, ...}) = 0 mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff200675000 mmap(0x7ff200676000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7ff200676000 mmap(0x7ff200678000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff200678000 mmap(0x7ff200679000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff200679000 close(3) = 0 openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \341\t\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=1956992, ...}) = 0 mmap(NULL, 1972224, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff200493000 mprotect(0x7ff200529000, 1290240, PROT_NONE) = 0 mmap(0x7ff200529000, 987136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x96000) = 0x7ff200529000 mmap(0x7ff20061a000, 299008, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x187000) = 0x7ff20061a000 mmap(0x7ff200664000, 57344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d0000) = 0x7ff200664000 mmap(0x7ff200672000, 10240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff200672000 close(3) = 0 openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\323\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=1369384, ...}) = 0 mmap(NULL, 1368336, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff200344000 mmap(0x7ff200351000, 684032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7ff200351000 mmap(0x7ff2003f8000, 626688, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb4000) = 0x7ff2003f8000 mmap(0x7ff200491000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14c000) = 0x7ff200491000 close(3) = 0 openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3405\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=104984, ...}) = 0 mmap(NULL, 107592, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff200329000 mmap(0x7ff20032c000, 73728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7ff20032c000 mmap(0x7ff20033e000, 16384, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7ff20033e000 mmap(0x7ff200342000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7ff200342000 close(3) = 0 openat(AT_FDCWD, "/snap/core20/current/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300A\2\0\0\0\0\0"..., 832) = 832 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32 pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\346x\376T\245\322\302\t/\216G\353\v3\20^"..., 68, 880) = 68 fstat(3, {st_mode=S_IFREG|0755, st_size=2029592, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff200327000 pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784 pread64(3, "\4\0\0\0\20\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0", 32, 848) = 32 pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\346x\376T\245\322\302\t/\216G\353\v3\20^"..., 68, 880) = 68 mmap(NULL, 2037344, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7ff200135000 mmap(0x7ff200157000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22000) = 0x7ff200157000 mmap(0x7ff2002cf000, 319488, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19a000) = 0x7ff2002cf000 mmap(0x7ff20031d000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7ff20031d000 mmap(0x7ff200323000, 13920, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7ff200323000 close(3) = 0 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff200132000 arch_prctl(ARCH_SET_FS, 0x7ff200132740) = 0 mprotect(0x7ff20031d000, 16384, PROT_READ) = 0 mprotect(0x7ff200342000, 4096, PROT_READ) = 0 mprotect(0x7ff200491000, 4096, PROT_READ) = 0 mprotect(0x7ff200664000, 45056, PROT_READ) = 0 mprotect(0x7ff200679000, 4096, PROT_READ) = 0 mprotect(0x7ff200698000, 4096, PROT_READ) = 0 mprotect(0x564742457000, 4096, PROT_READ) = 0 mprotect(0x7ff2006cd000, 4096, PROT_READ) = 0 set_tid_address(0x7ff200132a10) = 478 set_robust_list(0x7ff200132a20, 24) = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7ff200681bf0, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7ff20068f420}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7ff200681c90, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7ff20068f420}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=81921024, rlim_max=RLIM64_INFINITY}) = 0 brk(NULL) = 0x564743463000 brk(0x564743484000) = 0x564743484000 futex(0x7ff2006726bc, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7ff2006726c8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0 readlink("/proc/self", "478", 4095) = 3 lstat("/proc/478", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 lstat("/proc/478/exe", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0 readlink("/proc/478/exe", "/mnt/d/Development/Visual Studio"..., 4095) = 102 lstat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/mnt/d", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/WebKitGtk.Test", {st_mode=S_IFREG|0777, st_size=77528, ...}) = 0 lstat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/mnt/d", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/WebKitGtk.Test", {st_mode=S_IFREG|0777, st_size=77528, ...}) = 0 lstat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/mnt/d", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/WebKitGtk.Test.dll", {st_mode=S_IFREG|0777, st_size=10240, ...}) = 0 access("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/libhostfxr.so", F_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/dotnet/install_location_x64", O_RDONLY) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/dotnet/install_location", O_RDONLY) = -1 ENOENT (No such file or directory) access("/usr/share/dotnet/host/fxr", F_OK) = -1 ENOENT (No such file or directory) lstat("/proc", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 lstat("/proc/self", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0 readlink("/proc/self", "478", 4095) = 3 lstat("/proc/478", {st_mode=S_IFDIR|0555, st_size=0, ...}) = 0 lstat("/proc/478/exe", {st_mode=S_IFLNK|0777, st_size=0, ...}) = 0 readlink("/proc/478/exe", "/mnt/d/Development/Visual Studio"..., 4095) = 102 lstat("/mnt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/mnt/d", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0 lstat("/mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/WebKitGtk.Test", {st_mode=S_IFREG|0777, st_size=77528, ...}) = 0 access("/etc/os-release", F_OK) = 0 openat(AT_FDCWD, "/etc/os-release", O_RDONLY) = 3 read(3, "PRETTY_NAME="Ubuntu 22.04.3 LTS""..., 8191) = 386 close(3) = 0 write(2, "You must install .NET to run thi"..., 422You must install .NET to run this application.
App: /mnt/d/Development/Visual Studio Projects/BlazorWebView/WebKitGtk.Test/bin/Debug/net8.0/WebKitGtk.Test Architecture: x64 App host version: 8.0.2 .NET location: Not found
Learn more: https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime: https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=linux-x64&os=ubuntu.22.04&apphost_version=8.0.2) = 422 write(2, "\n", 1 ) = 1 exit_group(-2147450749) = ? +++ exited with 131 +++
From: Mike @.> Sent: Thursday, February 15, 2024 7:12 PM To: JinShil/BlazorWebView @.> Cc: Michael Margolese @.>; Author @.> Subject: Re: [JinShil/BlazorWebView] Cannot run because DLLs not found (Issue #7)
I have a pi 5 i will configure this weekend and retry
Note that non a Pi 5, running Bookworm, you will likely encounter this issue: raspberrypi/linux#5750https://github.com/raspberrypi/linux/issues/5750. You can workaround that issue by adding webView.GetSettings().SetHardwareAccelerationPolicy(WebKit.HardwareAccelerationPolicy.Never);
I'm afraid I don't know why the missing DLL errors. Check the paths listed in the error message. If the file doesn't exist, then try to find which package in your package manager provides those files. If the files are in a different location, or have a different name, you may need to add a symlink to those files.
Which OS distribution are you using? 64-bit or 32-bit?
Reply to this email directly, view it on GitHubhttps://github.com/JinShil/BlazorWebView/issues/7#issuecomment-1947691131, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AYMHAOWWZXSRLEQ3O75TXSLYT3FAFAVCNFSM6AAAAABDKYZWW6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBXGY4TCMJTGE. You are receiving this because you authored the thread.
I tested on Ubuntu 23.10 (not WSL) and it worked fine. I installed the .NET 8.0.100 SDK using the method described at https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-2310
I'm afraid I don't have a way to reproduce your exact system at the moment.
Based on the paths that begin with /mnt/d/, it appears you're accessing a Windows file system from within WSL. Try to do a git clone to the native Linux file system instead.
This issue appears to have gone stale, so closing. Reopen if there is anything further, but please provide a way to reproduce the issue.