忍者ブログ
  • 2024.03
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 2024.05
[PR]
×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

【2024/04/19 13:12 】 |
NSAutoreleaseNoPool
以下の出力。


2011-03-26 00:03:52.479 pball[825:307] *** __NSAutoreleaseNoPool(): Object 0x10fd50 of class NSPathStore2 autoreleased with no pool in place - just leaking



普通、ほとんどの処理は、main.mmのmain()関数内で

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
//....
[pool release];

の間で実行されることになる。
このコードは、XCodeでプロジェクトを作ると自動生成されるし、普通は問題ないだろう。

だが、もしこの外でObjective-Cの何らかのオブジェクトを生成すると、上記の出力が延々出続けることになる。
PR
【2011/03/26 00:17 】 | よくある罠 | 有り難いご意見(0) | トラックバック()
アプリがデバイスで起動できない
アプリをデバイスでビルド&実行しようとしたら、こういうエラーが出た。



The Debugger has exited with status 0.
[Session started at 2011-03-25 01:29:37 +0900.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Fri Oct 22 04:12:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "--host=i386-apple-darwin --target=arm-apple-darwin".tty /dev/ttys006
プログラムをデバッガに読み込み中...
sharedlibrary apply-load-rules all
プログラムは読み込まれました。
target remote-mobile /tmp/.XcodeGDBRemote-7884-75
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
run
実行中...
[Switching to thread 11523]
[Switching to thread 11523]
Re-enabling shared library breakpoint 1
continue
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/usr/lib/info/dns.so (file not found).
Couldn't register com.yourcompany.pball with the bootstrap server. Error: unknown error code.
This generally means that another instance of this process was already running or is hung in the debugger.プログラムはシグナルを受信しました:“SIGABRT”。
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
kill
quit



そのうち、アプリの転送もできなくなって、
Macとデバイスの一方または両方をリブートしてくださいと言われた。

シミュレータでは起動できるようだ。



iPadを再起動したら、元に戻ったけど。
【2011/03/25 01:35 】 | よくある罠 | 有り難いご意見(0) | トラックバック()
他のアプリからの割り込み
ほかのアプリの通知が割り込んだときのエラー

2011-02-13 12:29:57.121 pball[3465:307] -[__NSCFType fire]: unrecognized selector sent to instance 0x134fd0
2011-02-13 12:29:57.196 pball[3465:307] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType fire]: unrecognized selector sent to instance 0x134fd0'
*** Call stack at first throw:
(
0 CoreFoundation 0x3587a987 __exceptionPreprocess + 114
1 libobjc.A.dylib 0x34a8249d objc_exception_throw + 24
2 CoreFoundation 0x3587c133 -[NSObject(NSObject) doesNotRecognizeSelector:] + 102
3 CoreFoundation 0x35823aa9 ___forwarding___ + 508
4 CoreFoundation 0x35823860 _CF_forwarding_prep_0 + 48
5 pball 0x00003e93 -[pballViewController startGame] + 38
6 pball 0x00003437 -[pballAppDelegate applicationDidBecomeActive:] + 46
7 UIKit 0x341d993f -[UIApplication _setActivated:] + 74
8 UIKit 0x341d98dd _alertItemStateChanged + 52
9 CoreFoundation 0x358310cd __CFNotificationCenterDarwinCallBack + 24
10 CoreFoundation 0x35817be7 __CFMachPortPerform + 210
11 CoreFoundation 0x3580f6ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
12 CoreFoundation 0x3580f6c3 __CFRunLoopDoSource1 + 166
13 CoreFoundation 0x35801f7d __CFRunLoopRun + 520
14 CoreFoundation 0x35801c87 CFRunLoopRunSpecific + 230
15 CoreFoundation 0x35801b8f CFRunLoopRunInMode + 58
16 GraphicsServices 0x320c84ab GSEventRunModal + 114
17 GraphicsServices 0x320c8557 GSEventRun + 62
18 UIKit 0x341dc329 -[UIApplication _run] + 412
19 UIKit 0x341d9e93 UIApplicationMain + 670
20 pball 0x0000332b main + 74
21 pball 0x000032dc start + 40
)
terminate called after throwing an instance of 'NSException'
プログラムはシグナルを受信しました:“SIGABRT”。
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.2.1 (8C148)/Symbols/Developer/usr/lib/libXcodeDebuggerSupport.dylib (file not found).
【2011/02/13 13:20 】 | よくある罠 | 有り難いご意見(0) | トラックバック()
GLでテクスチャが描画されない
よくある原因、確認すべき事項

・テクスチャサイズ(縦、横)が2の累乗数になっていない。

【2011/02/06 15:57 】 | よくある罠 | 有り難いご意見(0) | トラックバック()
| ホーム |