PlayEveryWare / eos_plugin_for_unity

Repository for PlayEveryWare's EOS Plugin for Unity, bringing the functionality of Epic Online Services to the Unity Game Engine.
https://eospluginforunity.playeveryware.com
288 stars 56 forks source link

Android Won't Initialize EOSMANAGER #602

Closed laithalshabi closed 5 months ago

laithalshabi commented 6 months ago

Describe the bug android wont Initialize eos

the issue happens when eos calls => var funcResult = AndroidBindings.EOS_Initialize(ref optionsInternal); in PlatformInterface.cs it happens on Editor Platform Android and Android standalone build

the error :

NullReferenceException: Object reference not set to an instance of an object
Epic.OnlineServices.Platform.PlatformInterface.Initialize (Epic.OnlineServices.Platform.AndroidInitializeOptions& options) (at ./Library/PackageCache/com.playeveryware.eos@78b35a9d8c77/Runtime/EOS_SDK/Generated/Android/Platform/PlatformInterface.cs:18)
PlayEveryWare.EpicOnlineServices.EOSManager+EOSSingleton.InitializePlatformInterface (PlayEveryWare.EpicOnlineServices.EOSConfig configData) (at ./Library/PackageCache/com.playeveryware.eos@78b35a9d8c77/Runtime/Core/EOSManager.cs:465)
PlayEveryWare.EpicOnlineServices.EOSManager+EOSSingleton.Init (PlayEveryWare.EpicOnlineServices.IEOSCoroutineOwner coroutineOwner, System.String configFileName) (at ./Library/PackageCache/com.playeveryware.eos@78b35a9d8c77/Runtime/Core/EOSManager.cs:646)
PlayEveryWare.EpicOnlineServices.EOSManager+EOSSingleton.Init (PlayEveryWare.EpicOnlineServices.IEOSCoroutineOwner coroutineOwner) (at ./Library/PackageCache/com.playeveryware.eos@78b35a9d8c77/Runtime/Core/EOSManager.cs:558)
PlayEveryWare.EpicOnlineServices.EOSManager.Awake () (at ./Library/PackageCache/com.playeveryware.eos@78b35a9d8c77/Runtime/Core/EOSManager.cs:1803)

To Reproduce just use the last version with android build or just change the unity platform to android

Expected behavior Initialize EOSManager in android

Screenshots image

Desktop (please complete the following information):

Smartphone (please complete the following information):

arthur740212 commented 6 months ago

Hello, we’re here to help you troubleshoot.

First, check if you have EOSConfig ready. Open Tools->EOS Configuration and fill in the necessary blanks under Main and Android.

Second, make sure the Android API Level is higher than 29.

Additionally, try clicking on the error log that shows null exception, it might show us what the null variable was.

laithalshabi commented 6 months ago

Hello, we’re here to help you troubleshoot.

First, check if you have EOSConfig ready. Open Tools->EOS Configuration and fill in the necessary blanks under Main and Android.

Second, make sure the Android API Level is higher than 29.

Additionally, try clicking on the error log that shows null exception, it might show us what the null variable was.

the 3.0.3 version was working fine for android platform and windows platform but now it won't work with android platform

config is fine

android api level is fine image

and its just the var funcResult = AndroidBindings.EOS_Initialize(ref optionsInternal); image

and the full error is up in the bug description

paulhazen commented 6 months ago

Hi @laithalshabi. I'll be taking a look at this today and should have an update for you by the end of the day.

paulhazen commented 6 months ago

We've found the source of the problem - and will have a hotfix patched in by the end of the day tomorrow.

paulhazen commented 6 months ago

Hi @laithalshabi Can you confirm that the changes we merged in resolve your issue? I'm confident that they will but want to double check to make sure things are good on your end.

laithalshabi commented 6 months ago

still the same i got the same issue

laithalshabi commented 6 months ago

i've created new project just to test if it is "me problem" or not but same error with new project and i used the sample that came with the package image

NullReferenceException: Object reference not set to an instance of an object
Epic.OnlineServices.Platform.PlatformInterface.Initialize (Epic.OnlineServices.Platform.AndroidInitializeOptions& options) (at ./Library/PackageCache/com.playeveryware.eos@0465461da5d5/Runtime/EOS_SDK/Generated/Android/Platform/PlatformInterface.cs:18)
PlayEveryWare.EpicOnlineServices.EOSManager+EOSSingleton.InitializePlatformInterface (PlayEveryWare.EpicOnlineServices.EOSConfig configData) (at ./Library/PackageCache/com.playeveryware.eos@0465461da5d5/Runtime/Core/EOSManager.cs:465)
PlayEveryWare.EpicOnlineServices.EOSManager+EOSSingleton.Init (PlayEveryWare.EpicOnlineServices.IEOSCoroutineOwner coroutineOwner, System.String configFileName) (at ./Library/PackageCache/com.playeveryware.eos@0465461da5d5/Runtime/Core/EOSManager.cs:646)
PlayEveryWare.EpicOnlineServices.EOSManager+EOSSingleton.Init (PlayEveryWare.EpicOnlineServices.IEOSCoroutineOwner coroutineOwner) (at ./Library/PackageCache/com.playeveryware.eos@0465461da5d5/Runtime/Core/EOSManager.cs:558)
PlayEveryWare.EpicOnlineServices.Samples.EOSHostManager.Awake () (at Assets/Samples/Epic Online Services Plugin for Unity/3.1.1/Standard Pack _ EOS Plugin for Unity Samples/Scripts/Core/EOSHostManager.cs:49)
andrew-hirata-playeveryware commented 5 months ago

Hello @laithalshabi, is this issue still occurring with the most recent release ?

laithalshabi commented 5 months ago

Hello @laithalshabi, is this issue still occurring with the most recent release ?

yeah it works fine rn thanks <3