Re: [RubyMotion] signal EXC_BAD_ACCESS when set chinese character as app's name

85 views
Skip to first unread message

Andy Waite

unread,
Mar 4, 2013, 5:17:49 AM3/4/13
to rubym...@googlegroups.com
Have you set the encoding in the first line of your Rakefile? e.g.:

    # -*- coding: utf-8 -*-

Andy

On 4 March 2013 06:43, Jie Su <skywal...@gmail.com> wrote:
My app is ready to release, but after change app.name = 'hello' to app.name = '你好', it crashed.
It's crashed too when deploy to a device
Is this a bug? How to fix this?

rake simulator debug=1
** Invoke simulator (first_time)
** Invoke build:simulator (first_time)
** Execute build:simulator
** Execute simulator
DYLD_FRAMEWORK_PATH="/Applications/Xcode.app/Contents/Developer/../Frameworks":"/Applications/Xcode.app/Contents/Developer/../OtherFrameworks" /Library/RubyMotion/bin/sim 1 1 6.1 "/Applications/Xcode.app/Contents/Developer" "./build/iPhoneSimulator-5.0-Development/你好.app"
/Users/skywalker/dev/rubymotion/chatme/31727: No such file or directory
Attaching to process 31727.
Reading symbols for shared libraries . done
0x8fed0030 in __dyld__dyld_start ()
Function "rb_exc_raise" not defined.
Breakpoint 1 (rb_exc_raise) pending.
Function "malloc_error_break" not defined.
Breakpoint 2 (malloc_error_break) pending.
Reading symbols for shared libraries ........................................................................................................................... done
Breakpoint 1 at 0x3d6796
Pending breakpoint 1 - "rb_exc_raise" resolved
Breakpoint 2 at 0x976e281b
Pending breakpoint 2 - "malloc_error_break" resolved
Reading symbols for shared libraries . done
Reading symbols for shared libraries . done

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000000
0x017a7f3b in _CreateCachePathEmbedded ()


--
 
---
You received this message because you are subscribed to the Google Groups "RubyMotion - Ruby for iOS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubymotion+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Joffrey Jaffeux

unread,
Mar 4, 2013, 5:21:07 AM3/4/13
to rubym...@googlegroups.com, an...@andywaite.com
Hi andy,


Are you sure you are using last RubyMotion version ?

In the mean time you can still keep your old app_name and use app.info_plist['CFBundleDisplayName'] = "你好" this should work

Michael nietzold

unread,
Mar 4, 2013, 11:41:13 AM3/4/13
to rubym...@googlegroups.com
Its the same bug like the space in app name?

The workaroubd was to do a normal character app name but change only the display name. 

Von meinem iDingens gesendet...
Reply all
Reply to author
Forward
0 new messages