Log in or register to post comments

Please use AVCaptureConnection's -setVideoMinFrameDuration issue

December 26, 2011 - 1:14pm #1

I get the following issue when I compile and run the basic cube app. Basically the app will have the default loading screen and then kick out of the app for some reason. Does anyone know why its doing this?

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011)
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/ttys002
target remote-mobile /tmp/.XcodeGDBRemote-142-106
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 7171 thread 0x1c03]
[Switching to process 7171 thread 0x1c03]
sharedlibrary apply-load-rules all
2011-12-26 13:03:28.437 ProductName[1233:707] -> registered mono modules 0xec1f8c
-> applicationDidFinishLaunching()
QCAR Extension version 1.0.6
2011-12-26 13:03:28.496 ProductName[1233:707] INFO: QCAR SDK version 1.0.0

2011-12-26 13:03:28.531 ProductName[1233:707] WARNING: - setMinFrameDuration:] is deprecated. Please use AVCaptureConnection's -setVideoMinFrameDuration:

Re: Please use AVCaptureConnection's -setVideoMinFrameDuration i

December 28, 2011 - 7:37pm #9

I'm not sure why this isn't working... The default project settings should work (both Unity and Xcode).

Are you running in Debug or Release? Try running in Release if you haven't already.

Does it also crash if you launch the app from the device, rather than from Xcode?

- Kim

Re: Please use AVCaptureConnection's -setVideoMinFrameDuration i

December 28, 2011 - 12:28pm #8

I tried importing the sample unity ImageTarget project into unity and created an Xcode build but basically the app launches so you see the loading screen and then kills itself. I followed all the steps in the tutorial but still no luck.

GNU gdb 6.3.50-20050815 (Apple version gdb-1708) (Fri Sep 16 06:56:50 UTC 2011)
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/ttys000
target remote-mobile /tmp/.XcodeGDBRemote-2286-56
Switching to remote-macosx protocol
mem 0x1000 0x3fffffff cache
mem 0x40000000 0xffffffff none
mem 0x00000000 0x0fff none
[Switching to process 7171 thread 0x1c03]
[Switching to process 7171 thread 0x1c03]
sharedlibrary apply-load-rules all
2011-12-28 12:17:47.448 ProductName[3903:707] -> registered mono modules 0xf4ceac
-> applicationDidFinishLaunching()
QCAR Extension version 1.5.4
2011-12-28 12:17:47.653 ProductName[3903:707] INFO/AR(3903) 2011-12-28 12:17:47: QCAR SDK version 1.5.3

Re: Please use AVCaptureConnection's -setVideoMinFrameDuration i

December 27, 2011 - 1:42pm #7

I'm not sure what you mean by precompiled Xcode projects... There are two separate QCAR distributions for iOS, the native SDK and the Unity extension. The native SDK comes with sample Xcode projects, while the Unity extension comes with sample .unitypackage files that you can import into a fresh Unity project.

Try running the ImageTargets sample that comes with the Unity distribution. Does that work any better?

- Kim

Re: Please use AVCaptureConnection's -setVideoMinFrameDuration i

December 27, 2011 - 10:42am #6

The precompile sample apps from Qualcomm with the Xcode provided work fine. The instant I try to use unity to create my own sample cube app following the instructions to the letter I get the issues below. Is there a list of the build settings in unity I should have set so I know those are correct? The same for any Xcode build settings? Or is there something basic I could try to help narrow down where the problem would be? I am using the sept sdk but I recently downloaded the 1.5 beta but I noticed those are only precompiles xcode projects. How do import those into unity? Is it possible the install of he beta over top the sept sdk release is the issue? If so how do I clean it up?

Re: Please use AVCaptureConnection's -setVideoMinFrameDuration i

December 27, 2011 - 1:37am #5

The deprecated API call is harmless.

I'm surprised you're not getting more log info that that - is this the MultiTargets App as provided?

Here is how the log would continue, from an 'out-of-the-box' build...

2011-12-27 09:33:34.931 UnityMT[3441:707] INFO: Tracker starts loading

2011-12-27 09:33:34.948 UnityMT[3441:707] INFO: Found config.xml

2011-12-27 09:33:35.104 UnityMT[3441:707] INFO: Found config.xml

2011-12-27 09:33:35.109 UnityMT[3441:707] INFO: Tracker finished loading (no errors)

Renderer: PowerVR SGX 543
Vendor:   Imagination Technologies
Version:  OpenGL ES 2.0 IMGSGX543-58.6
GL_OES_depth_texture GL_OES_depth24 GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_half_float GL_OES_vertex_array_object GL_EXT_blend_minmax GL_EXT_discard_framebuffer GL_EXT_read_format_bgra GL_EXT_shader_texture_lod GL_EXT_texture_filter_anisotropic GL_APPLE_framebuffer_multisample GL_APPLE_rgb_422 GL_APPLE_texture_format_BGRA8888 GL_APPLE_texture_max_level GL_IMG_read_format GL_IMG_texture_compression_pvrtc 
Creating OpenGLES2.0 graphics device
Non platform assembly: data-0x8185000 (this message is harmless)
Non platform assembly: data-0x811e000 (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/272A98AE-6F22-491A-BA56-84F7BBCA30DE/UnityMT.app/Data/Managed/System.dll (this message is harmless)
Non platform assembly: /private/var/mobile/Applications/272A98AE-6F22-491A-BA56-84F7BBCA30DE/UnityMT.app/Data/Managed/Mono.Security.dll (this message is harmless)
-> force accelerometer registration
-> applicationDidBecomeActive()

Re: Please use AVCaptureConnection's -setVideoMinFrameDuration i

December 26, 2011 - 11:03pm #4

I am also seeing two warnings during the compile in the AppController.mm file but the build succeeds and launches the app on my device.

Warnings
1) Enumeration values 'kScreenOrientationUnknown', 'autorotation', and 'kScreenOrientationCount' not handled in switch

2) Incompatible pointer types passing 'UIView *' to parameter of type 'EAGLView *'

Re: Please use AVCaptureConnection's -setVideoMinFrameDuration i

December 26, 2011 - 10:15pm #3

Devices: Ipad or iPhone both at with iOS 5

I tried setting the build target to 4.x and still the same issues.

Unity Version: 3.4.2 f2

I can't get any sample app to work. I tried just seeing if the ARCamera would work but I get the same issue.

Re: Please use AVCaptureConnection's -setVideoMinFrameDuration i

December 26, 2011 - 3:51pm #2

What device and iOS version are you using? What iOS version is your build target?

Try setting your build target to 4.x, does that help at all?

Thanks,

- Kim

Log in or register to post comments