Stack Level Too Deep Crash #1
Comments
Hi, @background_image = Gosu::Image.new(self, "media/background.jpg", true) So you have two options:
@background_image = Gosu::Image.new(self, "media/background.jpg", true) to @background_image = Gosu::Image.new(self, Ruboto::R::drawable::background, true) and that should do the trick. Anyway I'm still working to release a first stable version of gosu-android also, sometime soon I'll upload new samples and I'll create a wiki with more detailed information. |
Hi, Thanks for your reply. I don't think that's the problem, because I deleted all of that code -- I only have a standard, freshly-generated Ruboto app, with one additional line:
This is enough to show this error; I don't even load any images, sounds, etc. It may be because I'm using BlueStacks, so I'll see if I get a chance to try it on a real phone. Cheers (great project by the way)! |
I just realize that the error occurs when loading android openGL libraries. java_import "javax.microedition.khronos.egl.EGL10" I don't have any experience in BlueStacks, could you add this line to your main.rb file an tell me the output? |
Hi, I have the OpenGL 3d rotating cube OpenGL sample that ships with Ruboto working (code is below). It works fine (the same as ruboto-irb). It uses Android OpenGL, and has the same line of code you asked me about.
|
Sorry, I should have just listened to you from the start. Runs fine on my real phone. If I start importing stuff in my main .rb file before requiring gosu, eventually I'll get to the point where I On my real device, I can get a "hello world" ruboto app with Here's the stack from Bluestacks:
Notice the last section (which I spaced out). You have RubyKernal:1027 > custom_require.rb:1 > custom_require.rb:36 > RubyKernal:1027 > main-window:1 > custom_require:1 > custom_require:36 > ... This might be a core |
This was fixed with the underlying Ruboto fix (require gosu in a large stack thread). |
Hi,
I just installed gosu today via Ruby 1.9.3 (
gem install ...
) on Windows. I have confirmed that:However, I can't get a working combination of the two. When I generate a new ruboto sample app and just add
require 'gosu'
, I get this exception at runtime:FATAL EXCEPTION: Thread-11 org.jruby.embed.EvalFailedException: (SystemStackError) stack level too deep .. at RUBY.JavaImports(file:/data/app/com.blastcube-1.apk!/lib/requires.rb:7
Full exception is pictured below. I followed the deployment instructions from the trunk branch
Screenshot below of logcat on Bluestacks.
The text was updated successfully, but these errors were encountered: