Nexus-Mods / NexusMods.App

Home of the development of the Nexus Mods App
https://nexus-mods.github.io/NexusMods.App/
GNU General Public License v3.0
978 stars 47 forks source link

Won't launch on Kubuntu (0.5.3) #1765

Closed LiamDawe closed 3 months ago

LiamDawe commented 3 months ago

UPDATE: After removing the config folders for it in both /.local/state and /.local/share the app did then launch. So some sort of config issue with the new version and using the the configs of the old version I assume.

Main bug report: The latest 0.5.3 release seems to not actually launch on Kubuntu 24.04

Here's what it showed in terminal:

liam@liam-kub:~$ /home/liam/Downloads/NexusMods.App.x8664.AppImage Unhandled exception. System.AggregateException: One or more errors occurred. (One or more hosted services failed to start. (Object reference not set to an instance of an object.) (Object reference not set to an instance of an object.)) ---> System.AggregateException: One or more hosted services failed to start. (Object reference not set to an instance of an object.) (Object reference not set to an instance of an object.) ---> System.NullReferenceException: Object reference not set to an instance of an object. at NexusMods.StandardGameLocators.ManuallyAddedGame.FindByGameDomain(IDb db, GameDomain value) in //src/NexusMods.StandardGameLocators/obj/Release/net8.0/NexusMods.MnemonicDB.SourceGenerator/NexusMods.MnemonicDB.SourceGenerator.ModelGenerator/NexusMods_StandardGameLocatorsManuallyAddedGame.Generated.cs:line 39 at NexusMods.StandardGameLocators.ManuallyAddedLocator.Find(ILocatableGame game) in //src/NexusMods.StandardGameLocators/ManuallyAddedLocator.cs:line 73 at NexusMods.DataModel.GameRegistry.FindInstallations()+MoveNext() in //src/NexusMods.DataModel/GameRegistry/GameRegistry.cs:line 136 at System.Collections.Generic.AsyncEnumerableHelpers.ToSet[T](IAsyncEnumerable1 source, IEqualityComparer1 comparer, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerableHelpers.cs:line 108 at System.Collections.Generic.AsyncEnumerableHelpers.ToSet[T](IAsyncEnumerable1 source, IEqualityComparer1 comparer, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/AsyncEnumerableHelpers.cs:line 108 at System.Linq.AsyncEnumerable.DistinctAsyncIterator`1.ToArrayAsync(CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Distinct.cs:line 56 at NexusMods.DataModel.GameRegistry.Startup(CancellationToken token) in //src/NexusMods.DataModel/GameRegistry/GameRegistry.cs:line 69 at NexusMods.DataModel.GameRegistry.StartAsync(CancellationToken cancellationToken) in //src/NexusMods.DataModel/GameRegistry/GameRegistry.cs:line 151 at Microsoft.Extensions.Hosting.Internal.Host.b15_1(IHostedService service, CancellationToken token) --- End of inner exception stack trace --- at Microsoft.Extensions.Hosting.Internal.Host.g__LogAndRethrow|15_3(<>cDisplayClass150&) at Microsoft.Extensions.Hosting.Internal.Host.StartAsync(CancellationToken cancellationToken) ---> (Inner Exception #1) System.NullReferenceException: Object reference not set to an instance of an object. at NexusMods.Networking.Downloaders.Tasks.State.DownloaderState.All(IDb db) in //src/Networking/NexusMods.Networking.Downloaders/obj/Release/net8.0/NexusMods.MnemonicDB.SourceGenerator/NexusMods.MnemonicDB.SourceGenerator.ModelGenerator/NexusMods_Networking_Downloaders_Tasks_StateDownloaderState.Generated.cs:line 81 at NexusMods.Networking.Downloaders.DownloadService.StartAsync(CancellationToken cancellationToken) in //src/Networking/NexusMods.Networking.Downloaders/DownloadService.cs:line 162 at Microsoft.Extensions.Hosting.Internal.Host.b__15_1(IHostedService service, CancellationToken token)<---

--- End of inner exception stack trace --- at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.Wait(TimeSpan timeout, CancellationToken cancellationToken) at NexusMods.App.Program.Main(String[] args) in /_/src/NexusMods.App/Program.cs:line 63 Aborted (core dumped)

Only log it gave was this: nexusmods.app.main.current.log

Sewer56 commented 3 months ago

I'm guessing we probably made an unintended breaking change from last release. The update was meant to be breaking in any case; so it's within expectation.

Next release will be breaking too.


Consider running ./NexusMods.App uninstall-app to clean up after the App before upgrading to a new version.

erri120 commented 3 months ago

I should note, after removing the config folders for it in both /.local/state and /.local/share the app did then launch. So some sort of config issue with the new version and using the the configs of the old version I assume.

The new release is expected to require a clean installation. We haven't added support for migrations yet.