ios - RoboVM app crashes on ptr.get() -
is there kind of magic required ptr.get()
work? reason following code crashes app:
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());
it returns audiofile.createwithurl
no errors (error code: no), crashes try java instance. i'm experiencing same type of crash in section of code instantiate audioqueueptr queueptr
, pass in audioqueue.newinput
, try call queueptr.get()
. there i'm missing here?
there's no stack trace in java, here's xcode organizer device log:
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 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
turns out bug in robovm bindings. should fixed in future releases. view bug report here: https://github.com/robovm/robovm/issues/627
also, posted full working example here: robovm implementation of recording demo using audioqueue results in "no @marshaler found" error
Comments
Post a Comment