The application has crashed with an uncaught exception 'org.applicationame.TiUIWebViewProxy' in 7.5.0 and 7.5.1 SDK - titanium

I am getting below error while using titanium SDK 7.5.0. Apps works well with 7.4.x. I am doing upgrade before that i want to address root cause why app is not working in latest and > 7.5.X
This is am getting for iOS simulator launch after login to app got crash and then stop working.
Nothing found here
[ERROR] The application has crashed with an uncaught exception 'org.applicationame.TiUIWebViewProxy'.
[ERROR] Reason:
[ERROR] Invalid type passed to function
[ERROR] Stack trace:
[ERROR] 0 CoreFoundation 0x000000010ee5b8db __exceptionPreprocess + 331
[ERROR] 1 libobjc.A.dylib 0x000000010dc68ac5 objc_exception_throw + 48
[ERROR] 2 Connect 0x000000010831c35d TiExceptionThrowWithNameAndReason + 141
[ERROR] 3 Connect 0x00000001082dc44b -[TiProxy throwException:subreason:location:] + 107
[ERROR] 4 Connect 0x00000001082581b2 -[TiUIWebViewProxy evalJS:] + 562
[ERROR] 5 Foundation 0x000000010a7047bc __NSThreadPerformPerform + 331
[ERROR] 6 CoreFoundation 0x000000010edc2db1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
[ERROR] 7 CoreFoundation 0x000000010edc2633 __CFRunLoopDoSources0 + 243
[ERROR] 8 CoreFoundation 0x000000010edbccef __CFRunLoopRun + 1231
[ERROR] 9 CoreFoundation 0x000000010edbc4d2 CFRunLoopRunSpecific + 626
[ERROR] 10 GraphicsServices 0x00000001124b82fe GSEventRunModal + 65
[ERROR] 11 UIKitCore 0x0000000119dbafc2 UIApplicationMain + 140
[ERROR] 12 Connect 0x00000001081facc8 main + 104
[ERROR] 13 libdyld.dylib 0x0000000110350541 start + 1
[ERROR] 14 ??? 0x0000000000000001 0x0 + 1

Able to solve by adding below config in tiapp.xml. This legacy issue which enable javascript to run on mainthread. In later version its already handled different way.
<ios>
<run-on-main-thread>true</run-on-main-thread>
<!-- more iOS stuff here... -->
</ios>
Reference : https://jira.appcelerator.org/browse/TIMOB-19682
https://github.com/appcelerator/titanium_mobile/pull/7053
https://github.com/appcelerator/titanium_mobile/pull/6891

Related

unable to start rabbitmq and exits with reason {'EXIT',nodistribution} in context start_error

We are facing issues while running RabbitMQ service, the service when ran through cmd, we are getting below stacktrace:
C:\Program Files\RabbitMQ Server\rabbitmq_server-3.8.4\sbin>rabbitmq-server.bat
15:53:13.906 [error]
15:53:13.906 [error] Supervisor net_sup had child net_kernel started with net_kernel:start_link([rabbit_prelaunch_5364#localhost,shortnames], false, net_sup_dynamic) at undefined exit with reason {'EXIT',nodistribution} in context start_error
BOOT FAILED
===========
15:53:13.906 [error] CRASH REPORT Process <0.200.0> with 0 neighbours exited with reason: {error,badarg} in gen_server:init_it/6 line 401
Exception during startup:
15:53:13.922 [error] BOOT FAILED
15:53:13.922 [error] ===========
supervisor:children_map/4 line 1171
15:53:13.922 [error] Exception during startup:
supervisor:'-start_children/2-fun-0-'/3 line 355
supervisor:do_start_child/2 line 371
15:53:13.922 [error]
supervisor:do_start_child_i/3 line 385
15:53:13.922 [error] supervisor:children_map/4 line 1171
rabbit_prelaunch:run_prelaunch_first_phase/0 line 27
15:53:13.922 [error] supervisor:'-start_children/2-fun-0-'/3 line 355
rabbit_prelaunch:do_run/0 line 108
15:53:13.922 [error] supervisor:do_start_child/2 line 371
rabbit_prelaunch_dist:setup/1 line 15
15:53:13.922 [error] supervisor:do_start_child_i/3 line 385
rabbit_prelaunch_dist:duplicate_node_check/1 line 51
15:53:13.922 [error] rabbit_prelaunch:run_prelaunch_first_phase/0 line 27
error:{badmatch,
15:53:13.923 [error] rabbit_prelaunch:do_run/0 line 108
{error,
15:53:13.923 [error] rabbit_prelaunch_dist:setup/1 line 15
{{shutdown,
15:53:13.923 [error] rabbit_prelaunch_dist:duplicate_node_check/1 line 51
{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},
15:53:13.923 [error] error:{badmatch,
{child,undefined,net_sup_dynamic,
15:53:13.923 [error] {error,
{erl_distribution,start_link,
15:53:13.923 [error] {{shutdown,
[[rabbit_prelaunch_5364#localhost,shortnames],
15:53:13.923 [error] {failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},
false,net_sup_dynamic]},
15:53:13.923 [error] {child,undefined,net_sup_dynamic,
permanent,1000,supervisor,
15:53:13.923 [error] {erl_distribution,start_link,
[erl_distribution]}}}}
15:53:13.923 [error] [[rabbit_prelaunch_5364#localhost,shortnames],
15:53:13.923 [error] false,net_sup_dynamic]},
15:53:13.924 [error] permanent,1000,supervisor,
15:53:13.924 [error] [erl_distribution]}}}}
15:53:13.924 [error]
15:53:14.924 [error] Supervisor rabbit_prelaunch_sup had child prelaunch started with rabbit_prelaunch:run_prelaunch_first_phase() at undefined exit with reason {badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[[rabbit_prelaunch_5364#localhost,shortnames],false,net_sup_dynamic]},permanent,1000,supervisor,[erl_distribution]}}}} in context start_error
15:53:14.924 [error] CRASH REPORT Process <0.152.0> with 0 neighbours exited with reason: {{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[[rabbit_prelaunch_5364#localhost,shortnames],false,net_sup_dynamic]},permanent,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}} in application_master:init/4 line 138
{"Kernel pid terminated",application_controller,"{application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,{'EXIT',nodistribution}}},{child,undefined,net_sup_dynamic,{erl_distribution,start_link,[[rabbit_prelaunch_5364#localhost,shortnames],false,net_sup_dynamic]},permanent,1000,supervisor,[erl_distribution]}}}}}},{rabbit_prelaunch_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,rabbitmq_prelaunch,{{shutdown,{failed_to_start_child,prelaunch,{badmatch,{error,{{shutdown,{failed_to_start_child,net_kernel,
Crash dump is being written to: erl_crash.dump...done
We are running the service on Windows 10 pro.
We tried checking the ports if being used by another process, but that's not an issue.
Checked if epmd.exe process is also running.
Both erl.exe and epmd.exe are allowed in windows firewall settings.
While installing RabbitMQ we can see an error like unexpected arguments neighbors string on the step of service installation, but the service installation status was successful.
I encountered a similar issue that was related to Proxifier. The problem was resolved by simply closing the Proxifier application.
It is recommended to close all proxy apps before trying again.

react native run-ios fails

This was working just Friday. No change in code. (Other than doing a time machine backup in Mac).
But since today react-native run-ios just does not seem to be working. The simulator comes up, but then the usual loading http://localhost:8081 does not show up any more. No errors or any indication on why this is failing. The simulator shows my App in home screen. Double clicking it just brings up and the app seems to crash immediately.
But react-native run-android works fine.
Am not sure where to even begin debugging this. (Am new to whole app development).
A few observations,
when I run npm start and then run react-native run-ios, it
usually "detects" that packager is running and skips launchPackager command, but today its not the case, the launchPackager opens regardless of whether a package is already running (Happens both with run-android and run-ios
There is usually below lines once the app begins loading. But today they only show up when I run react-native run-android
8:43:46 PM] find dependencies
transformed 728/728 (100%)
[8:43:46 PM] find dependencies (553ms)
[8:43:46 PM] request:/index.android.bundle?platform=android&dev=true&hot=false&minify=false (661ms)
And when I run react-native logs-ios, I get the below errors
Sep 12 20:53:15 sseshac-in-la com.apple.CoreSimulator.SimDevice.ADE00521-C04E-4EC5-8BE2-FE729523A0B9.launchd_sim[3812] (UIKitApplication:org.reactjs.native.example.X[0x3f02][4589]) <Notice>: Service exited due to signal: Abort trap: 6
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>:
Sep 12 20:53:15 sseshac-in-la SpringBoard[3828] <Warning>: Application 'UIKitApplication:org.reactjs.native.example.X[0x3f02]' crashed.
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>:
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Warning>: notify_suspend_pid() failed with error 7
Sep 12 20:53:15 sseshac-in-la assertiond[3832] <Error>: assertion failed: 15G31 13E230: assertiond + 15801 [3C808658-78EC-3950-A264-79A64E0E463B]: 0x1
Sep 12 20:53:15 sseshac-in-la Unknown[3832] <Error>:
Sep 12 20:53:15 sseshac-in-la SpringBoard[3828] <Warning>: Reply Error: Connection interrupted
Sep 12 20:58:36 sseshac-in-la routined[3817] <Error>: CoreLocation: Error occurred while trying to retrieve motion state update: CMErrorDomain Code:104
UPDATE:
I think the root cause seems to below error
<Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'bundleURL must be non-nil when not implementing loadSourceForBridge'
Note that I am using React native 0.32. I understood that now it "detects" rather than hardcoding the bundleUrl. If someone can throw light on where this "detection" is, will be helpful
Problem turned out to be I was missing an entry in /etc/hosts
127.0.0.1 localhost
I still don't have any clue why it would work before. But that solved it
Probably you have problem with the packager make sure your modules all built you can check by opening
http://localhost:8081/index.ios.bundle?platform=ios&dev=true
in the browser after the build you will get the error

How do I fix "git-svn died of signal 6" during clone?

I'm trying to clone a new SVN repository with little more than trunk/branches/tags in it, but it fails with relatively little information:
git svn clone --stdlayout https://mydomain.com/svn/myrepo
Initialized empty Git repository in /Users/datguy/myrepo/.git/
Authentication realm: <https://mydomain.com> (null)
Password for 'datguy':
error: git-svn died of signal 6
I thought I was using the default versions of git & svn that came with OSX 10.8.3, but I noticed that the svn version reported by the following two commands was different:
$ git svn --version
git-svn version 1.7.10.2 (Apple Git-33) (svn 1.6.18)
$ svn --version
svn, version 1.7.7 (r1393599)
I apparently installed a newer version of svn with homebrew (in /usr/local/bin/svn). I am able to work with this repository using svn, including import, checkout, etc. How do I figure out what's going wrong with git-svn, or update the svn bindings?
EDIT - I dug into the console and found this perl crash report. Unfortunately, I don't have enough experience reading these reports to know what it's trying to tell me.
Process: perl5.12 [13309]
Path: /usr/bin/perl5.12
Identifier: perl5.12
Version: 77.2
Code Type: X86-64 (Native)
Parent Process: git [13308]
User ID: 501
PlugIn Path: /Library/Perl/5.12/darwin-thread-multi-2level/auto/SVN/_Ra/_Ra.bundle
PlugIn Identifier: _Ra.bundle
PlugIn Version: ??? (52)
Date/Time: 2013-04-18 15:20:16.512 -0400
OS Version: Mac OS X 10.8.3 (12D78)
Report Version: 10
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
__abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff977d0d46 __kill + 10
1 libsystem_c.dylib 0x00007fff968b6ec0 __abort + 193
2 libsystem_c.dylib 0x00007fff9687877d __chk_fail + 35
3 libsystem_c.dylib 0x00007fff968787f0 __memset_chk + 41
4 libneon.27.dylib 0x000000010e0b2cf1 ne__ntlm_authenticate + 1018
5 libneon.27.dylib 0x000000010e0b1455 ntlm_challenge + 171
6 libneon.27.dylib 0x000000010e0afd17 ah_post_send + 1400
7 libneon.27.dylib 0x000000010e0a8a10 ne_end_request + 100
8 libneon.27.dylib 0x000000010e0a8bbc ne_request_dispatch + 70
9 libsvn_ra_neon-1.0.0.0.dylib 0x000000010e0729fd svn_ra_neon__request_dispatch + 404
10 libsvn_ra_neon-1.0.0.0.dylib 0x000000010e06d357 svn_ra_neon__exchange_capabilities + 186
11 libsvn_ra_neon-1.0.0.0.dylib 0x000000010e071156 0x10e063000 + 57686
12 libsvn_ra-1.0.0.0.dylib 0x000000010df4d096 svn_ra_open3 + 1170
13 libsvn_ra-1.0.0.0.dylib 0x000000010df4c483 svn_ra_open + 175
14 _Ra.bundle 0x000000010e0db65b _wrap_svn_ra_open + 675
15 libperl.dylib 0x000000010dc36abd Perl_pp_entersub + 2456
16 libperl.dylib 0x000000010dc2eee1 Perl_runops_standard + 38
17 libperl.dylib 0x000000010dbdff26 perl_run + 453
18 perl5.12 0x000000010dbc5d54 main + 221
19 libdyld.dylib 0x00007fff9685b7e1 start + 1
Thanks to this Q&A, I learned how to update the SVN::Core perl module. After doing that, I was able to clone the svn repository.

Can't install Ruby 2.0.0-p0 with RVM. Error running 'make -j8'

I tried to install Ruby 2 using RVM today and it failed. I updated RVM, all my brew formulas and whatnot. This is what I get:
admin:/$ rvm install ruby-2.0.0-p0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p0.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
Installing requirements for osx, might require sudo password.
Already up-to-date.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Installing Ruby from source to: /Users/admin/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)...
ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take a while depending on your connection...
ruby-2.0.0-p0 - #extracting ruby-2.0.0-p0 to /Users/admin/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #extracted to /Users/admin/.rvm/src/ruby-2.0.0-p0
ruby-2.0.0-p0 - #configuring......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
ruby-2.0.0-p0 - #compiling...............................................................................................................................................................................................................
Error running 'make -j8',
please read /Users/admin/.rvm/log/ruby-2.0.0-p0/make.log
There has been an error while running make. Halting the installation.
Anyone ran into this problem?
-EDIT---
/Users/admin/.rvm/log/ruby-2.0.0-p0/make.log:
[2013-03-26 18:16:26] make
CC = gcc-4.2
LD = ld
LDSHARED = gcc-4.2 -dynamiclib
CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Werror=pointer-arith -Werror=write-strings -Werror=declaration-after-statement -Werror=shorten-64-to-32 -Werror=implicit-function-declaration -fno-common -pipe
XCFLAGS = -include ruby/config.h -include ruby/missing.h -D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow -fvisibility=hidden -DRUBY_EXPORT
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -I. -I.ext/include/x86_64-darwin12.3.0 -I./include -I.
DLDFLAGS = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -install_name /Users/admin/.rvm/rubies/ruby-2.0.0-p0/lib/libruby.2.0.0.dylib -current_version 2.0.0 -compatibility_version 2.0.0 -fstack-protector -Wl,-u,_objc_msgSend -fstack-protector -Wl,-u,_objc_msgSend
SOLIBS =
compiling main.c
compiling dmydln.c
compiling dmyencoding.c
compiling version.c
compiling miniprelude.c
translating probes probes.d
compiling bignum.c
compiling class.c
. ./vm_opts.h
compiling compar.c
compiling complex.c
compiling dir.c
compiling dln_find.c
compiling enum.c
compiling enumerator.c
compiling error.c
compiling eval.c
compiling load.c
compiling proc.c
compiling file.c
compiling gc.c
compiling hash.c
compiling inits.c
compiling io.c
compiling marshal.c
compiling math.c
compiling node.c
compiling numeric.c
compiling object.c
compiling pack.c
compiling parse.c
compiling process.c
compiling random.c
compiling range.c
compiling rational.c
compiling re.c
compiling regcomp.c
compiling regenc.c
compiling regerror.c
compiling regexec.c
compiling regparse.c
compiling regsyntax.c
compiling ruby.c
compiling safe.c
compiling signal.c
compiling sprintf.c
compiling st.c
compiling strftime.c
compiling string.c
compiling struct.c
compiling time.c
compiling transcode.c
compiling util.c
compiling variable.c
compiling compile.c
compiling debug.c
compiling iseq.c
compiling vm.c
compiling vm_dump.c
compiling vm_backtrace.c
compiling vm_trace.c
compiling thread.c
compiling cont.c
compiling ./enc/ascii.c
compiling ./enc/us_ascii.c
compiling ./enc/unicode.c
compiling newline.c
compiling ./enc/utf_8.c
compiling ./missing/setproctitle.c
compiling dmyext.c
compiling dln.c
compiling encoding.c
compiling dmyversion.c
compiling array.c
linking miniruby
generating encdb.h
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:375: [BUG] Stack consistency error (sp: 30, bp: 28)
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.
-- Control frame information -----------------------------------------------
c:0007 p:0081 s:0030 e:000029 CLASS /Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:375
c:0006 p:0014 s:0026 e:000025 CLASS /Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:354
c:0005 p:0011 s:0024 e:000023 CLASS /Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:341
c:0004 p:0020 s:0020 e:000019 TOP /Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:270 [FINISH]
c:0003 p:---- s:0018 e:000017 CFUNC :require
c:0002 p:0007 s:0014 E:0006e8 EVAL ./tool/generic_erb.rb:2 [FINISH]
c:0001 p:0000 s:0002 E:0015f8 TOP [FINISH]
./tool/generic_erb.rb:2:in `<main>'
./tool/generic_erb.rb:2:in `require'
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:270:in `<top (required)>'
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:341:in `<class:ERB>'
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:354:in `<class:Compiler>'
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/erb.rb:375:in `<class:Scanner>'
-- C level backtrace information -------------------------------------------
0 miniruby 0x0000000102506e44 rb_vm_bugreport + 164
1 miniruby 0x00000001023de15e report_bug + 302
2 miniruby 0x00000001023de414 rb_bug + 180
3 miniruby 0x00000001024fcec0 vm_exec_core + 32080
4 miniruby 0x00000001024fd09e vm_exec + 94
5 miniruby 0x00000001024fdf7a rb_iseq_eval + 266
6 miniruby 0x00000001023e2d72 rb_load_internal + 306
7 miniruby 0x00000001023e44c1 rb_require_safe + 1313
8 miniruby 0x00000001024ecc84 call_cfunc_1 + 20
9 miniruby 0x00000001024f3146 vm_call_cfunc + 1046
10 miniruby 0x0000000102501d00 vm_call_method + 224
11 miniruby 0x00000001024f8383 vm_exec_core + 12819
12 miniruby 0x00000001024fd09e vm_exec + 94
13 miniruby 0x00000001024fde4e rb_iseq_eval_main + 206
14 miniruby 0x00000001023e14df ruby_exec_internal + 111
15 miniruby 0x00000001023e24c2 ruby_run_node + 82
16 miniruby 0x00000001023a85df main + 79
17 libdyld.dylib 0x00007fff8544f7e1 start + 0
-- Other runtime information -----------------------------------------------
* Loaded script: ./tool/generic_erb.rb
* Loaded features:
0 enumerator.so
1 /Users/admin/.rvm/src/ruby-2.0.0-p0/lib/cgi/util.rb
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:111: [BUG] Stack consistency error (sp: 38, bp: 36)
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
* /Library/Logs/CrashReporter
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
the more detail of.
-- Control frame information -----------------------------------------------
c:0006 p:0038 s:0038 e:000037 CLASS /Users/admin/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:111
c:0005 p:0035 s:0034 e:000033 CLASS /Users/admin/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:107
c:0004 p:0009 s:0032 e:000031 TOP /Users/admin/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:85 [FINISH]
c:0003 p:---- s:0030 e:000029 CFUNC :require
c:0002 p:0098 s:0026 E:002668 EVAL ./tool/mkconfig.rb:11 [FINISH]
c:0001 p:0000 s:0002 E:0001f8 TOP [FINISH]
./tool/mkconfig.rb:11:in `<main>'
./tool/mkconfig.rb:11:in `require'
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:85:in `<top (required)>'
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:107:in `<module:FileUtils>'
/Users/admin/.rvm/src/ruby-2.0.0-p0/lib/fileutils.rb:111:in `<module:NoWrite>'
-- C level backtrace information -------------------------------------------
0 miniruby 0x0000000101179e44 rb_vm_bugreport + 164
1 miniruby 0x000000010105115e report_bug + 302
2 miniruby 0x0000000101051414 rb_bug + 180
3 miniruby 0x000000010116fec0 vm_exec_core + 32080
4 miniruby 0x000000010117009e vm_exec + 94
5 miniruby 0x0000000101170f7a rb_iseq_eval + 266
6 miniruby 0x0000000101055d72 rb_load_internal + 306
7 miniruby 0x00000001010574c1 rb_require_safe + 1313
8 miniruby 0x000000010115fc84 call_cfunc_1 + 20
9 miniruby 0x0000000101166146 vm_call_cfunc + 1046
10 miniruby 0x0000000101174d00 vm_call_method + 224
11 miniruby 0x000000010116b383 vm_exec_core + 12819
12 miniruby 0x000000010117009e vm_exec + 94
13 miniruby 0x0000000101170e4e rb_iseq_eval_main + 206
14 miniruby 0x00000001010544df ruby_exec_internal + 111
15 miniruby 0x00000001010554c2 ruby_run_node + 82
16 miniruby 0x000000010101b5df main + 79
17 libdyld.dylib 0x00007fff8544f7e1 start + 0
18 ??? 0x0000000000000009 0x0 + 9
-- Other runtime information -----------------------------------------------
* Loaded script: ./tool/mkconfig.rb
* Loaded features:
0 enumerator.so
[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html
make: *** [encdb.h] Abort trap: 6
make: *** Waiting for unfinished jobs....
make: *** [.rbconfig.time] Abort trap: 6
Make sure to install latest version of Command Line Tools for Xcode and follow this instruction:
rvm get stable
rvm autolibs enable
rvm install ruby || rvm install ruby --with-gcc=clang
Remove lines with 'rvm_autolibs_flag=' from '/etc/rvmrc', please clean it manually, then
rvm get stable
rvm autolibs enable
rvm install ruby || rvm install ruby --with-gcc=clang

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.