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.

Compability with Linux

See original GitHub issue

Hello! So I want to use this scanner on my Linux Mint 21.1 computer. I tried running the program with Wine, but it gives off this error:

Unhandled Exception:
System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Drawing.Font.CreateFont (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00011] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.String systemName) [0x00000] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Windows.Forms.Control.get_DefaultFont () [0x0000e] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.Control.get_Font () [0x00088] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.Control.get_FontHeight () [0x000a9] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.TextBoxBase.get_PreferredHeight () [0x00001] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.TextBoxBase.get_DefaultSize () [0x00001] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.Control..ctor (System.Boolean autoInstallSyncContext) [0x000e3] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.Control..ctor () [0x00000] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.TextBoxBase..ctor () [0x0003a] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.TextBox..ctor () [0x0004a] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox..ctor()
  at JarInfectionScanner.Form1.InitializeComponent () [0x00016] in <30c8316a67b642a994f453a2ba918268>:0 
  at JarInfectionScanner.Form1..ctor () [0x00006] in <30c8316a67b642a994f453a2ba918268>:0 
  at (wrapper remoting-invoke-with-check) JarInfectionScanner.Form1..ctor()
  at JarInfectionScanner.Program.Main () [0x0000b] in <30c8316a67b642a994f453a2ba918268>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: The requested FontFamily could not be found [GDI+ status: FontFamilyNotFound]
  at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x001ce] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Drawing.FontFamily..ctor (System.Drawing.Text.GenericFontFamilies genericFamily) [0x0004d] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.FontFamily..ctor(System.Drawing.Text.GenericFontFamilies)
  at System.Drawing.FontFamily.get_GenericSansSerif () [0x00000] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Drawing.Font.CreateFont (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte charSet, System.Boolean isVertical) [0x00011] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.Drawing.FontStyle style, System.Drawing.GraphicsUnit unit, System.Byte gdiCharSet, System.Boolean gdiVerticalFont) [0x00011] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Drawing.Font..ctor (System.String familyName, System.Single emSize, System.String systemName) [0x00000] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at (wrapper remoting-invoke-with-check) System.Drawing.Font..ctor(string,single,string)
  at System.Drawing.SystemFonts.get_DefaultFont () [0x00000] in <bfbb50e127a74386baaf6a1ce3e1493f>:0 
  at System.Windows.Forms.Control.get_DefaultFont () [0x0000e] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.Control.get_Font () [0x00088] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.Control.get_FontHeight () [0x000a9] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.TextBoxBase.get_PreferredHeight () [0x00001] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.TextBoxBase.get_DefaultSize () [0x00001] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.Control..ctor (System.Boolean autoInstallSyncContext) [0x000e3] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.Control..ctor () [0x00000] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.TextBoxBase..ctor () [0x0003a] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at System.Windows.Forms.TextBox..ctor () [0x0004a] in <5ea26500d4d340168c8a375e356ca0ac>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.TextBox..ctor()
  at JarInfectionScanner.Form1.InitializeComponent () [0x00016] in <30c8316a67b642a994f453a2ba918268>:0 
  at JarInfectionScanner.Form1..ctor () [0x00006] in <30c8316a67b642a994f453a2ba918268>:0 
  at (wrapper remoting-invoke-with-check) JarInfectionScanner.Form1..ctor()

Can you do something about it? Or perhaps there’s a problem on my side? Thanks.

Issue Analytics

  • State:open
  • Created 3 months ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

2reactions
ivanpucommented, Jun 9, 2023

I couldn’t make it run on my computer, so I’ve converted the check to Python: https://gist.github.com/ivanpu/c5347bf107fa900ac79f1fcf2f056e7c

DISCLAIMER: It didn’t find any infected jars on my computer, so I can’t guarantee that it actually finds stage-0 infection. I assume that my code is correct if the code in this repo is correct.

2reactions
Vetpetmoncommented, Jun 8, 2023

Would be best if we had a native linux version of this detector, for now, if you’re a mod dev on Linux, hold off until the app is made into a linux binary, or have a windows user in your dev team run the checker for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Linux Hardware Database
... Linux-powered computers over the world and help people to collaboratively debug hardware related issues, check for Linux-compatibility and find drivers.
Read more >
Linux Compatible
Daily Linux news, information, hardware/software compatibility lists and tips and tricks.
Read more >
How to find out if your PC is compatible with Linux
There's a lot of information out there about whether specific computers are compatible with Linux. Much of this is in dedicated hardware ...
Read more >
Is my hardware Linux-compatible? Find out here
Almost all motherboards, hard drives, keyboards, mice, network cards, DVD drives, and flash drives should work with GNU/Linux without any ...
Read more >
Linux Compatibility on the Framework Laptop
We and members of the Framework Community Linux sub-forum have been testing a range of Linux distributions for compatibility with the Framework Laptop...
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