playMaker

Author Topic: Load another scene then become dark scene/screen on Android Device  (Read 8651 times)

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
Hi,

I'm using Unity 2017.4 (LTS) with PlayMaker version 1.9 (I'm not sure about the version because I see Playmaker cannot upgrade unless you're using Unity 2018 beyond).

Using Android Real Device, In the Game Main Menu, I can see all of the other menus, but when I choose any of them, I will go to the dark screen:



I'm sure on the main menu, it uses playmaker to load the scene.

Interestingly, this dark screen only happen on Android Device, because i test on Unity Editor it's run smoothly.

Any Idea to solve this issue?

« Last Edit: November 26, 2019, 07:37:40 PM by rainexplorer »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load another scene then become dark scene/screen on Android Device
« Reply #1 on: November 27, 2019, 01:21:58 AM »
Hi,

 funny, I am facing similar issues right now, IOS perfect, Unity Perfect, Android-> bug...

 I am not sure what is going on exactly on your end, nor on mine, but I suspect that internally memory or screen buffer is handled differently on android and it creates a different experience.

Does android get out of the drakscreen eventually? or is it stuck? if it's stuck it's a bug in your logic, but if it goes away, it's likely the scene loading process itself.

Bye,

 Jean

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
Re: Load another scene then become dark scene/screen on Android Device
« Reply #2 on: November 27, 2019, 01:32:20 AM »
Hi,

 funny, I am facing similar issues right now, IOS perfect, Unity Perfect, Android-> bug...

 I am not sure what is going on exactly on your end, nor on mine, but I suspect that internally memory or screen buffer is handled differently on android and it creates a different experience.

Does android get out of the drakscreen eventually? or is it stuck? if it's stuck it's a bug in your logic, but if it goes away, it's likely the scene loading process itself.

Bye,

 Jean

I get stuck in dark screen. How about yours, get stuck too?

so, any solution right now?

Do I need to migrate my project to Unity 2019.2?
so I can use latest playmaker plugin....

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load another scene then become dark scene/screen on Android Device
« Reply #3 on: November 27, 2019, 08:07:20 AM »
Hi,

 no, I don't get stuck, if you get stuck, you should check the android logs:

https://forum.unity.com/threads/how-to-capturing-device-logs-on-android.528680/

because something crashed on the scene you opened. have you tried to open that scene alone in android?

Bye,

 Jean

rainexplorer

  • Junior Playmaker
  • **
  • Posts: 65
Re: Load another scene then become dark scene/screen on Android Device
« Reply #4 on: December 03, 2019, 04:34:17 AM »
Hi,

 no, I don't get stuck, if you get stuck, you should check the android logs:

https://forum.unity.com/threads/how-to-capturing-device-logs-on-android.528680/

because something crashed on the scene you opened. have you tried to open that scene alone in android?

Bye,

 Jean
I think my logic has no error, if yes why in Unity Editor is smooth?

However....finally, I can get debug log using another Android Device:

Do you have any idea regarding below log:

Quote
12-03 16:31:11.662  3740  4021 D InputReader: Input event(4): value=0 when=30315905658000
12-03 16:31:11.662  3740  4021 D InputReader: Input event(4): value=0 when=30315905658000
12-03 16:31:11.662  3740  4021 I InputReader: Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=30315905658000
12-03 16:31:11.663  3740  4020 I InputDispatcher: Delivering touch to (32228): action: 0x1, toolType: 1
12-03 16:31:11.663 32228 32228 D ViewRootImpl@e12f2bd[UnityPlayerActivity]: ViewPostImeInputStage processPointer 1
12-03 16:31:11.664  3740  8496 D GameManagerService: identifyGamePackage. com.snowyenglish.flashcard
12-03 16:31:11.691 32228 32252 E Unity   : NullReferenceException: A null value was found where an object instance was required.
12-03 16:31:11.691 32228 32252 E Unity   :   at z_reward_ads.Update () [0x00000] in <filename unknown>:0
12-03 16:31:11.691 32228 32252 E Unity   : 
12-03 16:31:11.691 32228 32252 E Unity   : (Filename: currently not available on il2cpp Line: -1)
12-03 16:31:11.691 32228 32252 E Unity   :
12-03 16:31:11.733  3740  4064 D WifiStateMachine: Current network is: "My Wifi" , ID is: 0
12-03 16:31:11.749 32228 32252 E Unity   : NullReferenceException: A null value was found where an object instance was required.
12-03 16:31:11.749 32228 32252 E Unity   :   at z_ads.DestroyBanner () [0x00000] in <filename unknown>:0
12-03 16:31:11.749 32228 32252 E Unity   :   at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
12-03 16:31:11.749 32228 32252 E Unity   :   at HutongGames.PlayMaker.Actions.CallMethodAdvanced.DoMethodCall () [0x00000] in <filename unknown>:0
12-03 16:31:11.749 32228 32252 E Unity   :   at HutongGames.PlayMaker.Actions.CallMethodAdvanced.OnEnter () [0x00000] in <filename unknown>:0
12-03 16:31:11.749 32228 32252 E Unity   :   at HutongGames.PlayMaker.FsmState.ActivateActions (Int32 startIndex) [0x00000] in <filename unknown>:0
12-03 16:31:11.749 32228 32252 E Unity   :   at HutongGames.PlayMaker.FsmState.OnEnter () [0x00000] in <filename unknown>:0
12-03 16:31:11.749 32228 32252 E Unity   :   at HutongGames.PlayMaker.Fsm.UpdateStateChanges () [0x00000] in <filename unknown>:0
12-03 16:31:11.749 32228 32252 E Unity   :   at HutongGames.PlayMaker.Fsm.DoTransition (HutongGames.PlayMaker.FsmTransition transition, Boolean isGlobal) [0x00000] in <filename unknown>:0
12-03 16:31:11.749 32228 32252 E Unity   :   at HutongGames.PlayMa
12-03 16:31:11.750 32228 32286 I System.out: (HTTPLog)-Static: isSBSettingEnabled false
12-03 16:31:11.751 32228 32286 I System.out: (HTTPLog)-Static: isSBSettingEnabled false
12-03 16:31:11.755 32228 32252 E Unity   : NullReferenceException: A null value was found where an object instance was required.
12-03 16:31:11.755 32228 32252 E Unity   :   at z_reward_ads.Update () [0x00000] in <filename unknown>:0
12-03 16:31:11.755 32228 32252 E Unity   : 
12-03 16:31:11.755 32228 32252 E Unity   : (Filename: currently not available on il2cpp Line: -1)
12-03 16:31:11.755 32228 32252 E Unity   :
12-03 16:31:11.766 32228 32301 D Unity   : Unloading 4 Unused Serialized files (Serialized files now loaded: 0)
12-03 16:31:11.770 32228 32252 E Unity   : NullReferenceException: A null value was found where an object instance was required.
12-03 16:31:11.770 32228 32252 E Unity   :   at z_reward_ads.Update () [0x00000] in <filename unknown>:0
12-03 16:31:11.770 32228 32252 E Unity   : 
12-03 16:31:11.770 32228 32252 E Unity   : (Filename: currently not available on il2cpp Line: -1)
12-03 16:31:11.770 32228 32252 E Unity   :
12-03 16:31:11.815 32228 32252 D Unity   : UnloadTime: 13.926000 ms
12-03 16:31:11.834 32228 32252 D Unity   : System memory in use before: 35.6 MB.
12-03 16:31:11.852 32228 32252 D Unity   : System memory in use after: 35.7 MB.
12-03 16:31:11.852 32228 32252 D Unity   :
12-03 16:31:11.852 32228 32252 D Unity   : Unloading 3 unused Assets to reduce memory usage. Loaded Objects now: 2653.
12-03 16:31:11.852 32228 32252 D Unity   : Total: 18.633000 ms (FindLiveObjects: 1.035000 ms CreateObjectMapping: 0.496000 ms MarkObjects: 17.018000 ms  DeleteObjects: 0.079000 ms)
12-03 16:31:11.852 32228 32252 D Unity   :
12-03 16:31:11.963 26439 26458 D a       : App package: noapp



jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Load another scene then become dark scene/screen on Android Device
« Reply #5 on: December 05, 2019, 06:21:10 AM »
Hi,

I would rather use some runtime console like this: https://assetstore.unity.com/packages/tools/gui/in-game-debug-console-68068

in your log, you do have a point where there is a null ref error, that can definitly be the beginning of a malfunction that possibly isn't happening in editor.

 
Bye,

 Jean