Forums Archived

The forums are being archived. See this topic for more information.

Nasty RSDL crash

Get help and support with Rubygame

Nasty RSDL crash

Postby cgmjr » Thu Oct 07, 2010 8:53 pm

Invoking my main script from a Terminal window, Mac OS X, using RSDL I get the following error, and a big nasty dump that I'm posting a fragment below:
Code: Select all
~/desktop/sandbox/sleepmirror/lib: rsdl SleepMirror.rb
Git 'r done
/Library/Ruby/Gems/1.8/gems/nice-ffi-0.4/lib/nice-ffi/library.rb:143: [BUG] Bus Error
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

Abort trap

The "Git'r'done" line is just a puts I dropped in for tracing purposes. The fragment of the dump is:
Code: Select all
Process:         rsdl [1957]
Path:            /usr/local/bin/rsdl
Identifier:      rsdl
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  bash [1815]

Date/Time:       2010-10-07 15:49:15.767 -0500
OS Version:      Mac OS X 10.6.4 (10F569)
Report Version:  6

Interval Since Last Report:          251846 sec
Crashes Since Last Report:           5
Per-App Crashes Since Last Report:   5
Anonymous UUID:                      CF561F07-D36A-46B1-B328-ECC1746B5F66

Exception Type:  EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Application Specific Information:
abort() called

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libSystem.B.dylib                0x90eaaef6 __kill + 10
1   libSystem.B.dylib                0x90eaaee8 kill$UNIX2003 + 32
2   libSystem.B.dylib                0x90f3d62d raise + 26
3   libSystem.B.dylib                0x90f536e4 abort + 93
4   libruby.1.dylib                  0x0001bbe6 rb_sys_fail + 0
5   libruby.1.dylib                  0x00084829 rb_trap_restore_mask + 316
6   libSystem.B.dylib                0x90eb01fb _sigtramp + 43
7   ???                              0000000000 0 + 0
8   libSDL_image.dylib               0x1541e74c IMG_LoadTyped_RW + 316
9   libSDL_image.dylib               0x1541e83c IMG_Load + 92
10  ffi_c.bundle                     0x12fcda47 rbffi_InvokeLrL + 224 (Call.c:727)
11  ffi_c.bundle                     0x12fd0565 attached_method_invoke + 40 (MethodHandle.c:182)
12  ffi_c.bundle                     0x12fd6e05 .LCFI6 + 33
13  libruby.1.dylib                  0x0001e2f2 rb_rescue + 799


I got no clue...
User avatar
cgmjr
 
Posts: 39
Joined: Mon Jan 11, 2010 6:41 am

Re: Nasty RSDL crash

Postby shawn42 » Thu Oct 07, 2010 9:34 pm

what does the output of rsdl -v give you? Does it match your ruby version?
if not, try installing rsdl via gem install rsdl

HTH
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Nasty RSDL crash

Postby cgmjr » Wed Oct 20, 2010 5:53 am

shawn42 wrote:what does the output of rsdl -v give you? Does it match your ruby version?
if not, try installing rsdl via gem install rsdl

HTH


Yes, they match:
Code: Select all
~/desktop/sandbox/sleepmirror/lib: rsdl -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
~/desktop/sandbox/sleepmirror/lib: ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
~/desktop/sandbox/sleepmirror/lib:


Just not sure. At this point I'll have to do something simple in a new Rubygame app to see if it is environment or something in my main app. I wonder...do Events behave the same in OSX? Wasn't there something concerning "new style" events a few revs ago?
User avatar
cgmjr
 
Posts: 39
Joined: Mon Jan 11, 2010 6:41 am

Re: Nasty RSDL crash

Postby shawn42 » Wed Oct 20, 2010 11:12 am

Can you put your code on gist.github.com or put up a link to it? I'll take a look and see if it runs for me here on my mac book pro.
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Nasty RSDL crash

Postby cgmjr » Fri Oct 22, 2010 3:04 pm

shawn42 wrote:Can you put your code on gist.github.com or put up a link to it? I'll take a look and see if it runs for me here on my mac book pro.


I have it at Gitorious atm, can you access that? I'm a rookie at open source dev, so I'm not sure about how to share code with you.
User avatar
cgmjr
 
Posts: 39
Joined: Mon Jan 11, 2010 6:41 am

Re: Nasty RSDL crash

Postby shawn42 » Fri Oct 22, 2010 3:27 pm

Can you post or send me a link to your repository?
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Nasty RSDL crash

Postby shawn42 » Sun Oct 24, 2010 1:35 am

I looked at your code, and after changing some Windows code out, everything ran fine on my end. ... not sure..
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm

Re: Nasty RSDL crash

Postby cgmjr » Sun Oct 24, 2010 3:12 am

shawn42 wrote:I looked at your code, and after changing some Windows code out, everything ran fine on my end. ... not sure..


Dang. Was it just that UUID code you dragged out?

I reckon I can just uninstall / reinstall everything. Did you use Jacius' Mac Pack to set things up?
User avatar
cgmjr
 
Posts: 39
Joined: Mon Jan 11, 2010 6:41 am

Re: Nasty RSDL crash

Postby shawn42 » Sun Oct 24, 2010 12:33 pm

yes, I only pulled out the UUID code. However, I did not install via the mac pack. I have my ruby installed via RVM, my RSDL installed via rubygems, and my SDL libs installed via mac ports.

I haven't used the mac pack myself... maybe this is something jacius needs to chime in on.
User avatar
shawn42
 
Posts: 109
Joined: Tue Feb 10, 2009 8:22 pm


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron