Stack level too deep using rubygems to load a gem on ruboto
-----------------------------------------------------------
Key: JRUBY-5563
URL: http://jira.codehaus.org/browse/JRUBY-5563
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.6RC2
Environment: Android 3.0 API level 11
OSX 10.6.6
jruby-jars from master
Reporter: Uwe Kubosch
Fix For: JRuby 1.6RC3
I am trying to get rubygems working on ruboto-core. I have added a gem to the
scripts directory and set up rubygems accordingly. The setup seems to work,
but fails while loading the first gem. I am tracing this bit by bit, but
debugging is very slow due to recompile and install.
It looks like GemPathSearcher is successfully autoloaded just before the app
crashes. Below is a bit of output. The System.out lines have been added by
me. Is there a better way to trace where the app fails? I can attach the
complete application or give more output if requested.
{noformat}
I/System.out( 2095): Kernel.autoload Gem::GemPathSearcher calling
LoadService.require rubygems/gem_path_searcher
I/System.out( 2095): LoadService.require rubygems/gem_path_searcher
I/System.out( 2095): LoadService.featureAlreadyLoaded rubygems/gem_path_searcher
I/System.out( 2095): LoadService.featureAlreadyLoaded false
I/System.out( 2095): LoadService.require calling smartLoad
rubygems/gem_path_searcher
I/System.out( 2095): LoadService.smartLoad rubygems/gem_path_searcher
I/System.out( 2095): LoadService.featureAlreadyLoaded
rubygems/gem_path_searcher.class
I/System.out( 2095): LoadService.featureAlreadyLoaded false
I/System.out( 2095): LoadService.featureAlreadyLoaded
rubygems/gem_path_searcher.rb
I/System.out( 2095): LoadService.featureAlreadyLoaded false
D/dalvikvm( 2095): GC_CONCURRENT freed 1601K, 10% free 18069K/19975K, paused
16ms+14ms
I/System.out( 2095): LoadService.smartLoad calling tryLoadingLibraryOrScript
org.jruby.runtime.load.LoadService$SearchState: library=ExternalScript:
file:/data/app/no.datek.nettbuss.operator-1.apk!/rubygems/gem_path_searcher.rb,
loadName=rubygems/gem_path_searcher.rb, suffixType=Both,
searchFile=rubygems/gem_path_searcher
I/System.out( 2095): LoadService.tryLoadingLibraryOrScript
org.jruby.runtime.load.LoadService$SearchState: library=ExternalScript:
file:/data/app/no.datek.nettbuss.operator-1.apk!/rubygems/gem_path_searcher.rb,
loadName=rubygems/gem_path_searcher.rb, suffixType=Both,
searchFile=rubygems/gem_path_searcher
I/System.out( 2095): LoadService.featureAlreadyLoaded
rubygems/gem_path_searcher.rb
I/System.out( 2095): LoadService.featureAlreadyLoaded false
I/System.out( 2095): loading
file:/data/app/no.datek.nettbuss.operator-1.apk!/rubygems/gem_path_searcher.rb
I/System.out( 2095): loaded
file:/data/app/no.datek.nettbuss.operator-1.apk!/rubygems/gem_path_searcher.rb
OK
I/System.out( 2095): LoadService.tryLoadingLibraryOrScript true
I/System.out( 2095): LoadService.smartLoad return true
I/System.out( 2095): LoadService.require rubygems/gem_path_searcher true
I/System.out( 2095): Kernel.autoload Gem::GemPathSearcher got
LoadService.require rubygems/gem_path_searcher true
I/dalvikvm( 2095): threadid=1: stack overflow on call to
Ljava/lang/String;.equals:ZL
I/dalvikvm( 2095): method requires 60+20+0=80 bytes, fp is 0x441ea338 (56
left)
I/dalvikvm( 2095): expanding stack end (0x441ea300 to 0x441ea000)
I/dalvikvm( 2095): Shrank stack (to 0x441ea300, curFrame is 0x441ea4c0)
W/System.err( 2095): Invalid gemspec in
[/data/data/no.datek.nettbuss.operator/files/scripts/gems/1.8/specifications/activesupport-2.3.9.gemspec]:
stack level too deep
I/System.out( 2095): GemPathSearcher.find active_support
W/System.err( 2095): org.jruby.exceptions.RaiseException: (LoadError) no such
file to load -- active_support
W/System.err( 2095): at
org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040)
W/System.err( 2095): at
Kernel.require(file:/data/app/no.datek.nettbuss.operator-1.apk!/rubygems/custom_require.rb:29)
W/System.err( 2095): at
#<Class:0x1407abe00>.(root)(/data/data/no.datek.nettbuss.operator/files/scripts/setup_load_path.rb:49)
W/System.err( 2095): at
org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040)
W/System.err( 2095): at
#<Class:0x1410b5090>.(root)(/data/data/no.datek.nettbuss.operator/files/scripts/setup_load_path.rb:22)
W/System.err( 2095): at
org.jruby.RubyKernel.instance_eval(org/jruby/RubyKernel.java:2013)
W/System.err( 2095): at
Java::OrgRuboto::RubotoActivity.on_create(./ruboto.rb:175)
W/System.err( 2095): at
Java::OrgRuboto::RubotoActivity.when_launched(./ruboto.rb:248)
W/System.err( 2095): at
Java::OrgRuboto::RubotoActivity.handle_create((eval):3)
W/System.err( 2095): at #<Class:0x1407abe00>.(root)(<script>:6)
W/System.err( 2095): org.jruby.exceptions.RaiseException: (LoadError) no such
file to load -- active_support
W/System.err( 2095): at
org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040)
W/System.err( 2095): at
Kernel.require(file:/data/app/no.datek.nettbuss.operator-1.apk!/rubygems/custom_require.rb:29)
W/System.err( 2095): at
#<Class:0x1407abe00>.(root)(/data/data/no.datek.nettbuss.operator/files/scripts/setup_load_path.rb:49)
W/System.err( 2095): at
org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1040)
W/System.err( 2095): at
#<Class:0x1410b5090>.(root)(/data/data/no.datek.nettbuss.operator/files/scripts/setup_load_path.rb:22)
W/System.err( 2095): at
org.jruby.RubyKernel.instance_eval(org/jruby/RubyKernel.java:2013)
W/System.err( 2095): at
Java::OrgRuboto::RubotoActivity.on_create(./ruboto.rb:175)
W/System.err( 2095): at
Java::OrgRuboto::RubotoActivity.when_launched(./ruboto.rb:248)
W/System.err( 2095): at
Java::OrgRuboto::RubotoActivity.handle_create((eval):3)
W/System.err( 2095): at #<Class:0x1407abe00>.(root)(<script>:6)
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email