vkolgi / tuneup_js

A JavaScript library to ease automated iOS UI testing with UIAutomation and Instruments.
http://www.tuneupjs.org
MIT License
717 stars 147 forks source link

incorrect checksum for freed object #78

Open yezilife opened 10 years ago

yezilife commented 10 years ago

I updated to iOS 8 SDK, and also updated tuneup js, but I got following error when I try to run automation: ruby(22747,0x7fff76253300) malloc: * error for object 0x100801a08: incorrect checksum for freed object - object was probably modified after being freed. * set a breakpoint in malloc_error_break to debug ./runTestCase.sh: line 119: 22747 Abort trap: 6 $BASEDIR/automation/tests/tuneup/test_runner/run $PROJECT $BASEDIR/automation/tests/$PROJECT/$TESTCASE.js $BASEDIR/automation/results/ $TEMPLATE_OPTION $PLATFORM_OPTION -c -v

any idea? Thanks/

alexvollmer commented 10 years ago

It looks like a problem with Ruby. What version are you running and is it one that came with OS X or one you installed separately?

yezilife commented 10 years ago

I appreciate your quick reply, Alex! tunesup works fine with iOS 7., I just upgrade the OS and Xcode SDK to iOS8., I didn't remember I install Ruby, but I did install COCOAPODS this morning as well by using "sudo gem install cocoapods", not sure is cocoapods did something or not which version of Ruby should I use?

yezilife commented 10 years ago

actually I ended up getting the latest tuneup js by clone from git hub directly but not through cocoapods

yezilife commented 10 years ago

I believe this is not the new tuneup script issue, the same error happens if I switch back to old tuneup script, interesting thing is, if I keep trying RunTestCase.sh, it will pass the error after a few try, but eventually it will fail at later steps (I think it's Instruments path)

yezilife commented 10 years ago

even I run >ruby -v ruby(24391,0x7fff76253300) malloc: * error for object 0x100801a08: incorrect checksum for freed object - object was probably modified after being freed. * set a breakpoint in malloc_error_break to debug Abort trap: 6

alexvollmer commented 10 years ago

Are you running the stock Ruby, or one you installed yourself?

yezilife commented 10 years ago

i am not sure, i didn't do any configuration, should I use which one? and how can I specify?

yezilife commented 10 years ago

I fixed the ruby issue by installing Ruby 2.1.4, new issues shows up:

Launching instruments. Will retry 0 more times if it doesn't initialize

2014-10-29 15:32:14.736 instruments[63836:226173] WebKit Threading Violation - initial use of WebKit from a secondary thread. Instruments Trace Error : Target failed to run: The operation couldn’t be completed. (FBSOpenApplicationErrorDomain error 4.) : Failed to launch process with bundle identifier