AnnaIvanova / UE4AdBoxPlugin

Plugin that adds AdMob interstitial support for Android platform in UE4 blueprints
MIT License
17 stars 10 forks source link

The game closes after displaying AdColony. #8

Open sbalgas opened 7 years ago

sbalgas commented 7 years ago

Hi, I use Android sdk 14 with UE 4.13.

The problem appears when AdColony Interstitial is finish and the game is resumed. At once, my game is exit.

I only have this. adcolony

logcat:

10-02 16:29:49.697: D/UE4(29694): LogAndroidEvents: EnqueueAppEvent : 12, 0, tid = 29715 10-02 16:29:49.797: D/UE4(29694): [2016.10.02-19.29.49:797][-7977044]LogAndroid: Case APP_CMD_SAVE_STATE 10-02 16:29:49.798: D/UE4(29694): [2016.10.02-19.29.49:798][-7977044]LogAndroidEvents:Display: DequeueAppEvent : 12, 0 10-02 16:29:50.073: D/UE4(29694): Case APP_CMD_RESUME 10-02 16:29:50.073: D/UE4(29694): LogAndroidEvents: EnqueueAppEvent : 7, 0, tid = 29715 10-02 16:29:50.073: D/UE4(29694): App is running in Landscape 10-02 16:29:50.073: D/UE4(29694): ==============> Resuming main init 10-02 16:29:50.074: D/UE4(29694): ==============> GameActive.onResume complete! 10-02 16:29:50.082: D/UE4(29694): LogAndroidEvents: EnqueueAppEvent : 11, 0, tid = 29715 10-02 16:29:50.174: D/UE4(29694): [2016.10.02-19.29.50:174][-7977044]LogAndroid: Case APP_CMD_RESUME 10-02 16:29:50.174: D/UE4(29694): [2016.10.02-19.29.50:174][-7977044]LogAndroid: Case APP_CMD_GAINED_FOCUS 10-02 16:29:50.174: D/UE4(29694): [2016.10.02-19.29.50:174][-7977044]LogAndroidEvents:Display: DequeueAppEvent : 7, 0 10-02 16:29:50.180: D/UE4(29694): Execution has been resumed! 10-02 16:29:50.181: D/UE4(29694): [2016.10.02-19.29.50:180][-7977044]LogAndroidEvents:Display: DequeueAppEvent : 11, 0

And, the log in UE4Game/game/game/Saved/Logs/game.log is incomplete.

How can i fix/debug this?

I will try deploy a empty game for test this.

Regards

AnnaIvanova commented 7 years ago

Hi, You can subscribe on AdColonyAdStarted and AdColonyAdAttemptFinished events. It will give you more information about what is happening with the interstitial in your game. Also please check if you have specified right AdColonyAppID and AdColonyZoneIDInterstitialVideo in YourProjectName\Config\DefaultEngine.ini file in [Advertisement] section.

Best regards. adcolonyevents

sbalgas commented 7 years ago

Hi, I put those nodes and my log cat says this.

http://pastebin.com/L8f27Nc7

1 or 2 fps after advertising the game is exit. I was check AdColonyAppID and AdColonyZoneIDInterstitialVideo in my config and it is ok. Also, in my AdColony's panel, I can see the number of views.

Just now, my sdk version is 14 (Minimum and Target), and my NDK Level is 19.

there's something I'm forgetting me?

`Regards

AnnaIvanova commented 7 years ago

Do you have fps drop only after AdColony ads is shown? What about Chartboost, are there some troubles with it?

sbalgas commented 7 years ago

Hi, I try with Chartboost, and I have the same problem. After hiding advertising the game is close.

but, with AdMob it's work fine.

I put here the log for a review.

Regards

D/UE4 (20285): [2016.10.06-00.44.48:731][-7973112]LogChartboost: AndroidThunkCpp_HasInterstitial OK D/UE4 (20285): [2016.10.06-00.44.48:735][-7973112]LogBlueprintUserMessages: [GameTestGameMode_BP_C_0] HasInterstitial ? false D/UE4 (20285): In AndroidThunkJava_ShowAdBanner D/UE4 (20285): AdID: ca-app-pub-**** D/UE4 (20285): In AndroidThunkJava_HideAdBanner D/UE4 (20285): Case APP_CMD_PAUSE D/UE4 (20285): LogAndroidEvents: EnqueueAppEvent : 6, 0, tid = 20307 D/UE4 (20285): ==============> GameActive.onPause complete! D/UE4 (20285): [2016.10.06-00.44.52:666][-7973112]LogAndroid: Case APP_CMD_PAUSE D/UE4 (20285): [2016.10.06-00.44.52:704][-7973112]LogAndroidEvents:Display: DequeueAppEvent : 6, 0 D/UE4 (20285): [2016.10.06-00.44.54:541][-7973112]LogBlueprintUserMessages: [GameTestGameMode_BP_C_0] DidDisplayInterstitial Default D/UE4 (20285): [2016.10.06-00.44.54:541][-7973112]LogBlueprintUserMessages: [GameTestGameMode_BP_C_0] DidCacheInterstitial Default D/UE4 (20285): AndroidEGL::ResetDisplay() D/UE4 (20285): Execution has been paused... D/UE4 (20285): LogAndroidEvents: EnqueueAppEvent : 10, 0, tid = 20307 D/UE4 (20285): LogAndroidEvents: EnqueueAppEvent : 12, 0, tid = 20307 D/UE4 (20285): [2016.10.06-00.44.54:643][-7973112]LogAndroid: Case APP_CMD_LOST_FOCUS D/UE4 (20285): [2016.10.06-00.44.54:644][-7973112]LogAndroid: Case APP_CMD_SAVE_STATE D/UE4 (20285): [2016.10.06-00.44.54:644][-7973112]LogAndroidEvents:Display: DequeueAppEvent : 10, 0 D/UE4 (20285): [2016.10.06-00.44.54:644][-7973112]LogAndroidEvents:Display: DequeueAppEvent : 12, 0 D/UE4 (20285): Case APP_CMD_RESUME D/UE4 (20285): LogAndroidEvents: EnqueueAppEvent : 7, 0, tid = 20307 D/UE4 (20285): App is running in Landscape D/UE4 (20285): ==============> Resuming main init D/UE4 (20285): ==============> GameActive.onResume complete! D/UE4 (20285): LogAndroidEvents: EnqueueAppEvent : 11, 0, tid = 20307 D/UE4 (20285): [2016.10.06-00.45.18:025][-7973112]LogAndroid: Case APP_CMD_RESUME D/UE4 (20285): [2016.10.06-00.45.18:025][-7973112]LogAndroid: Case APP_CMD_GAINED_FOCUS D/UE4 (20285): [2016.10.06-00.45.18:025][-7973112]LogAndroidEvents:Display: DequeueAppEvent : 7, 0 D/UE4 (20285): [2016.10.06-00.45.18:070][-7973112]LogUdpMessaging: Initializing bridge on interface 0.0.0.0:0 to multicast group 230.0.0.1:6666. D/UE4 (20285): [2016.10.06-00.45.18:078][-7973112]LogTcpMessaging: Initializing TcpMessaging bridge, listening on 127.0.0.1:6666 D/UE4 (20285): Execution has been resumed! D/UE4 (20285): [2016.10.06-00.45.18:082][-7973112]LogAndroidEvents:Display: DequeueAppEvent : 11, 0 D/UE4 (20285): [2016.10.06-00.45.18:231][-7973112]LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FUdpMessageBeacon///Thread_51d1_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FUdpMessageBeacon///Thread_5076_0///####STATCAT_Advanced#### D/UE4 (20285): [2016.10.06-00.45.18:232][-7973112]LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FUdpMessageProcessor.Sender///Thread_51d2_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FUdpMessageProcessor.Sender///Thread_5077_0///####STATCAT_Advanced#### D/UE4 (20285): [2016.10.06-00.45.18:232][-7973112]LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FUdpMessageProcessor///Thread_51d0_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FUdpMessageProcessor///Thread_5075_0///####STATCAT_Advanced#### D/UE4 (20285): [2016.10.06-00.45.18:232][-7973112]LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//UdpMessageMulticastReceiver///Thread_51d3_0///####STATCAT_Advanced#### old //STATGROUP_Threads//UdpMessageMulticastReceiver///Thread_5078_0///####STATCAT_Advanced#### D/UE4 (20285): [2016.10.06-00.45.18:232][-7973112]LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FTcpMessageTransport///Thread_51d4_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FTcpMessageTransport///Thread_5073_0///####STATCAT_Advanced#### D/UE4 (20285): [2016.10.06-00.45.18:233][-7973112]LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FTcpListener///Thread_51d6_0///####STATCAT_Advanced#### old //STATGROUP_Threads//FTcpListener///Thread_5074_0///####STATCAT_Advanced####

AnnaIvanova commented 7 years ago

Hi, please make a sample project with the plugin and send it to me: support@2scarsgames.com

sbalgas commented 7 years ago

Hi, I discovered something interesting. the bug occurs only in my Tablet CX9006. In others devices this does not happen. I will check on more devices and I will report the result. Regards