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

Webview crashes on mac #267

Closed
query-wow opened this issue Sep 29, 2022 · 3 comments
Closed

Webview crashes on mac #267

query-wow opened this issue Sep 29, 2022 · 3 comments

Comments

@query-wow
Copy link

Hi, recently i've been getting a few crashes on mac OS and it only happens on some macs. The one i work with, it works just fine.
I sent the crash log in hopes for some pointers towards the solution as i've been trying to find the root cause of the issue.

crash_log.txt

@joaompneves
Copy link
Collaborator

Hi,
Looking at the log, its a problem creating an Avalonia Window. I'm wondering why the window is being created on a chrome IO thread. In order to you get more information you need to use CEF debug symbols do cedode the stacks (https://www.chromium.org/developers/decoding-crash-dumps/).

@query-wow
Copy link
Author

query-wow commented Oct 3, 2022

Been trying to debug this using the latest version but i'm getting issues with the DLLs on the mac M1

System.TypeInitializationException: "The type initializer for 'Xilium.CefGlue.Avalonia.AvaloniaCefBrowser' threw an exception." ---> System.DllNotFoundException: "Unable to load shared library 'libcef' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable: dlopen(liblibcef, 0x0001): tried: 'liblibcef' (no such file), '/usr/local/lib/liblibcef' (no such file), '/usr/lib/liblibcef' (no such file), '/Users/mobileapps/Documents/GIT/sync-tool/synctool/bin/Debug/net6.0/liblibcef' (no such file)"
  at at Xilium.CefGlue.Interop.libcef.api_hash(Int32 entry)\n   at Xilium.CefGlue.CefRuntime.CheckVersionByApiHash()\n   at Xilium.CefGlue.CefRuntime.Load(String path)\n   at Xilium.CefGlue.Common.CefRuntimeLoader.InternalInitialize(CefSettings settings, KeyValuePair`2[] flags, CustomScheme[] customSchemes, BrowserProcessHandler browserProcessHandler)\n   at Xilium.CefGlue.Common.CefRuntimeLoader.Load(BrowserProcessHandler browserProcessHandler)\n   at Xilium.CefGlue.Avalonia.AvaloniaCefBrowser..cctor()
  --- End of inner exception stack trace ---
  at WebViewControl.WebView.Initialize()\n   at SyncTool.MainWindow.!XamlIlPopulate(IServiceProvider , MainWindow ) in SyncTool.MainWindow.xaml:line 409\n   at SyncTool.MainWindow.!XamlIlPopulateTrampoline(MainWindow )\n   at SyncTool.MainWindow..ctor() in /Users/mobileapps/Documents/GIT/sync-tool/synctool/MainWindow.xaml.cs:line 28\n   at SyncTool.App.OnFrameworkInitializationCompleted() in /Users/mobileapps/Documents/GIT/sync-tool/IdealistaExport/App.xaml.cs:line 53\n   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime[T](T builder, String[] args, ShutdownMode shutdownMode) in /_/src/Avalonia.Controls/ApplicationLifetimes/ClassicDesktopStyleApplicationLifetime.cs:line 208\n   at SyncTool.Program.Main(String[] args) in /Users/mobileapps/Documents/GIT/sync-tool/synctool/Program.cs:8

@query-wow
Copy link
Author

Found the crash issue, i was getting a resource to respond using the resource handler without using the IAssetLoader

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

2 participants