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

Eddie 2.24.2 portable and appimage refuses to start with mono error #132

Open
Optimus22Prime opened this issue Mar 11, 2024 · 1 comment

Comments

@Optimus22Prime
Copy link

Optimus22Prime commented Mar 11, 2024

OS: Calculate Linux (gentoo based binary distro),
system mono (avahi dep, can't be deleted):

*  dev-lang/mono
Latest version available: 6.12.0.199-r2
Latest version installed: 6.12.0.199-r2
Size of files: 297019 KiB
Homepage:      https://mono-project.com
Description:   Mono runtime and class libraries, a C# compiler/interpreter
License:       MIT LGPL-2.1 GPL-2 BSD-4 NPL-1.1 Ms-PL GPL-2-with-linking-exception IDPL
$ ./eddie-ui
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'System.Windows.Forms.WindowsFormsSynchronizationContext' threw an exception. ---> System.TypeInitializationException: The type initializer for 'System.Windows.Forms.XplatUI' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Sys' threw an exception.---> System.DllNotFoundException: /usr/lib/../lib/libmono-native.so assembly:<unknown assembly> type:<unknown type> member:(null)
at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
at Interop+Sys..cctor () [0x00000] in <c453bf849bb84e719dbec0475e99db95>:0
--- End of inner exception stack trace ---
at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath, System.Int32 fileType, Interop+ErrorInfo& errorInfo) [0x00007] in <c453bf849bb84e719dbec0475e99db95>:0
at System.IO.FileSystem.FileExists (System.ReadOnlySpan`1[T] fullPath) [0x00006] in <c453bf849bb84e719dbec0475e99db95>:0
at System.IO.File.Exists (System.String path) [0x00043] in <c453bf849bb84e719dbec0475e99db95>:0
at System.Reflection.Assembly.InternalGetSatelliteAssembly (System.String name, System.Globalization.CultureInfo culture, System.Version version, System.Boolean throwOnFileNotFound, System.Threading.StackCrawlMark& stackMark) [0x000c5] in <c453bf849bb84e719dbec0475e99db95>:0
at System.Resources.ManifestBasedResourceGroveler.GetSatelliteAssembly (System.Globalization.CultureInfo lookForCulture, System.Threading.StackCrawlMark& stackMark) [0x0005b] in <c453bf849bb84e719dbec0475e99db95>:0
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet (System.Globalization.CultureInfo culture, System.Collections.Generic.Dictionary`2[TKey,TValue] localResourceSets, System.Boolean tryParents, System.Boolean createIfNotExists, System.Threading.StackCrawlMark& stackMark) [0x00031] in <c453bf849bb84e719dbec0475e99db95>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo requestedCulture, System.Boolean createIfNotExists, System.Boolean tryParents, System.Threading.StackCrawlMark& stackMark) [0x00099] in <c453bf849bb84e719dbec0475e99db95>:0
at System.Resources.ResourceManager.InternalGetResourceSet (System.Globalization.CultureInfo culture, System.Boolean createIfNotExists, System.Boolean tryParents) [0x00002] in <c453bf849bb84e719dbec0475e99db95>:0
at System.Resources.ResourceManager.GetObject (System.String name, System.Globalization.CultureInfo culture, System.Boolean wrapUnmanagedMemStream) [0x00071] in <c453bf849bb84e719dbec0475e99db95>:0
at System.Resources.ResourceManager.GetObject (System.String name) [0x00000] in <c453bf849bb84e719dbec0475e99db95>:0
at System.Windows.Forms.KeyboardLayouts.LoadLayouts () [0x00010] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.KeyboardLayouts.get_Layouts () [0x00008] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.X11Keyboard.DetectLayout (System.Windows.Forms.KeyboardLayouts layouts) [0x0013a] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.X11Keyboard.EnsureLayoutInitialized () [0x0000f] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.X11Keyboard..ctor (System.IntPtr display, System.IntPtr clientWindow) [0x00070] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.XplatUIX11.SetDisplay (System.IntPtr display_handle) [0x00296] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.XplatUIX11..ctor () [0x00077] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.XplatUIX11.GetInstance () [0x00019] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.XplatUI..cctor () [0x000c0] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Theme.get_MenuAccessKeysUnderlined () [0x00000] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.SystemInformation.get_MenuAccessKeysUnderlined () [0x00005] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.Control..ctor () [0x000d6] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control..ctor()
at System.Windows.Forms.WindowsFormsSynchronizationContext..cctor () [0x00000] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
--- End of inner exception stack trace ---
at System.Windows.Forms.Control..ctor () [0x0000d] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.ScrollableControl..ctor () [0x00000] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.ContainerControl..ctor () [0x0000e] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.Form..ctor () [0x00012] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (System.Windows.Forms.IWin32Window owner, System.String text, System.String caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon, System.Boolean displayHelpButton) [0x0000c] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at System.Windows.Forms.MessageBox+MessageBoxForm..ctor (System.Windows.Forms.IWin32Window owner, System.String text, System.String caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon) [0x00000] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at (wrapper remoting-invoke-with-check) System.Windows.Forms.MessageBox+MessageBoxForm..ctor(System.Windows.Forms.IWin32Window,string,string,System.Windows.Forms.MessageBoxButtons,System.Windows.Forms.MessageBoxIcon)
at System.Windows.Forms.MessageBox.Show (System.String text, System.String caption, System.Windows.Forms.MessageBoxButtons buttons, System.Windows.Forms.MessageBoxIcon icon) [0x00000] in <1ad3b9c5e8484f3cb4aaaf843739b786>:0
at Eddie.Forms.Linux.Program.Main () [0x000cc] in <5cf359e94e6546de9dec4a0577592b7d>:0
@jeandestouches
Copy link

jeandestouches commented Jun 24, 2024

Hello, I use gentoo too (no-multilib profile), mono installs in /usr/lib64/ but eddie-ui expects /usr/lib/ only...
System.DllNotFoundException: /usr/lib/../lib/libmono-native.so

As an experiment, I symlinked those libs to /usr/lib/

ln -s /usr/lib64/libmono-native.so.0.0.0 /usr/lib/libmono-native.so
ln -s /usr/lib64/libMonoPosixHelper.so /usr/lib/libMonoPosixHelper.so

and now eddie-ui beta 2.24.2 (portable) starts without issue.
I hope it will be fixed soon in eddie-ui.

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