iOS7.0 Intermittent Crashes - ios7

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

Related

'react-native log-ios' doesn't work

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

Ad-hoc IPA not getting installed in ipod touch, stuck with installing message

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.

Error on startup for mongodb server

totally new to mongodb. I'm trying to install locomotive CMS on my server, which is cool, but I've always used SQL/MySQL so mongo is totally new to me.
I installed all the needed mongodb modules, but when I run: sudo service mongod start I get an error code. When I look in the logs for the error, here is what is output:
Fri Mar 21 18:13:47.186 [initandlisten] MongoDB starting : pid=5053 port=27017 dbpath=/var/lib/mongo 64-bit host=vagrant-centos64.vagrantup.com
Fri Mar 21 18:13:47.186 [initandlisten] db version v2.4.9
Fri Mar 21 18:13:47.186 [initandlisten] git version: 52fe0d21959e32a5bdbecdc62057db386e4e029c
Fri Mar 21 18:13:47.186 [initandlisten] build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49
Fri Mar 21 18:13:47.186 [initandlisten] allocator: tcmalloc
Fri Mar 21 18:13:47.186 [initandlisten] options: { config: "/etc/mongod.conf", dbpath: "/var/lib/mongo", fork: "true", logappend: "true", logpath: "/var/log/mongo/mongod.log", pidfilepath: "/var/run/mo$
Fri Mar 21 18:13:47.192 [initandlisten] journal dir=/var/lib/mongo/journal
Fri Mar 21 18:13:47.192 [initandlisten] recover : no journal files present, no recovery needed
Fri Mar 21 18:13:47.192 [initandlisten]
Fri Mar 21 18:13:47.192 [initandlisten] ERROR: Insufficient free space for journal files
Fri Mar 21 18:13:47.192 [initandlisten] Please make at least 3379MB available in /var/lib/mongo/journal or use --smallfiles
Fri Mar 21 18:13:47.192 [initandlisten]
Fri Mar 21 18:13:47.193 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
Fri Mar 21 18:13:47.193 dbexit:
Fri Mar 21 18:13:47.193 [initandlisten] shutdown: going to close listening sockets...
Fri Mar 21 18:13:47.193 [initandlisten] shutdown: going to flush diaglog...
Fri Mar 21 18:13:47.193 [initandlisten] shutdown: going to close sockets...
Fri Mar 21 18:13:47.193 [initandlisten] shutdown: waiting for fs preallocator...
Fri Mar 21 18:13:47.193 [initandlisten] shutdown: lock for final commit...
Fri Mar 21 18:13:47.193 [initandlisten] shutdown: final commit...
Fri Mar 21 18:13:47.193 [initandlisten] shutdown: closing all files...
Fri Mar 21 18:13:47.193 [initandlisten] closeAllFiles() finished
Fri Mar 21 18:13:47.193 [initandlisten] journalCleanup...
Fri Mar 21 18:13:47.193 [initandlisten] removeJournalFiles
Fri Mar 21 18:13:47.193 [initandlisten] shutdown: removing fs lock...
Fri Mar 21 18:13:47.193 dbexit: really exiting now
Also, I run: sudo service mongod status and the output is mongod is stopped so I know it's not running.
Following the stack, it looks like the error has something to do with insufficient space, but my server has 15gb free and im running sudo, so i know it's not a permission error....how can I allocate more space...or better yet, what should i allocate more space to?
Any help is appreciated.
Add smallfiles = true to "/etc/mongodb.conf".
Now try to start the service, I assume this should fix the issue!!
Set to true to modify MongoDB to use a smaller default data file size. Specifically, smallfiles reduces the initial size for data files and limits them to 512 megabytes. The smallfiles setting also reduces the size of each journal files from 1 gigabyte to 128 megabytes.

my app is getting crash while running on device

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.

XCode 4 Crash but not sure why?

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"