Getting a segmentation fault

7 views
Skip to first unread message

jburrell

unread,
Mar 5, 2008, 9:47:13 AM3/5/08
to ShatteredRuby
Hi,

I've tried to follow the tutorial, had 'issues', uninstalled,
reinstalled, recreated and had more issues. I eventually found the
mail here:
http://groups.google.com/group/shatteredruby/browse_thread/thread/eb40e5544354aba/727ebd64e14430d2?lnk=gst&q=%5Bcreate_viewport#727ebd64e14430d2
... on this group. I uninstalled again, used the specified install
command and was doing much better until I got to the Actor section.
My actor is created, and I have added the @ruby = DirtyRuby.new line
to my state. When I run it, it then throws a Segmentation fault:
=============================================================================================
Warning:c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
importenv is deprecated after Ruby 1.8.1 (no replacement)
c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/game_loader.rb:
93: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]


This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.
=============================================================================================

As you can see, I'm running Ruby 1.8.6, Shattered 0.5.1, on Windows
XP. I am using the OpenGL renderer. Using the DirectX renderer (the
default) gives me
=============================================================================================
Warning:c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:
importenv is deprecated after Ruby 1.8.1 (no replacement)
c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/game_loader.rb:
74:in `initialise': OGRE EXCEPTION(3:): Failed to create Direct3D9
Device: Not available in D3D9RenderWindow::createD3DResources
at ..\src\OgreD3D9RenderWindow.cpp (line 471) (OgreError)
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
game_loader.rb:74:in `setup_ogre'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
game_loader.rb:49:in `load_environment'
from c:/ruby/lib/ruby/gems/1.8/gems/shattered_ruby-0.5.1/lib/
game_loader.rb:27:in `run'
from ./script/runner.rb:4:in `start_game'
from script/runner:8
=============================================================================================
I do have DX9c installed.

Any ideas? I've tried the advice on the tutorial about the mesh, but
my mesh diffs to zero against the downloaded one.

Cheers,
Jamie

JeremyW...@gmail.com

unread,
Mar 5, 2008, 2:01:15 PM3/5/08
to ShatteredRuby
Go through the emails on this forum and try all the little fixes. The
problems might not be the same, but the fix might work.

Good luck.

~Jeremy

On Mar 5, 6:47 am, jburrell <jamieburr...@gmail.com> wrote:
> Hi,
>
> I've tried to follow the tutorial, had 'issues', uninstalled,
> reinstalled, recreated and had more issues. I eventually found the
> mail here:http://groups.google.com/group/shatteredruby/browse_thread/thread/eb4...

Jamie Burrell

unread,
Mar 5, 2008, 5:06:07 PM3/5/08
to shatte...@googlegroups.com
Hi,

Thanks, but it seemed I was on a loser from the get-go. The machine I'd
tried this out on first used an nVidia NVS card, none of which support
3D. I figured this after first running ogre.rb then Ogre itself.
I've since gone through the same steps at home (dual SLI nVidia 7900s),
and it's all fine. Except for the bit about translation, but that looks
like it's a known problem. To test it I put in some cursor key
rotation. If no-one else is working on updating the Wiki, let me know
and I'll be happy to help out.

Cheers,
Jamie

Reply all
Reply to author
Forward
0 new messages