2014-12-01 6 views
0

ptr.get()이 작동하려면 어떤 종류의 마법이 필요합니까? 하지만 최대한 빨리 자바 인스턴스를 얻는 것을 시도로 충돌 : 그것은 성공적으로 오류없이 (오류 코드)와 AudioFile.createWithURL에서 반환ptr.get()에서 RoboVM 응용 프로그램이 작동을 멈 춥니 다

AudioStreamBasicDescription asbd = new AudioStreamBasicDescription(mSampleRate, mFormatID, mFormatFlags, mBytesPerPacket, mFramesPerPacket, mBytesPerFrame, mChannelsPerFrame, mBitsPerChannel, 0); 
    AudioFilePtr outAudioFile = new AudioFilePtr(); 
    File f = File.createTempFile("ptt", ".caf"); 
    AudioFileError afe = AudioFile.createWithURL(new NSURL(f), 1667327590, asbd, 1, outAudioFile); 
    System.out.println(afe.name()); 
    System.out.println(outAudioFile.get()); 

: 몇 가지 이유를 들어 다음 코드는 항상 내 응용 프로그램을 충돌합니다. 또한 AudioQueuePtr을 queueptr으로 인스턴스화하고 AudioQueue.newInput으로 전달하고 queueptr.get()으로 전화를 걸면 코드의 다른 섹션에서 같은 유형의 충돌이 발생합니다. 내가 여기서 누락 된 것이 있습니까?

Incident Identifier: 2EEFF4F0-9031-4798-80E7-69F55BB70576 
CrashReporter Key: 08d7c27d21cb15553295bbae1b2aa2040e94b517 
Hardware Model:  iPhone3,1 
Process:    iOS_RVM_NN [1972] 
Path:    /var/mobile/Applications/B2571332-7C2F-4A5A-8932-8BF5EC94EE33/iOS_RVM_NN.app/iOS_RVM_NN 
Identifier:   iOS_RVM_NN 
Version:    1 (1.0) 
Code Type:   ARM (Native) 
Parent Process:  debugserver [1971] 

Date/Time:   2014-12-02 11:22:50.710 -0500 
OS Version:   iOS 7.1.2 (11D257) 
Report Version:  104 

Exception Type: EXC_CRASH (SIGSEGV) 
Exception Codes: 0x0000000000000000, 0x0000000000000000 
Triggered by Thread: 0 

Thread 0 Crashed: 
0 libsystem_kernel.dylib   0x39838a58 mach_msg_trap + 20 
1 libsystem_kernel.dylib   0x39838854 mach_msg + 44 
2 CoreFoundation     0x2eaa2846 __CFRunLoopServiceMachPort + 150 
3 CoreFoundation     0x2eaa0fb2 __CFRunLoopRun + 850 
4 CoreFoundation     0x2ea0beba CFRunLoopRunSpecific + 518 
5 CoreFoundation     0x2ea0bc9e CFRunLoopRunInMode + 102 
6 GraphicsServices    0x3391165e GSEventRunModal + 134 
7 UIKit       0x31358148 UIApplicationMain + 1132 
8 iOS_RVM_NN      0x007b024e 0x8c000 + 7488078 
9 iOS_RVM_NN      0x007af7e2 0x8c000 + 7485410 
10 iOS_RVM_NN      0x007af822 0x8c000 + 7485474 
11 iOS_RVM_NN      0x00344afe 0x8c000 + 2853630 
12 iOS_RVM_NN      0x00953ca0 0x8c000 + 9206944 
13 iOS_RVM_NN      0x0094cbfa 0x8c000 + 9178106 
14 iOS_RVM_NN      0x0094e876 0x8c000 + 9185398 
15 iOS_RVM_NN      0x0094e8d0 0x8c000 + 9185488 
16 iOS_RVM_NN      0x00948ce6 0x8c000 + 9161958 
17 iOS_RVM_NN      0x009417ae 0x8c000 + 9131950 
18 iOS_RVM_NN      0x00212f84 0x8c000 + 1601412 
+0

실행합니까? 공유 할 수있는 충돌 로그가 있습니까? 아니면 자바 스택 추적? – ntherning

+0

@ntherning 기기 (iPhone)에서 실행됩니다. Java Stack Trace가 없으며,'AudioFile.createWithURL'에 약간의 경고가 있습니다 : WARN : CFType 서브 클래스 org.robovm.apple.audiotoolbox.AudioFileStream에 getClassTypeID()를 호출하지 못했습니다. WARN : getClassTypeID()를 호출하지 못했습니다. CFType 서브 클래스 org.robovm.apple.audiotoolbox.AudioQueueTimeline 경고 : CFType 하위 클래스에 대한 getClassTypeID() 호출에 실패했습니다. org.robovm.apple.audiotoolbox.AudioFile WARN : CFType 하위 클래스에 대한 getClassTypeID() 호출에 실패했습니다. org.robovm .apple.audiotoolbox.AudioQueue –

+0

@ntherning Xcode 오거나이저 장치 로그를 포함하도록 원본 게시물을 편집했습니다 (유용 할 경우). –

답변

0

이이 RoboVM 바인딩의 버그이었다 밝혀 : 여기가 자바 스택 트레이스는 없지만

은 엑스 코드 주최자 장치 로그입니다. 향후 릴리스에서 수정되어야합니다. 여기에 버그 리포트를보기 : https://github.com/robovm/robovm/issues/627

을 또한, 나는 여기에 전체 작업 예제를 게시 : 당신은 장치 나 시뮬레이터에 RoboVM implementation of recording demo using AudioQueue results in "No @Marshaler found" error

관련 문제