defold / extension-firebase-analytics

Google Firebase Analytics extension for the Defold game engine
https://www.defold.com/extension-firebase-analytics/
MIT License
17 stars 12 forks source link

[Bug][iOS] If game focus lost, game will be freezed #3

Closed Insality closed 5 years ago

Insality commented 5 years ago

On iOS: if I have minimize game and open it back, game will be freeze (test on inner example)

If some OS window will appear above on the game, game will freeze too

Insality commented 5 years ago

May be some logs will be useful

GYTT=0
Apr 18 17:25:12 iPhone5 backboardd[73859] <Notice>: Turning off orientation events.
Apr 18 17:25:12 iPhone5 backboardd(CoreMotion)[73859] <Notice>: Stopping orientation detection.
Apr 18 17:25:12 iPhone5 backboardd[73859] <Notice>: Effective device orientation changed to: unknown
Apr 18 17:25:12 iPhone5 SpringBoard[73860] <Notice>: Root transaction complete: <SBAppToAppWorkspaceTransaction: 0x859a390>
Apr 18 17:25:12 iPhone5 CommCenter[23] <Notice>: #I SIM has not requested to be notified on entering idle screen, not processing
Apr 18 17:25:12 iPhone5 mediaserverd(CoreMedia)[72913] <Notice>: -CMSessionMgr- cmsmHandleApplicationStateChange: CMSession: Client com.family.age.game with pid '73899' is now Background Running. Background entitlement: NO
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 2936: sid:0x11cd13b5, Firebase(73899), 'prim', interruptionCmd = Stop Now, info = {
    InterruptionCmd = 0;
    InterruptorName = "sid:0x11cd13b5, Firebase(73899), 'prim'";
    VolumeChangeDuration = "0.7";
}
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 2953: sid:0x11cd13b5, Firebase(73899), 'prim' interrupted by sid:0x11cd13b5, Firebase(73899), 'prim'
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 4030: sid:0x11cd13b5, Firebase(73899), 'prim', playerref=0x161fc400, modes=Output(2), state=Stopped
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 4077: 0 running inputs, 0 running outputs, 0 running processors, 0 active nodes
Apr 18 17:25:12 iPhone5 mediaserverd(CoreMedia)[72913] <Notice>: -CMSessionMgr- cmsSetIsActive: CMSession: 'sid:0x11cd13b5, Firebase(73899), 'prim'' with category/mode AmbientSound/Default going inactive
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: 73899 com.family.age.game: BackgroundRunning (most elevated: BackgroundRunning)
Apr 18 17:25:12 iPhone5 assertiond[64] <Notice>: client <BSProcessHandle: 0x1755adf0; Firebase:73899; valid: YES> HWM increased to 2 because of <BKProcessAssertion: 0x1754ab80; "_UIRemoteKeyboard XPC disconnection" (finishTask:180s); id:\M-b\M^@\M-&C569C5E9A997>
Apr 18 17:25:12 iPhone5 assertiond[64] <Notice>: client <BSProcessHandle: 0x1755adf0; Firebase:73899; valid: YES> HWM increased to 3 because of <BKProcessAssertion: 0x17657920; "FIRClearcutLogger.sendLogs" (finishTask:180s); id:\M-b\M^@\M-&D9E78F5C0105>
Apr 18 17:25:12 iPhone5 mediaserverd(VirtualAudio)[72913] <Notice>: 751: Client request to stop IO proc ID 0x155b2a30 on VAD 367.
Apr 18 17:25:12 iPhone5 mediaserverd(VirtualAudio)[72913] <Notice>: 735: Stopping IO type 0 on AggregateDevice 352.
Apr 18 17:25:12 iPhone5 kernel(AppleEmbeddedAudio)[0] <Notice>: Speaker: off
Apr 18 17:25:12 iPhone5 mediaserverd(CoreAudio)[72913] <Notice>: HALS_IOContext.cpp:855:StopIOProcID:  HALS_IOContext::StopIOProcID: 356 Speaker (VAD [vdef] AggDev 1):
Apr 18 17:25:12 iPhone5 mediaserverd(CoreAudio)[72913] <Notice>: HALS_IOContext.cpp:861:StopIOProcID:  HALS_IOContext::StopIOProcID: stopping 0x21 state: Prewarm: 0 Play: 1 State: Running IOProc 0x21: yes
Apr 18 17:25:12 iPhone5 mediaserverd(VirtualAudio)[72913] <Notice>: 352: IOProc (AggregateDevice 352, IO type NonNullIOProc) running state is now not running.
Apr 18 17:25:12 iPhone5 mediaserverd(VirtualAudio)[72913] <Notice>: 241: Client request to set virtual format [ 32/44100/1; flags: 0x29; bpp: 4; fpp: 1; Bpf: 4 ] on virtual audio stream 372.
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 3147: sid:0x11cd13b5, Firebase(73899), 'prim' new state = Background Running
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 1130: pid 73899(Firebase)
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 3463: preparing begin interruption notification for session: sid:0x11cd13b5, Firebase(73899), 'prim'
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 758: sid:0x11cd13b5, Firebase(73899), 'prim' caching picked route: {
    AVAudioRouteName = Speaker;
    IsPreferredExternalRoute = 0;
    PortNumber = 345;
    "PreferredExternalRouteDetails_IsActive" = 0;
    RouteCurrentlyPicked = 1;
    RouteName = "(\134U0434\134U0438\134U043d\134U0430\134U043c\134U0438\134U043a)";
    RouteSupportsAudio = 1;
    RouteType = Default;
    RouteUID = Speaker;
}
Apr 18 17:25:12 iPhone5 assertiond[64] <Notice>: client <BSProcessHandle: 0x1755adf0; Firebase:73899; valid: YES> HWM increased to 4 because of <BKProcessAssertion: 0x1765b860; "snapshot-task" (finishTask:180s); id:\M-b\M^@\M-&22F0C363D597>
Apr 18 17:25:12 iPhone5 assertiond[64] <Notice>: client <BSProcessHandle: 0x1755adf0; Firebase:73899; valid: YES> HWM increased to 5 because of <BKProcessAssertion: 0x1754e9d0; "com.apple.uikit.applicationSnapshot" (finishTask:180s); id:\M-b\M^@\M-&FF74997D57C8>
Apr 18 17:25:12 iPhone5 SpringBoard(KeyboardArbiter)[73860] <Error>: HW kbd: Failed to set (null) as keyboard focus
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: Entry, display name com.family.age.game uuid 88E065E5-7394-3FE7-A7C2-0719CE7A94A0 pid 73899 isFront 0
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: Check for bundle name com.family.age.game returns 0
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: app name com.family.age.game isForeground 0  hasForegroundApps 0, current idea of foreground 1 disp (null)
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: Going to background, new flags 0x0 enabled 0
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: Continue with bundle name com.family.age.game, is front 0
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: com.family.age.game: Foreground: false
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: call _saveAndUnloadSelectState
Apr 18 17:25:12 iPhone5 CommCenter[23] <Notice>: #I BundleID: <private> is no longer a foreground app
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: CFSM2 foreground (current/proposed/state) in = (1/0/1)
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: CFSM2 foreground (current/state) out = (1/3)
Apr 18 17:25:12 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: Remove appCompactState key com.family.age.game
Apr 18 17:25:12 iPhone5 SpringBoard(Security)[73860] <Notice>: could not enable test hierarchy: ApplePinningAllowTestCertsiPhoneApplicationSigning not true
Apr 18 17:25:12 iPhone5 securityd[73382] <Notice>: cert[0]: SubjectCommonName =(leaf)[]> 0
Apr 18 17:25:12 iPhone5 securityd[73382] <Notice>: cert[0]: CheckLeafMarkerOid =(leaf)[]> 0
Apr 18 17:25:12 iPhone5 locationd[26475] <Notice>: Client com.apple.springboard connected
Apr 18 17:25:12 iPhone5 locationd[26475] <Notice>: getClientEffectiveRegistrationResult, /System/Library/CoreServices/SpringBoard.app/SpringBoard, com.apple.springboard, , CLClientRegistrationResult, kCLClientRegistrationResultFailedUnavailable, CLCommonLocationServicesEnabled, 1
Apr 18 17:25:12 iPhone5 securityd[73382] <Notice>: cert[0]: IssuerCommonName =(path)[]> 0
Apr 18 17:25:12 iPhone5 locationd[26475] <Notice>: message 'kCLConnectionMessageGyroBiasEstimation' received from client 'com.apple.springboard'
Apr 18 17:25:12 iPhone5 locationd[26475] <Notice>: Client com.apple.springboard (0x2801600) is subscribing to notification kCLConnectionMessageGyroBiasEstimation
Apr 18 17:25:12 iPhone5 locationd[26475] <Notice>: message 'kCLConnectionMessageWatchdog' received from client 'com.apple.springboard'
Apr 18 17:25:12 iPhone5 SpringBoard(Security)[73860] <Notice>:  [leaf CheckLeafMarkerOid IssuerCommonName SubjectCommonName]
Apr 18 17:25:12 iPhone5 Firebase(CFNetwork)[73899] <Notice>: TIC TCP Conn Cancel [2:0x15dba010]
Apr 18 17:25:12 iPhone5 Firebase(CFNetwork)[73899] <Notice>: TIC TCP Conn Destroyed [2:0x15dba010]
Apr 18 17:25:12 iPhone5 SpringBoard(Security)[73860] <Notice>: could not enable test hierarchy: ApplePinningAllowTestCertsiPhoneApplicationSigning not true
Apr 18 17:25:12 iPhone5 securityd[73382] <Notice>: cert[0]: SubjectCommonName =(leaf)[]> 0
Apr 18 17:25:12 iPhone5 securityd[73382] <Notice>: cert[0]: CheckLeafMarkerOid =(leaf)[]> 0
Apr 18 17:25:12 iPhone5 securityd[73382] <Notice>: cert[0]: IssuerCommonName =(path)[]> 0
Apr 18 17:25:12 iPhone5 SpringBoard(Security)[73860] <Notice>:  [leaf CheckLeafMarkerOid IssuerCommonName SubjectCommonName]
Apr 18 17:25:12 iPhone5 SpringBoard[73860] <Notice>: Running <SBAppToAppWorkspaceTransaction: 0x8511ba0> for transition request:
<SBMainWorkspaceTransitionRequest: 0x8671900; eventLabel: ActivateApplication = com.family.age.game; display: Main; source: HomeScreen> {
    applicationContext = <SBWorkspaceApplicationTransitionContext: 0x8614760; background: NO> entities = {
        SBLayoutPrimaryRole = <SBWorkspaceApplication: 0x86bfc20; ID: com.family.age.game; layoutRole: primary>;
    };
}
Apr 18 17:25:12 iPhone5 SpringBoard[73860] <Notice>: Disabling home screen icon rotation for reason: SBAppToAppWorkspaceTransaction
Apr 18 17:25:12 iPhone5 mediaserverd(CoreMedia)[72913] <Notice>: -CMSessionMgr- cmsmHandleApplicationStateChange: CMSession: Client com.family.age.game with pid '73899' is now Foreground Running. Background entitlement: NO
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 2936: sid:0x11cd13b5, Firebase(73899), 'prim', interruptionCmd = Interruption Ended, info = {
    InterruptionCmd = 1;
    InterruptorName = "sid:0x11cd13b5, Firebase(73899), 'prim'";
    Status = "non-resumable.AmbientSound";
    VolumeChangeDuration = "0.7";
}
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 3147: sid:0x11cd13b5, Firebase(73899), 'prim' new state = Foreground Running
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 3511: preparing end interruption notification for session: sid:0x11cd13b5, Firebase(73899), 'prim'
Apr 18 17:25:12 iPhone5 mediaserverd(AudioToolbox)[72913] <Notice>: 3544:   interruption ended; interruption resumable=0
Apr 18 17:25:12 iPhone5 SpringBoard[73860] <Notice>: Disabling home screen icon rotation for reason: <SBCrossfadeIconZoomAnimator:0x836faa0>
Apr 18 17:25:12 iPhone5 sharingd[72934] <Notice>: SystemUI unknown identifier: 'com.family.age.game'
Apr 18 17:25:12 iPhone5 sharingd[72934] <Notice>: SystemUI changed: 0x10 -> 0x0
Apr 18 17:25:12 iPhone5 SpringBoard(MobileCoreServices)[73860] <Notice>: Looking up unclipped icon for app <private>
Apr 18 17:25:12 iPhone5 CommCenter[23] <Notice>: #I CSIAppInfo.AppObserver: observe_block_invoke: FBSDisplayLayoutUpdateHandler: update start
Apr 18 17:25:12 iPhone5 SpringBoard[73860] <Notice>: Dismissing banner for notification (null)
Apr 18 17:25:12 iPhone5 SpringBoard(CoreMotion)[73860] <Notice>: Stopping device motion, mode=0x<private>
Apr 18 17:25:12 iPhone5 locationd[26475] <Notice>: Client com.apple.springboard disconnected
Apr 18 17:25:12 iPhone5 CommCenter[23] <Notice>: #I CSIAppInfo.AppObserver: observe_block_invoke: FBSDisplayLayoutUpdateHandler: app <private> (UIApplicationElement 1 hasKeyboardFocus 0)
Apr 18 17:25:12 iPhone5 CommCenter[23] <Notice>: #I CSIAppInfo.AppObserver: observe_block_invoke: 4. app got notification state: pid=73899 for <private>
Apr 18 17:25:13 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: 73899 com.family.age.game: ForegroundRunning (most elevated: ForegroundRunning)
Apr 18 17:25:13 iPhone5 symptomsd(SymptomEvaluator)[125] <Notice>: Entry, display name com.family.age.game uuid 88E065E5-7394-3FE7-A7C2-0719CE7A94A0 pid 73899 isFront 1

There is no lua logs, only from iOS

AGulev commented 5 years ago

Should work fine in Defold 1.2.155 (release in a week)