question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

EntryPointNotFound with x86 binary on x64 (Linux)

See original GitHub issue

I’m running Void Linux and have tried the latest release binary as well as compiling it manually with 32bit versions of mono, msbuild, and libgdiplus with never any luck. I’m sure it’s as simple as me just missing a dependency but there’s no mention of them and I really know nothing about .NET

System.EntryPointNotFoundException: MessageBeep
  at (wrapper managed-to-native) Microsoft.SqlServer.MessageBox.ExceptionMessageBoxForm.MessageBeep(Microsoft.SqlServer.MessageBox.ExceptionMessageBoxForm/BeepType)
  at Microsoft.SqlServer.MessageBox.ExceptionMessageBoxForm.Beep () [0x00030] in <ad707fea65384e9586f402d5c8889649>:0
  at Microsoft.SqlServer.MessageBox.ExceptionMessageBoxForm.NewMessageBoxForm_Load (System.Object sender, System.EventArgs e) [0x00026] in <ad707fea65384e9586f402d5c8889649>:0
  at System.Windows.Forms.Form.OnLoad (System.EventArgs e) [0x0001f] in <9835c66fd5474f78b8153be779aa52c8>:0
  at System.Windows.Forms.Form.OnLoadInternal (System.EventArgs e) [0x00023] in <9835c66fd5474f78b8153be779aa52c8>:0

Unhandled Exception:
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Microsoft.SqlServer.MessageBox.ExceptionMessageBoxForm'.
  at System.Windows.Forms.Control.CreateHandle () [0x00013] in <9835c66fd5474f78b8153be779aa52c8>:0
  at System.Windows.Forms.Form.CreateHandle () [0x00000] in <9835c66fd5474f78b8153be779aa52c8>:0
  at System.Windows.Forms.Control.get_Handle () [0x00022] in <9835c66fd5474f78b8153be779aa52c8>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.get_Handle()
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00090] in <9835c66fd5474f78b8153be779aa52c8>:0
  at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window owner) [0x001b7] in <9835c66fd5474f78b8153be779aa52c8>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
  at Microsoft.SqlServer.MessageBox.ExceptionMessageBox.Show (System.Windows.Forms.IWin32Window owner) [0x0040f] in <ad707fea65384e9586f402d5c8889649>:0
  at ReClassNET.Program.ShowException (System.Exception ex) [0x0001f] in <278374da9bc743a0a12245dbbb6e842d>:0
  at ReClassNET.Program.Main (System.String[] args) [0x000c0] in <278374da9bc743a0a12245dbbb6e842d>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'Microsoft.SqlServer.MessageBox.ExceptionMessageBoxForm'.
  at System.Windows.Forms.Control.CreateHandle () [0x00013] in <9835c66fd5474f78b8153be779aa52c8>:0
  at System.Windows.Forms.Form.CreateHandle () [0x00000] in <9835c66fd5474f78b8153be779aa52c8>:0
  at System.Windows.Forms.Control.get_Handle () [0x00022] in <9835c66fd5474f78b8153be779aa52c8>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control.get_Handle()
  at System.Windows.Forms.Application.RunLoop (System.Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00090] in <9835c66fd5474f78b8153be779aa52c8>:0
  at System.Windows.Forms.Form.ShowDialog (System.Windows.Forms.IWin32Window owner) [0x001b7] in <9835c66fd5474f78b8153be779aa52c8>:0
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Form.ShowDialog(System.Windows.Forms.IWin32Window)
  at Microsoft.SqlServer.MessageBox.ExceptionMessageBox.Show (System.Windows.Forms.IWin32Window owner) [0x0040f] in <ad707fea65384e9586f402d5c8889649>:0
  at ReClassNET.Program.ShowException (System.Exception ex) [0x0001f] in <278374da9bc743a0a12245dbbb6e842d>:0
  at ReClassNET.Program.Main (System.String[] args) [0x000c0] in <278374da9bc743a0a12245dbbb6e842d>:0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
unresolvedsymbolcommented, Aug 9, 2019

Welp… After an endless time spent recompiling it was as simple as only installing 32bit mono (XBPS_ARCH=i686 sudo -E xbps-install -Uf mono on my distro) and changing to the x86 directory before running it. Hopefully this helps someone in the future though lol.

0reactions
KN4CK3Rcommented, Sep 6, 2019

Could you try if this change helps?

diff --git "a/ReClass.NET/Program.cs" "b/ReClass.NET/Program.cs"
index 2a65548..38e8091 100644
--- "a/ReClass.NET/Program.cs"
+++ "b/ReClass.NET/Program.cs"
@@ -99,6 +99,7 @@ namespace ReClassNET
 
 			var msg = new ExceptionMessageBox(ex)
 			{
+				Beep = false,
 				ShowToolBar = true,
 				Symbol = ExceptionMessageBoxSymbol.Error
 			};
Read more comments on GitHub >

github_iconTop Results From Across the Web

How does x86 / x64 binary compatibility work on Linux?
It depends on the GNU/Linux distribution in question, and whether relevant packages for 32-bit compatibility have been installed.
Read more >
How to determine if a linux binary file is 32-bit or 64-bit?
The answer to the question in the title is right there at the beginning of the output: ELF 64-bit LSB executable, x86-64.
Read more >
How to Compile 32-bit Binary on 64-bit Linux System
A practical guide to compiling 32-bit binaries on 64-bit Linux systems.
Read more >
How to compile a 32-bit binary on a 64-bit linux machine ...
In short: use the -m32 flag to compile a 32-bit binary. Also, make sure that you have the 32-bit versions of all required...
Read more >
Qsturng ado not found. It contains only 3 parameters. It seems a
Qsturng ado not found. It contains only 3 parameters. It seems as though QtCore 1 Answer. Allversions below are equivalent; the qOverload one...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found