You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have AppCenter for analytics and crash and error logs
Its currently working well in Android and WinUI unfortunately in iOS it doesn't submit crashes or errors
We are on Maui 7.0.92
AppCenter
Microsoft.AppCenter Version="5.0.2"
Microsoft.AppCenter.Analytics Version="5.0.2"
Microsoft.AppCenter.Crashes Version="5.0.2"
I'm testing in VS for Mac without the debugger attached in a simulator, though we have a fair few testers on real devices in release mode, none of them are submitting successfully on iOS
I've tried this both with TargetFramework set and without
I've found a copy of the dlls (though they were for arm64 which might not work for the ios simulator?) and added them to Platforms\iOS preserving there original folder structure
Unfortunately none of these changes in isolation or combined seem to have any effect, the errors are always there if i run without the debugger attached.
I do get more SQL errors though
2023-07-19 15:45:26.606906+1000 OurApp[27453:317718] [AppCenter] DEBUG: -[MSACSessionContext init]/42 1 session(s) in the history.
2023-07-19 15:45:26.608390+1000 OurApp[27453:317718] [AppCenter] VERBOSE: -[MSACSessionContext setSessionId:]/66 Stored new session with id:(null) and timestamp: 2023-07-19 05:45:26 +0000.
2023-07-19 15:45:26.608540+1000 OurApp[27453:317718] [AppCenter] DEBUG: -[MSACUserIdContext init]/54 1 userId(s) in the history.
2023-07-19 15:45:26.617969+1000 OurApp[27453:317718] [AppCenter] INFO: -[MSACHttpClient networkStateChanged:]/202 Internet connection is up.
2023-07-19 15:45:26.618556+1000 OurApp[27453:317718] [AppCenter] INFO: -[MSACHttpClient networkStateChanged:]/202 Internet connection is up.
2023-07-19 15:45:26.618677+1000 OurApp[27453:317718] [AppCenter] INFO: -[MSACHttpClient networkStateChanged:]/202 Internet connection is up.
2023-07-19 15:45:26.618787+1000 OurApp[27453:317718] [AppCenter] DEBUG: -[MSACDBStorage initWithSchema:version:filename:]_block_invoke/38 SQLite global configuration successfully updated.
2023-07-19 15:45:26.623377+1000 OurApp[27453:317644] [AppCenter] INFO: -[MSACAppCenter configureWithAppSecret:transmissionTargetToken:fromApplication:]/354 App Center SDK configured successfully.
2023-07-19 15:45:26.623538+1000 OurApp[27453:317644] [AppCenter] VERBOSE: -[MSACAppCenter startServices:withAppSecret:transmissionTargetToken:fromApplication:]/380 Start services MSACCrashes, MSACAnalytics from an application
2023-07-19 15:45:26.639622+1000 OurApp[27453:317644] [AppCenterXamarinCrashes] INFO: +[MSACWrapperLogger MSACWrapperLog:tag:level:]/10 Temporarily remove signal handlers while native crash reporter is initialized (Mono < 4.8).
2023-07-19 15:45:26.639788+1000 OurApp[27453:317644] [AppCenterCrashes] DEBUG: -[MSACCrashes configureCrashReporterWithUncaughtExceptionHandlerEnabled:]/711 EnableUncaughtExceptionHandler is set to NO, we're running in a Xamarin runtime.
2023-07-19 15:45:26.653440+1000 OurApp[27453:317644] [AppCenterCrashes] DEBUG: -[MSACCrashes configureCrashReporterWithUncaughtExceptionHandlerEnabled:]/756 Exception handler successfully initialized but it has not been registered due to the wrapper SDK.
2023-07-19 15:45:26.653626+1000 OurApp[27453:317644] [AppCenterCrashes] DEBUG: +[MSACApplicationForwarder registerForwarding]/192 Application forwarder for info.plist key 'AppCenterApplicationForwarderEnabled' enabled. It may use swizzling.
2023-07-19 15:45:26.654133+1000 OurApp[27453:317644] [AppCenterXamarinCrashes] INFO: +[MSACWrapperLogger MSACWrapperLog:tag:level:]/10 Restore signal handlers for Mono < 4.8.
2023-07-19 15:45:26.655256+1000 OurApp[27453:317644] [AppCenter] VERBOSE: -[MSACSessionContext clearSessionHistoryAndKeepCurrentSession:]/88 Cleared old sessions.
2023-07-19 15:45:26.656052+1000 OurApp[27453:317644] [AppCenter] VERBOSE: -[MSACUserIdContext clearUserIdHistory]/125 Cleared old userIds while keeping current userId.
2023-07-19 15:45:26.656191+1000 OurApp[27453:317644] [AppCenterCrashes] INFO: -[MSACCrashes applyEnabledState:]/456 Crashes service has been enabled.
2023-07-19 15:45:26.664542+1000 OurApp[27453:317644] [AppCenterCrashes] VERBOSE: -[MSACCrashes startWithChannelGroup:appSecret:transmissionTargetToken:fromApplication:]/501 Started crash service.
2023-07-19 15:45:26.666691+1000 OurApp[27453:317718] [AppCenter] VERBOSE: -[MSACChannelUnitDefault resumeWithIdentifyingObjectSync:]/495 Identifying object <MSACAnalytics: 0x6000013941b0> removed from pause lane for channel Analytics.
2023-07-19 15:45:26.666829+1000 OurApp[27453:317718] [AppCenter] DEBUG: -[MSACChannelUnitDefault resumeWithIdentifyingObjectSync:]/497 Resume channel Analytics.
2023-07-19 15:45:26.666928+1000 OurApp[27453:317718] [AppCenter] VERBOSE: -[MSACChannelUnitDefault resumeWithIdentifyingObjectSync:]/495 Identifying object <MSACAnalytics: 0x6000013941b0> removed from pause lane for channel Analytics/one.
2023-07-19 15:45:26.667027+1000 OurApp[27453:317718] [AppCenter] DEBUG: -[MSACChannelUnitDefault resumeWithIdentifyingObjectSync:]/497 Resume channel Analytics/one.
2023-07-19 15:45:26.667653+1000 OurApp[27453:317718] [AppCenter] VERBOSE: -[MSACSessionContext setSessionId:]/66 Stored new session with id:B85D5A13-AAA7-43E7-9707-C1D3E7E712D3 and timestamp: 2023-07-19 05:45:26 +0000.
2023-07-19 15:45:26.667797+1000 OurApp[27453:317718] [AppCenterAnalytics] INFO: -[MSACSessionTracker sendStartSession]/107 New session ID: B85D5A13-AAA7-43E7-9707-C1D3E7E712D3
2023-07-19 15:45:26.667908+1000 OurApp[27453:317718] [AppCenterCrashes] VERBOSE: -[MSACCrashes channel:didPrepareLog:internalId:flags:]/584 Storing a log to Crashes Buffer: (sid: B85D5A13-AAA7-43E7-9707-C1D3E7E712D3, type: startSession)
2023-07-19 15:45:26.668021+1000 OurApp[27453:317718] [AppCenterCrashes] VERBOSE: -[MSACCrashes channel:didPrepareLog:internalId:flags:]/595 Found an empty buffer position.
2023-07-19 15:45:26.668139+1000 OurApp[27453:317718] [AppCenter] DEBUG: -[MSACChannelUnitDefault enqueueItem:flags:]_block_invoke/156 Saving log, type: startSession, flags: 1.
2023-07-19 15:45:26.668246+1000 OurApp[27453:317718] [AppCenterAnalytics] INFO: -[MSACAnalytics applyEnabledState:]/184 Analytics service has been enabled.
2023-07-19 15:45:26.669715+1000 OurApp[27453:317718] [AppCenter] ERROR: +[MSACDBStorage executeSelectionQuery:inOpenedDatabase:result:withValues:]_block_invoke/404 Query failed with error: 5
database is locked
2023-07-19 15:45:26.669872+1000 OurApp[27453:317718] [AppCenter] ERROR: +[MSACDBStorage executeQuery:inOpenedDatabase:withValues:usingBlock:]/357 Failed to finalize SQLite statement, result=5
database is locked
2023-07-19 15:45:26.669994+1000 OurApp[27453:317718] [AppCenter] ERROR: -[MSACDBStorage executeQueryUsingBlock:]/129 Failed to open database with specified maximum size constraint.
2023-07-19 15:45:26.670128+1000 OurApp[27453:317718] [AppCenter] ERROR: +[MSACDBStorage executeSelectionQuery:inOpenedDatabase:result:withValues:]_block_invoke/404 Query failed with error: 5
database is locked
2023-07-19 15:45:26.670242+1000 OurApp[27453:317718] [AppCenter] ERROR: +[MSACDBStorage executeQuery:inOpenedDatabase:withValues:usingBlock:]/357 Failed to finalize SQLite statement, result=5
database is locked
2023-07-19 15:45:26.670344+1000 OurApp[27453:317718] [AppCenterAnalytics] VERBOSE: -[MSACAnalytics startWithChannelGroup:appSecret:transmissionTargetToken:fromApplication:]/135 Started Analytics service.
2023-07-19 15:45:26.670529+1000 OurApp[27453:317718] [AppCenter] ERROR: +[MSACDBStorage executeNonSelectionQuery:inOpenedDatabase:withValues:]_block_invoke/333 Could not execute the statement, result=5
database is locked
2023-07-19 15:45:26.670664+1000 OurApp[27453:317718] [AppCenter] ERROR: +[MSACDBStorage executeQuery:inOpenedDatabase:withValues:usingBlock:]/357 Failed to finalize SQLite statement, result=5
database is locked
2023-07-19 15:45:26.670775+1000 OurApp[27453:317718] [AppCenterCrashes] VERBOSE: -[MSACCrashes channel:didPrepareLog:internalId:flags:]/584 Storing a log to Crashes Buffer: (sid: (null), type: startService)
2023-07-19 15:45:26.670952+1000 OurApp[27453:317718] [AppCenterCrashes] VERBOSE: -[MSACCrashes channel:didPrepareLog:internalId:flags:]/607 Remembering index 0 for oldest timestamp 1689745526.667849.
2023-07-19 15:45:26.671411+1000 OurApp[27453:317718] [AppCenterCrashes] VERBOSE: -[MSACCrashes channel:didPrepareLog:internalId:flags:]/595 Found an empty buffer position.
2023-07-19 15:45:26.671528+1000 OurApp[27453:317718] [AppCenterCrashes] VERBOSE: -[MSACCrashes channel:didCompleteEnqueueingLog:internalId:]/637 Deleting a log from buffer with id 072D8FE9-9407-4F9A-99A6-FB904704EC3F
2023-07-19 15:45:26.671645+1000 OurApp[27453:317718] [AppCenter] DEBUG: -[MSACChannelUnitDefault enqueueItem:flags:]_block_invoke/156 Saving log, type: startService, flags: 1.
2023-07-19 15:45:26.673262+1000 OurApp[27453:317718] [logging] API call with invalid database connection pointer
2023-07-19 15:45:26.673402+1000 OurApp[27453:317718] [logging] misuse at line 179840 of [554764a6e7]
2023-07-19 15:45:26.673513+1000 OurApp[27453:317718] [AppCenter] VERBOSE: -[MSACLogDBStorage saveLog:withGroupId:flags:]_block_invoke/134 Log is stored with id: '0'
2023-07-19 15:45:26.673622+1000 OurApp[27453:317718] [AppCenterCrashes] VERBOSE: -[MSACCrashes channel:didCompleteEnqueueingLog:internalId:]/637 Deleting a log from buffer with id 01803F0C-AD01-44CC-B912-A46716DB2310
Has anyone managed to overcome this issue? im probably referencing the dlls wrong hopefully something straight forward
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have AppCenter for analytics and crash and error logs
Its currently working well in Android and WinUI unfortunately in iOS it doesn't submit crashes or errors
We are on Maui 7.0.92
AppCenter
I'm testing in VS for Mac without the debugger attached in a simulator, though we have a fair few testers on real devices in release mode, none of them are submitting successfully on iOS
We initialise it as expected
I can see the following for AppCenter with verbose logging
I've seen the issues over many years it seems, heres a few that reference many more
ericsink/SQLitePCL.raw#455
microsoft/appcenter-sdk-dotnet#1423
To try fixing this based on the information in microsoft/appcenter-sdk-dotnet#1423
We don't need Sql atm in our app so the libraries weren't previously referenced but In trying to address this I've added these nuget repos
I've modified the following to our csproj file
I've tried this both with TargetFramework set and without
I've found a copy of the dlls (though they were for arm64 which might not work for the ios simulator?) and added them to Platforms\iOS preserving there original folder structure
I've tried including them as bundled resources
And as EmbeddedNativeLibrary's
Unfortunately none of these changes in isolation or combined seem to have any effect, the errors are always there if i run without the debugger attached.
I do get more SQL errors though
Has anyone managed to overcome this issue? im probably referencing the dlls wrong hopefully something straight forward
Cheers
Beta Was this translation helpful? Give feedback.
All reactions