mihaifm / HIBPOfflineCheck

Keepass plugin that performs offline and online checks against HaveIBeenPwned passwords
Other
317 stars 17 forks source link

I encounter crash. #41

Closed akira345 closed 3 years ago

akira345 commented 3 years ago

KeePass version: 2.46 + Japanese language HIBPOfflineCheck version: 1.7.2.0 OS: Windows 10 Pro(2004) Build 19041.508

Hi. I encount crash.

Entry -> Have I been pwned? -> Check

無題クリップ_100120_080710_AM

crash report is hear.

Just-In-Time (JIT) デバッグを呼び出すための詳細については、
ダイアログ ボックスではなく、このメッセージの最後を参照してください。

************** 例外テキスト **************
System.NullReferenceException: オブジェクト参照がオブジェクト インスタンスに設定されていません。
   場所 HIBPOfflineCheck.HIBPOfflineColumnProv.<OnMenuHIBP>d__c.MoveNext()
--- 直前に例外がスローされた場所からのスタック トレースの終わり ---
   場所 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

************** 読み込まれたアセンブリ **************
mscorlib
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4220.0 built by: NET48REL1LAST_C
    コードベース:file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
KeePass
    アセンブリ バージョン:2.46.0.18879
    Win32 バージョン:2.46.0.0
    コードベース:file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.exe
----------------------------------------
System
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4200.0 built by: NET48REL1LAST_C
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4200.0 built by: NET48REL1LAST_C
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4084.0 built by: NET48REL1
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4190.0 built by: NET48REL1LAST_B
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4220.0 built by: NET48REL1LAST_C
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4084.0 built by: NET48REL1
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Security
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4084.0 built by: NET48REL1
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Security/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Security.dll
----------------------------------------
KeePass.XmlSerializers
    アセンブリ バージョン:2.46.0.18879
    Win32 バージョン:2.46.0.18879
    コードベース:file:///C:/Program%20Files%20(x86)/KeePass%20Password%20Safe%202/KeePass.XmlSerializers.DLL
----------------------------------------
System.Windows.Forms.resources
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4084.0 built by: NET48REL1
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_ja_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
System.resources
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4084.0 built by: NET48REL1
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_ja_b77a5c561934e089/System.resources.dll
----------------------------------------
HIBPOfflineCheck
    アセンブリ バージョン:1.7.2.0
    Win32 バージョン:1.7.2.0
    コードベース:file:///C:/Users/akira/AppData/Local/KeePass/PluginCache/Lr3N8vo4QAYqtTox35Ag/HIBPOfflineCheck.dll
----------------------------------------
mscorlib.resources
    アセンブリ バージョン:4.0.0.0
    Win32 バージョン:4.8.4084.0 built by: NET48REL1
    コードベース:file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_ja_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** JIT デバッグ **************
Just-In-Time (JIT) デバッグを有効にするには、このアプリケーション、
またはコンピューター (machine.config) の構成ファイルの jitDebugging 
値を system.windows.forms セクションで設定しなければなりません。
アプリケーションはまた、デバッグを有効にしてコンパイルされなければ
なりません。

例:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

JIT デバッグが有効なときは、このダイアログ ボックスで処理するよりも、
ハンドルされていない例外はすべてコンピューターに登録された
JIT デバッガーに設定されなければなりません。
akira345 commented 3 years ago

I use it plugin only.

image

and the same is true even if you switch to English.

mihaifm commented 3 years ago

Thanks for reporting this, I'll try to replicate it.

mihaifm commented 3 years ago

Hi

Unfortunately I could not replicate the crash. I have the same Windows version and downloaded the Japanese language pack, but it doesn't crash for me.

Maybe try reinstalling .NET framework, I'm not even sure what to suggest.

akira345 commented 3 years ago

Hi. Thank you for confirmation. I tried to reproduce it using Microsoft's VM (https://developer.microsoft.com/en-US/windows/downloads/virtual-machines/) to make the environment the same. I also tried crashing in various ways to try more conditions. I will attach a video recording my work.

movie.zip

mihaifm commented 3 years ago

Thanks, I was able to reproduce it using your video. It seems like it crashes when no entry is selected. Typically you would select an entry before checking the password.

I'll fix this shortly. Great bug report by the way.

mihaifm commented 3 years ago

Fixed by dbcf7b4ac11ae99bc2d1534cd38410d16840b6d6 Can you get the latest release and check again?

akira345 commented 3 years ago

HI. Thanks for fix. I have confirmed that it works fine.

mihaifm commented 3 years ago

Cool. Thanks again for the detailed bug report.