DrewNaylor / guinget

Unofficial GUI for Microsoft's Windows Package Manager (winget). Kinda like Synaptic, but for Windows. Not associated with either Microsoft or the Synaptic project, and Microsoft does not endorse this software.
Apache License 2.0
136 stars 3 forks source link

unable to open database file #138

Open 4-FLOSS-Free-Libre-Open-Source-Software opened 2 years ago

4-FLOSS-Free-Libre-Open-Source-Software commented 2 years ago
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 14: 'unable to open database file'.
   bei Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   bei Microsoft.Data.Sqlite.SqliteConnection.Open()
   bei libguinget.PackageListTools.GetPackageDetailsTableFromSqliteDB()
   bei guinget.aaformMainWindow.VB$StateMachine_4_AddPackageEntryToListAsync.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   bei guinget.aaformMainWindow.VB$StateMachine_23_UpdatePackageListBuiltinAsync.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   bei guinget.aaformMainWindow.VB$StateMachine_24_BeginRefreshCacheAsync.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   bei guinget.aaformMainWindow.VB$StateMachine_26_RefreshCacheMenuButton_Click.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
   bei System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)

************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4420.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
guinget
    Assembly-Version: 0.3.0.0.
    Win32-Version: 0.3.0.0.
    CodeBase: file:///C:/Users/username/AppData/Local/Programs/guinget/guinget.exe.
----------------------------------------
Microsoft.VisualBasic
    Assembly-Version: 10.0.0.0.
    Win32-Version: 14.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
----------------------------------------
System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4360.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4455.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4400.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4395.0 built by: NET48REL1LAST_B.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Configuration
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4341.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Runtime.Remoting
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
Accessibility
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll.
----------------------------------------
libguinget
    Assembly-Version: 0.3.0.0.
    Win32-Version: 0.3.0.0.
    CodeBase: file:///C:/Users/username/AppData/Local/Programs/guinget/lib/libguinget.DLL.
----------------------------------------
System.Net.Http
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll.
----------------------------------------
System.IO.Compression
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.dll.
----------------------------------------
System.IO.Compression.FileSystem
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.FileSystem/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.FileSystem.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------
System.IO.Compression.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0 built by: NET48REL1.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.IO.Compression.resources.dll.
----------------------------------------
System.Web
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4341.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll.
----------------------------------------
System.Data
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4455.0 built by: NET48REL1LAST_C.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll.
----------------------------------------
Microsoft.Data.Sqlite
    Assembly-Version: 5.0.7.0.
    Win32-Version: 5.0.721.26102.
    CodeBase: file:///C:/Users/username/AppData/Local/Programs/guinget/lib/Microsoft.Data.Sqlite.DLL.
----------------------------------------
netstandard
    Assembly-Version: 2.0.0.0.
    Win32-Version: 4.8.4161.0.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/netstandard/v4.0_2.0.0.0__cc7b13ffcd2ddd51/netstandard.dll.
----------------------------------------
SQLitePCLRaw.core
    Assembly-Version: 2.0.4.976.
    Win32-Version: 2.0.4.976.
    CodeBase: file:///C:/Users/username/AppData/Local/Programs/guinget/lib/SQLitePCLRaw.core.DLL.
----------------------------------------
SQLitePCLRaw.batteries_v2
    Assembly-Version: 2.0.4.976.
    Win32-Version: 2.0.4.976.
    CodeBase: file:///C:/Users/username/AppData/Local/Programs/guinget/lib/SQLitePCLRaw.batteries_v2.DLL.
----------------------------------------
SQLitePCLRaw.provider.dynamic_cdecl
    Assembly-Version: 2.0.4.976.
    Win32-Version: 2.0.4.976.
    CodeBase: file:///C:/Users/username/AppData/Local/Programs/guinget/lib/SQLitePCLRaw.provider.dynamic_cdecl.DLL.
----------------------------------------
System.Memory
    Assembly-Version: 4.0.1.1.
    Win32-Version: 4.6.28619.01.
    CodeBase: file:///C:/Users/username/AppData/Local/Programs/guinget/lib/System.Memory.DLL.
----------------------------------------
SQLitePCLRaw.nativelibrary
    Assembly-Version: 2.0.4.976.
    Win32-Version: 2.0.4.976.
    CodeBase: file:///C:/Users/username/AppData/Local/Programs/guinget/lib/SQLitePCLRaw.nativelibrary.DLL.
----------------------------------------
System.Runtime.InteropServices.RuntimeInformation
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices.RuntimeInformation/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.RuntimeInformation.dll.
----------------------------------------
Windows.Storage
    Assembly-Version: 255.255.255.255.
    Win32-Version: 10.0.10011.16384.
    CodeBase: file:///C:/WINDOWS/SysNative/WinMetadata/Windows.Storage.winmd.
----------------------------------------
System.Runtime
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll.
----------------------------------------
Windows.Foundation
    Assembly-Version: 255.255.255.255.
    Win32-Version: 10.0.10011.16384.
    CodeBase: file:///C:/WINDOWS/SysNative/WinMetadata/Windows.Foundation.winmd.
----------------------------------------
System.Runtime.InteropServices.WindowsRuntime
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices.WindowsRuntime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.WindowsRuntime.dll.
----------------------------------------
System.ValueTuple
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.8.4161.0.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ValueTuple/v4.0_4.0.0.0__cc7b13ffcd2ddd51/System.ValueTuple.dll.
----------------------------------------
System.Runtime.CompilerServices.Unsafe
    Assembly-Version: 5.0.0.0.
    Win32-Version: 5.0.20.51904.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.CompilerServices.Unsafe/v4.0_5.0.0.0__b03f5f7f11d50a3a/System.Runtime.CompilerServices.Unsafe.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

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

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
DrewNaylor commented 2 years ago

I'll take a closer look at this later tonight (Saturday) or tomorrow (Sunday) as it's currently 5 AM. In the meantime, I'd like to ask what happened before the error appeared, and if trying again fixes the issue.

DrewNaylor commented 2 years ago

Sorry I took so long to respond again for anything that I may have figured out. Tried v0.3 in a VM running what I think is a somewhat-recent version of Windows 10 but installed per-user, and it didn't have any issues with this. Someone on SO said they had the library versions mixed up, but I'm pretty sure they're all equal. The last idea I have is maybe something couldn't properly extract or find the database due to an unlikely bug with Windows in German, but I haven't tested that yet. If that's the case, it may be out of my range to fix, unless I'm using characters that are incompatible by mistake. In that case, I'll try to fix it.

Edit: I looked at the output again, and it shouldn't be Windows in German path issues since I don't see any Unicode characters in the paths. Maybe (hopefully) it's just a rare, random bug of Windows.

DrewNaylor commented 2 years ago

My latest guess (well, more like a few months old guess kinda, because I just realized that maybe a change I made to fix another bug will fix this) is it's related to not properly closing the database file after putting important info into the datatable for loading into the package list, but I don't know why the exception was unhandled. Hopefully disposing the database object and clearing its pools when it's no longer needed in v0.3.0.1 and v0.4 will end up getting rid of this bug.