NullReferenceException when capturing region

Description

I got this error a couple of times when trying to capture a window from a VB6 app with an open nested context menu.

Software version: 1.3.55 - e089fff547 (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2020-03-24 11:20:06 -04:00
OS: Windows 10 1909 x64 build 18363
GDI object count: 102
User object count: 58

Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.

Stack:
at ZXing.Datamatrix.Internal.BitMatrixParser..ctor(BitMatrix bitMatrix)
at ZXing.Datamatrix.Internal.Decoder.decode(BitMatrix bits)
at ZXing.Datamatrix.DataMatrixReader.decode(BinaryBitmap image, IDictionary`2 hints)
at ZXing.MultiFormatReader.decodeInternal(BinaryBitmap image)
at ZXing.BarcodeReaderGeneric.Decode(LuminanceSource luminanceSource)
at Greenshot.Processors.ZXingQrProcessor.ProcessCapture(ISurface surface, ICaptureDetails captureDetails) in D:\a\1\s\Greenshot\Processors\ZXingQrProcessor.cs:line 41
at Greenshot.Helpers.CaptureHelper.HandleCapture() in D:\a\1\s\Greenshot\Helpers\CaptureHelper.cs:line 678
at Greenshot.Helpers.CaptureHelper.CaptureWithFeedback() in D:\a\1\s\Greenshot\Helpers\CaptureHelper.cs:line 1033
at Greenshot.Helpers.CaptureHelper.MakeCapture() in D:\a\1\s\Greenshot\Helpers\CaptureHelper.cs:line 443
at Greenshot.Helpers.CaptureHelper.CaptureRegion(Boolean captureMouse) in D:\a\1\s\Greenshot\Helpers\CaptureHelper.cs:line 96
at GreenshotPlugin.Controls.HotkeyControl.HandleMessages(Message& m) in D:\a\1\s\GreenshotPlugin\Controls\HotkeyControl.cs:line 512
at Greenshot.MainForm.WndProc(Message& m) in D:\a\1\s\Greenshot\Forms\MainForm.cs:line 502
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Configuration dump:

Environment

Windows 10 1909

Activity

Show:
Brian Baker
March 24, 2020, 3:50 PM

This seems to repro only when the second level content menu is open and the mouse cursor is in the second one. It occurred regardless of whether the “capture mouse pointer” setting was enabled.

Assignee

Unassigned

Reporter

Brian Baker

Affects versions

Components

Priority

Major

Labels

None
Configure