Jeshibu / Playnite-OculusLibrary

Plugin for Playnite to allow Oculus game import
3 stars 1 forks source link

Failed to Load Error #1

Closed Snipe3000 closed 11 months ago

Snipe3000 commented 1 year ago

I'm getting an error when I load this extension:

Extension "Oculus Library Importer" Failed to load properly.

Caddie2908 commented 1 year ago

Same here. Oculus app was opened, but games and programs will not be found by playnite launcher

Jock90 commented 1 year ago

I'm getting the same error. Can the developer please check this out? The Playnite error details are...

Playnite 10.16

Addons/Installed/Libraries I see an entry "Oculus Library Importer" and clicking on it displays "Extension failed to load properly".

In the playnite "extensions.log" I see... 30-05 11:06:09.010|ERROR|OculusLibrary#OculusLibraryPlugin:Error in OculusLibraryPlugin constructor System.ArgumentNullException: Value cannot be null. Parameter name: path1 at System.IO.Path.Combine(String path1, String path2) at OculusLibrary.OculusLibrarySettingsViewModel.SeedRevivePath() in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\OculusLibrarySettings.cs:line 53 at OculusLibrary.OculusLibrarySettingsViewModel..ctor(OculusLibraryPlugin plugin, IPlayniteAPI playniteApi) in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\OculusLibrarySettings.cs:line 39 at OculusLibrary.OculusLibraryPlugin..ctor(IPlayniteAPI api) in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\OculusLibraryPlugin.cs:line 42

In the "playnite.log" file I see... 30-05 11:06:09.030|ERROR|ExtensionFactory:Failed to load plugin: Oculus Library Importer System.ArgumentNullException: Value cannot be null. Parameter name: path1 at System.IO.Path.Combine(String path1, String path2) at OculusLibrary.OculusLibrarySettingsViewModel.SeedRevivePath() in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\OculusLibrarySettings.cs:line 53 at OculusLibrary.OculusLibrarySettingsViewModel..ctor(OculusLibraryPlugin plugin, IPlayniteAPI playniteApi) in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\OculusLibrarySettings.cs:line 39 at OculusLibrary.OculusLibraryPlugin..ctor(IPlayniteAPI api) in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\OculusLibraryPlugin.cs:line 51

Jeshibu commented 11 months ago

Completely missed this, sorry. This should be fixed as of 2.4.1.

Snipe3000 commented 11 months ago

Even after the update, it still errors out with 2.4.1 installed

25-10 00:12:31.849|INFO |MainViewModelBase:Importing games from Oculus plugin. 25-10 00:12:32.221|ERROR|MainViewModelBase:Failed to import games from plugin: Oculus System.Net.WebException: The request was aborted: The connection was closed unexpectedly. at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.HttpWebRequest.MakeMemoryStream(Stream stream) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at OculusLibrary.DataExtraction.WebClientWrapper.d5.MoveNext() in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\DataExtraction\WebClientWrapper.cs:line 33 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at OculusLibrary.DataExtraction.OculusApiScraper.d6.MoveNext() in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\DataExtraction\OculusApiScraper.cs:line 33 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at OculusLibrary.DataExtraction.OculusApiScraper.d__7.MoveNext() in D:\a\Playnite-OculusLibrary\Playnite-OculusLibrary\OculusLibrary\DataExtraction\OculusApiScraper.cs:line 40

Jeshibu commented 11 months ago

Thanks @Snipe3000 - could you specify what country you live, and what URL you get redirected to if you open this? https://www.meta.com/experiences/pcvr/

The issue is about the collection of metadata from meta.com (moved from oculus.com) and it being finicky about locales.

Snipe3000 commented 11 months ago

Thanks @Snipe3000 - could you specify what country you live, and what URL you get redirected to if you open this? https://www.meta.com/experiences/pcvr/

The issue is about the collection of metadata from meta.com (moved from oculus.com) and it being finicky about locales.

USA, I get the same URL when I go there: https://www.meta.com/experiences/pcvr/

Jeshibu commented 11 months ago

really? there's no en-us in there?

Snipe3000 commented 11 months ago

really? there's no en-us in there?

Nope

Jeshibu commented 10 months ago

Latest release should fix the import erroring out at least, but I'm still struggling to understand why USA requests are getting aborted by the meta website when requesting metadata (to get the name, among other things). So while it'll import now, the game names will be busted, and metadata is limited to cover/icon/background. This is a hopefully temporary partial fix while I figure out the metadata request problem.

Snipe3000 commented 10 months ago

Looks like its not broken anymore, but like you said, the names and the rest of the metadata is busted.