my app is working fine on simulator but when i am running on device its getting crash and showing these reports
Aug 11 15:02:04 unknown MobileMail[20218] : Received memory warning.
Aug 11 15:02:04 unknown UserEventAgent[12] : jetsam: kernel termination snapshot being created
Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.apple.mobilephone[0xc8a9]) Exited: Killed: 9
Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.apple.mobilemail[0x828b]) Exited: Killed: 9
Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.christopher.pacificamodeling[0x8500]) Exited: Killed: 9
Aug 11 15:02:04 unknown com.apple.launchd[1] : (UIKitApplication:com.skype.skype[0xd976]) Exited: Killed: 9
Aug 11 15:02:05 unknown SpringBoard[16688] : Application 'Mail' exited abnormally with signal 9: Killed: 9
Aug 11 15:02:05 unknown SpringBoard[16688] : Application 'PacifiCA' exited abnormally with signal 9: Killed: 9
Aug 11 15:02:06 unknown SpringBoard[16688] : Application 'Skype' exited abnormally with signal 9: Killed: 9
Aug 11 15:02:06 unknown SpringBoard[16688] : Application 'Phone' exited abnormally with signal 9: Killed: 9
Aug 11 15:02:06 unknown DTPower[15342] : Task info failed for task com.christopher.pacificamodeling
Aug 11 15:02:06 unknown kernel[0] : launchd[20223] Builtin profile: MobileMail (sandbox)
Aug 11 15:02:06 unknown kernel[0] : launchd[20224] Builtin profile: container (sandbox)
Aug 11 15:02:06 unknown kernel[0] : launchd[20224] Container: /private/var/mobile/Applications/6BBDF6EB-1DB0-4CAB-8300-DC6CBA78C1AB [69] (sandbox)
First thing is to run the profiler from xcode menu as shown below:
then use the one highlighted below:
Finally you will see the blocks that is allocated the most expand any of them to see who is allocating it frequently. Go to that part and optimize it to avoid allocate/deallocate every time.
Related
react-native log-ios doesn't work with xcode 9.1
I get this error:
Scanning folders for symlinks in /Users/Tom/App/node_modules (18ms)
NOTE: Most system logs have moved to a new logging system. See log(1) for more information.
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.imfoundation.IMRemoteURLConnectionAgent) <Warning>: Unknown key for Boolean: EnableTransactions
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.imfoundation.IMRemoteURLConnectionAgent) <Warning>: Unknown key for integer: _DirtyJetsamMemoryLimit
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.imfoundation.IMRemoteURLConnectionAgent) <Warning>: Unknown key for Boolean: EnablePressuredExit
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.AssetCacheLocatorService) <Warning>: Unknown key for Boolean: EnableTransactions
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.AssetCacheLocatorService) <Warning>: Unknown key for Boolean: EnablePressuredExit
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.StreamingUnzipService) <Warning>: Unknown key for Boolean: EnableTransactions
Nov 8 08:30:06 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.StreamingUnzipService) <Warning>: Unknown key for Boolean: EnablePressuredExit
Nov 8 08:30:08 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.videosubscriptionsd[2968]) <Warning>: Service exited with abnormal code: 1
Nov 8 08:30:08 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.WebBookmarks.webbookmarksd[2936]) <Warning>: Could not find and/or execute program specified by service: 2: No such file or directory: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/webbookmarksd
Nov 8 08:30:08 MacBook-Pro com.apple.CoreSimulator.SimDevice.CDC87161-72A2-478C-AC7A-328643D6B81C[2781] (com.apple.WebBookmarks.webbookmarksd[2936]) <Notice>: Service setup event to handle failure and will not launch until it fires.
Nov 8 08:30:17 MacBook-Pro profiled[2920] <Error>: objc[2920]: Class SFUserNotification is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/Sharing.framework/Sharing (0x10d4f2700) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/SafariServices.framework/SafariServices (0x12854f358). One of the two will be used. Which one is undefined.
Nov 8 08:30:22 MacBook-Pro budd[2809] <Error>: objc[2809]: Class BYBuddyDaemonCloudSyncClient is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SetupAssistant.framework/SetupAssistant (0x109356930) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/SetupAssistant.framework/budd (0x108e1e1f8). One of the two will be used. Which one is undefined.
Has anyone been able to find a workaround for this?
Environment:
OS: macOS High Sierra 10.13.1
Node: 7.9.0
Yarn: 0.27.5
npm: 4.2.0
Watchman: 4.7.0
Xcode: Xcode 9.1 Build version 9B55
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.0.0 => 16.0.0
react-native: ^0.50.0-rc.1 => 0.50.0-rc.1
I cloned the newest version of the Azure C-SDK. One of the recent commit messages says that device twins over AMQP were added. I tried to switch the devicetwin_simplesample.c of the serializer samples to AMQP:
git diff devicetwin_simplesample/devicetwin_simplesample.c
diff --git a/serializer/samples/devicetwin_simplesample/devicetwin_simplesample.c b/serializer/samples/devicetwin_simplesample/devicetwin_simplesample.c
index 7da717c..d390a25 100644
--- a/serializer/samples/devicetwin_simplesample/devicetwin_simplesample.c
+++ b/serializer/samples/devicetwin_simplesample/devicetwin_simplesample.c
## -14,7 +14,7 ##
/*String containing Hostname, Device Id & Device Key in the format: */
/* "HostName=<host_name>;DeviceId=<device_id>;SharedAccessKey=<device_key>" */
-static const char* connectionString = "HostName=...";
+static const char* connectionString = "HostName=XXXX.azure-devices.net;DeviceId=XXXX;SharedAccessKey=XXXX";
// Define the Model - it is a car.
BEGIN_NAMESPACE(Contoso);
## -47,6 +47,7 ## DECLARE_DEVICETWIN_MODEL(Car,
WITH_REPORTED_PROPERTY(Maker, maker), /*this is a structured reported property*/
WITH_REPORTED_PROPERTY(CarState, state), /*this is a model in model*/
+ WITH_DESIRED_PROPERTY(CarSettings, settings) /*this is a model in model*/
WITH_DESIRED_PROPERTY(CarSettings, settings), /*this is a model in model*/
WITH_METHOD(getCarVIN)
);
## -101,7 +102,7 ## void device_twin_simple_sample_run(void)
else
{
/*create an IoTHub client*/
- IOTHUB_CLIENT_HANDLE iotHubClientHandle = IoTHubClient_CreateFromConnectionString(connectionString, MQTT_Protocol); // Change to AMQP_Procotol if desired.
+ IOTHUB_CLIENT_HANDLE iotHubClientHandle = IoTHubClient_CreateFromConnectionString(connectionString, AMQP_Protocol); // Change to AMQP_Procotol if desired.
if (iotHubClientHandle == NULL)
{
printf("Failure creating IoTHubClient handle");
It compiles. When I start it, however, I get the following error and the application quits immediately:
Info: IoT Hub SDK for C, version 1.1.21
Info: Retry policy set (5, timeout = 0)
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/iothub_client/src/iothubtransport_amqp_common.c Func:IoTHubTransport_AMQP_Common_Subscribe_DeviceMethod Line:1720 Not implemented
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/iothub_client/src/iothub_client_ll.c Func:IoTHubClient_LL_SetDeviceMethodCallback_Ex Line:1854 IoTHubTransport_Subscribe_DeviceMethod failed
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/iothub_client/src/iothub_client.c Func:IoTHubClient_SetDeviceMethodCallback Line:1619 IoTHubClient_LL_SetDeviceMethodCallback_Ex failed
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/serializer/inc/serializer_devicetwin.h Func:Generic_IoTHubClient_SetCallbacks Line:193 failure in IoTHubClient_SetDeviceMethodCallback
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/serializer/inc/serializer_devicetwin.h Func:IoTHubDeviceTwinCreate_Impl Line:261 failure in Generic_IoTHubClient_SetCallbacks
Failure in IoTHubDeviceTwin_CreateCarError: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/serializer/inc/serializer_devicetwin.h Func:IoTHubDeviceTwin_Destroy_Impl Line:306 invalid argument void* model=(nil)
Info: Transport state changed from AMQP_TRANSPORT_STATE_NOT_CONNECTED to AMQP_TRANSPORT_STATE_CONNECTING
Info: Transport state changed from AMQP_TRANSPORT_STATE_CONNECTING to AMQP_TRANSPORT_STATE_CONNECTED
Info: Transport state changed from AMQP_TRANSPORT_STATE_CONNECTED to AMQP_TRANSPORT_STATE_BEING_DESTROYED
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/uamqp/src/amqp_management.c Func:amqp_management_close Line:888 AMQP management instance not open
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/iothub_client/src/iothubtransport_amqp_connection.c Func:on_cbs_open_complete Line:149 CBS open failed
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/iothub_client/src/iothubtransport_amqp_cbs_auth.c Func:on_cbs_put_token_complete_callback Line:188 CBS reported status code 0, error: '(null)' for put-token operation for device ''
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/uamqp/src/saslclientio.c Func:saslclientio_send_async Line:1165 send called while not open
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/uamqp/src/connection.c Func:on_bytes_encoded Line:241 Cannot send encoded bytes
Info: Closing tlsio from a state other than TLSIO_STATE_EXT_OPEN or TLSIO_STATE_EXT_ERROR
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/uamqp/src/saslclientio.c Func:on_underlying_io_open_complete Line:178 Open complete received in unexpected state
-> [CLOSE]* {}
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/uamqp/src/saslclientio.c Func:saslclientio_close_async Line:1114 saslclientio_close called while not open
Error: Time:Fri Aug 18 17:15:22 2017 File:/home/user/workspaceMisc/azure-iot-sdk-c/uamqp/src/connection.c Func:connection_close Line:1339 xio_close failed
I also tried to remove the CarVIN from the model and comment the corresponding method which didn't help either.
As I see a "not implementd" in the error logs: Is it possible to used AMQP device twins already or will it be "completed" later?
Compiler/OS: gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
I have been stuck with this weird problem for a while now. The Ad-hoc IPA is stuck with 'installing' message forever in ipod touch 5th gen.
Here is the console output at the time of installation :
Jul 17 18:13:38 Sreejiths-iPod installd[61] <Notice>: 0x387000 handle_install_for_ls: Install of "/var/mobile/Media/PublicStaging/Test.ipa" reTested by atc
Jul 17 18:13:38 Sreejiths-iPod atc[894] <Warning>: [VoiceMemosSyncClient][Orphan-Recovery] (post-sync, no new synced assets) checking for orphaned recordings.
Jul 17 18:13:38 Sreejiths-iPod installd[61] <Notice>: 0x387000 MobileInstallationInstall_Server: Installing app co.Testapp.Test
Jul 17 18:13:38 Sreejiths-iPod installd[61] <Error>: profile not valid: 0xe8008012
Jul 17 18:13:38 Sreejiths-iPod installd[61] <Error>: 0x387000 install_embedded_profile: Could not install embedded profile: 0xe8008012
Jul 17 18:13:38 Sreejiths-iPod atc[894] <Warning>: [VoiceMemosSyncClient][Orphan-Recovery] (post-sync, no new synced assets) done.
Jul 17 18:13:38 Sreejiths-iPod atc[894] <Warning>: [ML3MusicLibrary] compacting artwork
Jul 17 18:13:38 Sreejiths-iPod atc[894] <Warning>: [ML3MusicLibrary] removing 0 artwork cache ids no longer used
Jul 17 18:13:38 Sreejiths-iPod mobile_assertion_agent[121] <Notice>: service_one_connection: Connection closed for client iTunes.
Jul 17 18:13:38 Sreejiths-iPod medialibraryd[220] <Warning>: {MediaLibrary} [MLWriter] ending transaction <__NSConcreteUUID 0x16d692f0> 209F4AA6-959D-4FA9-BDA2-E39C052E40EB. shouldCommit=0.
Jul 17 18:13:39 Sreejiths-iPod installd[61] <Error>: 0x387000 verify_signer_identity: MISValidateSignatureAndCopyInfo failed for /var/tmp/install_staging.aAeAYo/foo_extracted/Payload/Test.app/Test: 0xe8008015
Jul 17 18:13:39 Sreejiths-iPod installd[61] <Error>: 0x387000 do_preflight_verification: Could not verify executable at /var/tmp/install_staging.aAeAYo/foo_extracted/Payload/Test.app
Jul 17 18:13:39 Sreejiths-iPod atc[894] <Error>: 0x1c0a000 MobileInstallationInstallForLaunchServices: failed with -1
Jul 17 18:13:39 Sreejiths-iPod installd[61] <Error>: 0x387000 install_application: Could not preflight application install
Jul 17 18:13:39 Sreejiths-iPod atc[894] <Warning>: ERROR: MobileInstallationInstallForLaunchServices returned nil
Jul 17 18:13:39 Sreejiths-iPod lsd[130] <Warning>: LaunchServices: installation failed for app co.Testapp.Test
Jul 17 18:13:39 Sreejiths-iPod atc[894] <Warning>: LaunchServices: installPhaseFinishedForProgress: co.Testapp.Test.Installing - <NSProgress: phase=Installing; state=Failed; fractionCompleted=0.000000> called, removing progress from cache
Jul 17 18:13:39 Sreejiths-iPod atc[894] <Warning>: {MediaLibrary} Database validation succeeded
Jul 17 18:13:39 Sreejiths-iPod installd[61] <Error>: 0x387000 handle_install_for_ls: API failed
Jul 17 18:13:39 Sreejiths-iPod medialibraryd[220] <Warning>: {MediaLibrary} [MLWriter] ending transaction <__NSConcreteUUID 0x16e833d0> 57B6C644-ED9D-4394-B2FF-B98B77107134. shouldCommit=0.
Is it related to Provisioning Profiles? I followed Somewhat-same-issue this post and checked the file as suggested but its still the same.
Has anyone else been facing this issue?
Any help will be much appreciated. Thanks.
So the problem was with the Device Profile.
I forgot to add my iPod Touch in the Device list.
Member Center > Certificates > Devices > Add new device . Voila. Everything started working.
Team,
Once I upgraded my application to iOS 7.0 with Xcode 5, I see intermittent crashes in the application. if I compile with xCode 4.2 and I don't see any intermittent crashes on iOS7 device.
I hope the below crashes are memory related, because it occurs at different places in the application.
Please find logs
Apr 1 14:07:57 My-AD-Username ADTCommercial[185] <Notice>: [AMPMessageDispatcherThread handleMessage:] message {jlodigkeit-41-1396382877074} received on Outbound-msg-dispatcher for processing, MIM: 29, MID: 0
Apr 1 14:07:57 My-AD-Username ReportCrash[192] <Notice>: ReportCrash acting against PID 185
Apr 1 14:07:57 My-AD-Username ReportCrash[192] <Notice>: Formulating crash report for process ADTCommercial[185]
Apr 1 14:07:57 My-AD-Username com.apple.debugserver-300.2[184] <Warning>: 21 +523.616314 sec [00b8/060b]: RNBRunLoopLaunchInferior DNBProcessLaunch() returned error: 'failed to get the task for process 185'
Apr 1 14:07:57 My-AD-Username com.apple.debugserver-300.2[184] <Warning>: error: failed to launch process /Developer/usr/bin/debugserver: failed to get the task for process 185
Apr 1 14:07:57 My-AD-Username com.apple.debugserver-300.2[184] <Warning>: 22 +0.002490 sec [00b8/1207]: error: ::read ( -1, 0x3469ec, 18446744069414585344 ) => -1 err = Bad file descriptor (0x00000009)
Apr 1 14:07:57 My-AD-Username com.apple.debugserver-300.2[184] <Warning>: Exiting.
Apr 1 14:07:57 My-AD-Username com.apple.launchd[1] (UIKitApplication:com.adt.commercial.mobility.dev[0xdd96][185]) <Warning>: (UIKitApplication:com.adt.commercial.mobility.dev[0xdd96]) Job appears to have crashed: Segmentation fault: 11
Apr 1 14:07:57 My-AD-Username backboardd[28] <Warning>: Application 'UIKitApplication:com.adt.commercial.mobility.dev[0xdd96]' exited abnormally with signal 11: Segmentation fault: 11
Apr 1 14:09:26 My-AD-Username ADTCommercial[194] <Notice>: [ADT_JobDetailsScreenServiceHistoryScreen loadData:create:preload:] called
Apr 1 14:09:26 My-AD-Username ADTCommercial[194] <Notice>: [AMPScreenManager viewWillPop:] popped ADT_ServiceHistoryDetailsScreen from history
Apr 1 14:09:27 My-AD-Username ADTCommercial[194] <Notice>: # -[JobDetailsScreen(Custom) refreshAction] #....
Apr 1 14:09:27 My-AD-Username ReportCrash[196] <Notice>: ReportCrash acting against PID 194
Apr 1 14:09:27 My-AD-Username ReportCrash[196] <Notice>: Formulating crash report for process ADTCommercial[194]
Apr 1 14:09:27 My-AD-Username com.apple.launchd[1] (UIKitApplication:com.adt.commercial.mobility.dev[0xd929][194]) <Warning>: (UIKitApplication:com.adt.commercial.mobility.dev[0xd929]) Job appears to have crashed: Segmentation fault: 11
Apr 1 14:09:27 My-AD-Username backboardd[28] <Warning>: Application 'UIKitApplication:com.adt.commercial.mobility.dev[0xd929]' exited abnormally with signal 11: Segmentation fault: 11
I believe, its memory related crashes. Any idea why?
Thanks,
Ramesh
XCode4 just crash on me when I was testing my app without saying why. I put the crash log I found on the device below. The app runs fine in the simulation so I am thinking it's the memory problem? I check for leaks but there is nothing serious to it, also there is not memory warning call.
The log said "Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-06-01-154632.plist" but I can't find it anywhere on my mac.
Please help,
Pondd
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Bug: launchd_core_logic.c:3795 (24506):0
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Bug: launchd_core_logic.c:920 (24506):3
Jun 1 15:46:31 unknown com.apple.debugserver-50[412] <Warning>: 1 [019c/1503]: error: ::read ( 4, 0x2ff8a9f0, 1024 ) => -1 err = Bad file descriptor (0x00000009)
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Bug: launchd_core_logic.c:3794 (24506):3
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Bug: launchd_core_logic.c:3202 (24506):10
Jun 1 15:46:31 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.mondial.dva[0xd591]) Working around 5020256. Assuming the job crashed.
Jun 1 15:46:31 unknown SpringBoard[28] <Warning>: Unable to delete job with label UIKitApplication:com.mondial.dva[0xd591]. Error: No such process
Jun 1 15:46:32 unknown ReportCrash[418] <Error>: Saved crashreport to /Library/Logs/CrashReporter/LowMemory-2011-06-01-154632.plist using uid: 0 gid: 0, synthetic_euid: 0 egid: 0
Jun 1 15:46:32 unknown configd[25] <Notice>: jetsam: kernel termination snapshot being created
Jun 1 15:46:32 unknown SCHelper[148] <Notice>: active (but IDLE) sessions
Jun 1 15:46:37 unknown SpringBoard[28] <Notice>: MultitouchHID(1cd11840) uilock state: 0 -> 1
Jun 1 15:46:41 unknown ReportCrash[420] <Notice>: Not saving Jetsam log because no data from the kernel.
Jun 1 15:46:41 unknown configd[25] <Notice>: jetsam: kernel termination snapshot being created
Jun 1 15:46:51 unknown ReportCrash[421] <Notice>: Not saving Jetsam log because no data from the kernel.
I found my LowMemory generated files through the organizer -> devices -> the device you are running on -> console -> right click on any of the logs on the left and select "Reveal in Finder"