I have the newest cocos2d, Xcode4 and iOS5 SDK. I am testing my app on my iPhone 4 (5.0.1). No crashes occur on the simulator - only on devices.
On first run, my app crashes before entering the first scene, which it does by CCTransitionFade. It crashes in CCLayer at the line:
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
If i load the app again, it boots fine - no crashes.
I removed the CCTransition and made the first scene boot up without a transition, and i received no crash on first run (great!). However, during the game there is a point where i put a colorlayer over the top of the gamescene and fade the opacity of the color layer down to 50% or so. The game crashes here.
These crashes ONLY occur if the app is being run for the first time. Both crashes have opacity fading in common. Both crashes fail at the same line, in CCLayer.
This crash occurs on iPhone 4 (iOS 5.0.1) and iPad (iOS 5.0.1), but NOT iPhone 4 (iOS 4.2.1).
Does anyone have any thoughts, ideas or suggestions? I'm at a complete loss!
debug version running on device via xcode, crash at start:
Mar 6 23:36:53 unknown Boco[10699] : cocos2d: surface size: 640x960
Mar 6 23:37:08 unknown securityd[10702] : MS:Notice: Installing: (null) [securityd] (675.00)
Mar 6 23:37:08 unknown ReportCrash[10700] : MS:Notice: Installing: (null) [ReportCrash] (675.00)
Mar 6 23:37:09 unknown ReportCrash[10700] : Formulating crash report for process Boco[10699]
Mar 6 23:37:09 unknown com.apple.launchd[1] : (UIKitApplication:com.sunlight.boco[0x79a]) Bug: launchd_core_logic.c:3730 (25147):3
Mar 6 23:37:09 unknown com.apple.launchd[1] : (UIKitApplication:com.sunlight.boco[0x79a]) Assuming job exited: : 10: No child processes
Mar 6 23:37:09 unknown com.apple.launchd[1] : (UIKitApplication:com.sunlight.boco[0x79a]) Job appears to have crashed: Segmentation fault: 11
Mar 6 23:37:09 unknown SpringBoard[10505] : Application 'boco' exited abnormally with signal 11: Segmentation fault: 11
Mar 6 23:37:09 unknown ReportCrash[10700] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Boco_2012-03-06-233708_James-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
release version running on device ad hoc, crashing at color layer opacity change
Mar 6 23:57:40 unknown ReportCrash[343] : MS:Notice: Installing: (null) [ReportCrash] (675.00)
Mar 6 23:57:41 unknown ReportCrash[343] : Formulating crash report for process Boco[338]
Mar 6 23:57:41 unknown com.apple.launchd[1] : (UIKitApplication:com.sunlight.boco[0xe5d6]) Job appears to have crashed: Bus error: 10
Mar 6 23:57:41 unknown SpringBoard[28] : Application 'boco' exited abnormally with signal 10: Bus error: 10
Mar 6 23:57:41 unknown ReportCrash[343] : Saved crashreport to /var/mobile/Library/Logs/CrashReporter/Boco_2012-03-06-235740_James-iPhone.plist using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
Didn't find a solution to this problem (see http://www.cocos2d-iphone.org/forum/topic/29958?replies=10#post-147371), so I created a new xcode project and ported all my code over. Solved the problem!
Related
I'm getting an error when I try to use imerode() from the command line, e.g.
test=magic([100 100])>200;
imclose(test,strel('disk',10,0));
I get this error:
Error using images.internal.morphmex Invalid MEX-file
'/Applications/MATLAB_R2017b.app/toolbox/images/images/+images/+internal/morphmex.mexmaci64':
dlopen(/Applications/MATLAB_R2017b.app/toolbox/images/images/+images/+internal/morphmex.mexmaci64,
6): Symbol not found: _OSAtomicDecrement32Barrier Referenced from:
/Applications/MATLAB_R2017b.app/bin/maci64/./libcudart.8.0.dylib
Expected in: /usr/lib/libSystem.B.dylib in
/Applications/MATLAB_R2017b.app/bin/maci64/./libcudart.8.0.dylib.
Error in images.internal.morphop (line 103)
B = images.internal.morphmex(mex_method, B, nhood, height, unpacked_M);
Error in imdilate (line 135) B =
images.internal.morphop(A,se,'dilate',mfilename,varargin{:});
Error in imclose (line 82)
outputImage = imerode(imdilate(inputImage,se,packopt,M),se,packopt,M);
I'm on OS X 10.9.5, with MATLAB R2017b.
I've checked that morphmex.mexmaci64 is there in the given path (above).
Not sure where /./ refers to, but libcudart.8.0.dylib is in maci64 folder.
Not sure where /usr/lib/... is.
EDIT
I have uninstalled R2017b and installed R2017a (why not, just in case...) and when trying to run the same code, I now get this error (which seems worse...)
Segmentation violation detected at Mon Nov 13 13:44:29 2017
Configuration: Crash Decoding : Disabled - No sandbox or build
area path Crash Mode : continue (default) Current
Graphics Driver: Unknown hardware Current Visual : Quartz
Default Encoding : ISO-8859-1 Deployed : false Host
Name : eduroam-206-52.nomadic.bris.ac.uk MATLAB
Architecture : maci64 MATLAB Entitlement ID: 1803495 MATLAB Root
: /Applications/MATLAB_R2017a.app MATLAB Version : 9.2.0.556344
(R2017a) OpenGL : hardware Operating System :
Darwin 13.4.0 Darwin Kernel Version 13.4.0: Mon Jan 11 18:17:34 PST
2016; root:xnu-2422.115.15~1/RELEASE_X86_64 x86_64 Processor ID
: x86 Family 6 Model 69 Stepping 1, GenuineIntel Virtual Machine
: Java 1.7.0_75-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit
Server VM mixed mode Window System : Quartz
Fault Count: 2
Abnormal termination: Trace trap
Can upload error file for rest of message (too long to paste here).
Thanks in advance.
Looks like an installation problem or maybe it is due to the update.
Try to run the following commands in your console:
restoredefaultpath();
rehash toolboxcache;
If everything works without errors, then run:
savepath();
Turns out R2017a, b not compatible with OS Mavericks.
Rolled back to R2016a.
I'm new to OSX and running Mountain Lion in a Virtual Box VM. Xcode was running fine and I managed to create a simple Hello World App. I restarted the VM and when I tried to reopen my project Xcode crashed. I didn't think anything of this at the time but every time that I have relaunched Xcode since, it has frozen at this stage:
The CPU goes up to 95%ish usage and I have to force quit Xcode.
The following is in Xcode_Timestamp.hang:
Date/Time: 2013-06-07 12:02:37 +0100
OS Version: 10.8 (Build 12A269)
Architecture: x86_64
Report Version: 11
Command: Xcode
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Version: 4.6.2 (2067.2)
Build Version: 2
Project Name: IDEApplication
Source Version: 2067002000000000
App Item ID: 497799835
App External ID: 15055625
Parent: launchd [121]
PID: 353
Event: hang
Duration: 0.88s
Steps: 9 (100ms sampling interval)
Hardware model: MacPro3,1
Active cpus: 1
Free pages: 433637 pages (+16260)
Pageins: 1 pages
Pageouts: 0 pages
Process: Xcode [353]
Path: /Applications/Xcode.app/Contents/MacOS/Xcode
Architecture: x86_64
Parent: launchd [121]
UID: 501
Task size: 175291 pages (-18383)
CPU Time: 0.456s
And in system.log:
Jun 7 12:16:07 imorelaptop.hkc2k3.local Dock[136]: no information back from LS about running process
Jun 7 12:16:17 imorelaptop.hkc2k3.local WindowServer[86]: CGXDisableUpdate: UI updates were forcibly disabled by application "Xcode" for over 1.00 seconds. Server has re-enabled them.
Jun 7 12:16:31 imorelaptop.hkc2k3.local WindowServer[86]: disable_update_likely_unbalanced: UI updates still disabled by application "Xcode" after 15.00 seconds (server forcibly re-enabled them after 1.00 seconds). Likely an unbalanced disableUpdate call.
Jun 7 12:16:39 imorelaptop.hkc2k3.local WindowServer[86]: reenable_update_for_connection: UI updates were finally reenabled by application "Xcode" after 23.15 seconds (server forcibly re-enabled them after 1.00 seconds)
Jun 7 12:17:11 imorelaptop.hkc2k3.local sandboxd[461] ([38]): mds(38) deny mach-lookup �#�:�*��;�j�Z��=�����~�הz�Q�F���N�m�mR���>wD+֍�T#���)�`�ثw�T78۲��r���-�j�&��ň����P�6EAM-�0b
���Q��Xh�R��S�^��
Jun 7 12:17:11 imorelaptop kernel[0]: Sandbox: sandboxd(461) deny mach-lookup com.apple.coresymbolicationd
Jun 7 12:17:11 imorelaptop.hkc2k3.local sandboxd[461] ([38]): mds(38) deny mach-lookup �#�:�*��;�j�Z��=�����~�הz�Q�F���N�m�mR���>wD+֍�T#���)�`�ثw�T78۲��r���-�j�&��ň����P�6EAM-�0b
���Q��Xh�R��S�^��
Jun 7 12:19:51 imorelaptop.hkc2k3.local WebProcess[306]: CoreAnimation: unhandled combiner function: 11
I have tried restarting my VM, increasing the RAM to 4GB (from 2GB) and reinstalling Xcode but still experiencing the same issue. I have also tried opening specific apps and files in Xcode, but the application still hangs at the same point.
I recently installed R on a new Macbook Pro running Mountain Lion. When trying to plot data, I get a slew of ATSFontGetFileReference errors, and text doesn't render (though chart elements do):
> plot(study$outcome, study$predictor)
Jan 21 10:55:57 tatou.local R[35029] <Error>: ATSFontGetFileReference failed: error -50.
Jan 21 10:55:57 tatou.local R[35029] <Error>: ATSFontGetFileReference failed: error -50.
Jan 21 10:55:57 tatou.local R[35029] <Error>: ATSFontGetFileReference failed: error -50.
Jan 21 10:55:57 tatou.local R[35029] <Error>: ATSFontGetFileReference failed: error -50.
...
It seems like more of an OS X issue than R, since a little Googling has turned up similar errors for PDF renderers, etc. But I can't seem to find a solution...
All my fonts as well as R appear to be installed for use system-wide. Ideas?
I had the same error using RStudio on OSX 10.7.5. I saved my workspace and then quit RStudio. Upon opening it back up and loading my saved workspace, I ran the plot(x,y) command and there was no longer an error, with the text being displayed as expected.
I don't know your font situation exactly, but I just fixed this issue on mine. I have a mac, and helvetica is automatically installed as a .dfont file. I had downloaded a helvetica.ttf file and put it in 'mac_hd/libary/fonts'. Once I deleted this and restarted R I haven't had the problem. My error was verbatim ' ATSFontGetPostScriptName failed: error -984. ' (I included that to help with google results)
I recently updated to Xcode 4.2. I also updated my new iPad 2 and iPod (latest generation) to iOS 5. I build my app and can debug them no problem.
My older iPod running iOS 4.2.1 (8C148) doesn't run and doesn't give any errors.
The top center panel says "Finished running MyApp on iPod One". (iPod One is the name of my first iPod touch)
There is a flicker at the bottom of Xcode as if it almost went into the debugger and was about to show the bottom output panel but it doesn't. A break point in main doesn't stop it either.
I have no errors and nothing to go on.
I have renewed all provisioning profiles, restored the device, selected "use for development", nothing has helped.
Since there is no feed back from Xcode I do not know what to do.
p.s. The app runs in all of the simulators fine as well.
When I initially select the iPod I see the following series of messages in the console for the devices as shown from the Organizer:
Thu Oct 20 09:42:49 unknown lockdownd[16] : 2ffea000
handle_connection: Could not receive USB message #6 from Xcode.
Killing connection Thu Oct 20 09:42:49 unknown
com.apple.mobile.lockdown[16] : Could not receive size of
message Thu Oct 20 09:42:50 unknown
/Developer/Library/Daemons/DTFetchSymbols[308] : Found paths:
Thu Oct 20 09:42:50 unknown
/Developer/Library/Daemons/DTFetchSymbols[308] : /usr/lib/dyld
Thu Oct 20 09:42:50 unknown
/Developer/Library/Daemons/DTFetchSymbols[308] :
/System/Library/Caches/com.apple.dyld/dyld_shared_cache_armv6 Thu Oct
20 09:42:50 unknown com.apple.mobile.lockdown[16] : Could not
receive size of message Thu Oct 20 09:42:50 unknown lockdownd[16]
: 2ffea000 handle_connection: Could not receive USB message #6
from Xcode. Killing connection Thu Oct 20 09:42:56 unknown
lockdownd[16] : 2ffea000 handle_connection: Could not receive
USB message #6 from MDCrashReportTool. Killing connection
I had the same problem, but I solved it. The cause
unsuported architecture (by default Xcode4.2 uses standard arch= armv7 ) -> add armv6
In addition to adding the armv6 architecture, I had to remove the armv7 entry from my apps info.plist "Required Device Capabilities" entry.
I downloaded and installed final version of Xcode 4. I opened my iPad project and realised that breakpoint's doesn't work on the device. They work ok on simulator though.
Before I was using Xcode 3.2 and everything was working fine.
I also tried creating an empty view based iOS application from scratch and have exactly this same issue. I was googling on that issue, but all solutions were based on previous versions of Xcode.
Any suggestions what am I doing wrong ?
Here is output from a console when running application
Mar 10 14:34:44 unknown installd[547] : entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 10 14:34:44 unknown installd[547] : entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 10 14:34:44 unknown SpringBoard[29] : Killing me.device-debugging-test activate: deactivate: for app installation
Mar 10 14:34:44 unknown installd[547] : entitlement 'keychain-access-groups' has value not permitted by a provisioning profile
Mar 10 14:34:44 unknown installd[547] : entitlement 'application-identifier' has value not permitted by a provisioning profile
Mar 10 14:34:44 unknown SpringBoard[29] : Reloading application state for 'me.device-debugging-test' as its modification date has changed
Mar 10 14:34:45 unknown SpringBoard[29] : Reloading and rendering all application icons.
Mar 10 14:34:46 unknown com.apple.debugserver-48[551] : debugserver-48 for armv6 Copyright (c) 2007-2009 Apple, Inc. All Rights Reserved.
Mar 10 14:34:46 unknown com.apple.debugserver-48[551] : Connecting to com.apple.debugserver service...
Mar 10 14:34:47 unknown com.apple.launchd[1] : (UIKitApplication:me.device-debugging-test[0x4309]) Spawned and waiting for the debugger to attach before continuing...
Mar 10 14:34:47 unknown com.apple.debugserver-48[551] : Got a connection, waiting for debugger instructions for task "(null)".
Mar 10 14:34:47 unknown kernel[0] : lockbot[544] Builtin profile: debugserver (sandbox)
Mar 10 14:34:47 unknown kernel[0] : launchd[552] Builtin profile: container (sandbox)
Mar 10 14:34:47 unknown kernel[0] : launchd[552] Container: /private/var/mobile/Applications/(...) [69] (sandbox)
Reboot your device.
Short, sweet, and simple solution.
After hours spent digging through all the XCode options.