Log in or register to post comments

application crash on ingame camera access

March 4, 2012 - 2:12pm #1

hi!
i run into a problem using the qualcomm 1.0.6 unity extension and prime31 etcetera-plugin.

importing the qualcomm plugin first into the project:
the application crashes when i try to access / prompt the system camera to take a photo or the gallery ( via prime etcetera plugin ).

importing the prime plugin first:
prompting camera / gallery works fine but using the qualcomm part the screen stays black ( no camerastream available only the qualcomm-ui ).

any idea how to solve this?

greetings
robert

application crash on ingame camera access

November 28, 2013 - 8:21pm #12

Hi

I would like to know if there's already a solution to this. We're getting the same problems and not sure why. Thanks

application crash on ingame camera access

September 14, 2012 - 12:29pm #11

When the black screen apears and I close de application, any other application from Android that uses camera doesnt' work...

When I turn off the device and turn on again, everything work fine, until the black screen...

application crash on ingame camera access

September 14, 2012 - 12:14pm #10

Yes I'm using Flury and Social Plugin from Prime 31.

I'm using just one scene, here is the log just before the black screen:

 

09-14 16:06:08.119: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:08.119: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:08.139: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:08.139: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:08.302: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:08.302: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:08.302: I/AR(11607): ImageTracker: Successfully created dataset

09-14 16:06:08.302: D/QCAR(11607): Successfully created data set.

09-14 16:06:08.322: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:08.322: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:08.352: D/dalvikvm(11607): GC_FOR_MALLOC freed 3989 objects / 206012 bytes in 29ms

09-14 16:06:08.352: I/dalvikvm-heap(11607): Grow heap (frag case) to 4.555MB for 737018-byte allocation

09-14 16:06:08.382: D/dalvikvm(11607): GC_FOR_MALLOC freed 304 objects / 15704 bytes in 31ms

09-14 16:06:08.419: D/dalvikvm(11607): GC_FOR_MALLOC freed 366 objects / 754712 bytes in 29ms

09-14 16:06:08.419: I/dalvikvm-heap(11607): Grow heap (frag case) to 4.531MB for 736762-byte allocation

09-14 16:06:08.469: D/dalvikvm(11607): GC_FOR_MALLOC freed 58 objects / 2216 bytes in 40ms

09-14 16:06:08.632: D/LocationMasfClient(1560): getNetworkLocation(): Returning cache location with accuracy 70.0

09-14 16:06:08.632: D/libgps(1560): GpsInterface_inject_location( -25.419200, -49.249226, 70.000 )

09-14 16:06:08.632: D/libgps(1560): MPDINJPOS_REQ msg id 12015

09-14 16:06:09.062: D/dalvikvm(11607): GC_FOR_MALLOC freed 910 objects / 1116248 bytes in 28ms

09-14 16:06:09.092: D/dalvikvm(11607): GC_FOR_MALLOC freed 198 objects / 469144 bytes in 28ms

09-14 16:06:09.132: D/dalvikvm(11607): GC_FOR_MALLOC freed 167 objects / 467980 bytes in 29ms

09-14 16:06:09.172: D/dalvikvm(11607): GC_FOR_MALLOC freed 200 objects / 469624 bytes in 29ms

09-14 16:06:09.212: D/dalvikvm(11607): GC_FOR_MALLOC freed 133 objects / 482212 bytes in 29ms

09-14 16:06:09.272: D/dalvikvm(11607): GC_FOR_MALLOC freed 64 objects / 512168 bytes in 29ms

09-14 16:06:09.322: D/dalvikvm(11607): GC_FOR_MALLOC freed 160 objects / 523824 bytes in 29ms

09-14 16:06:09.452: D/dalvikvm(11607): GC_FOR_MALLOC freed 737 objects / 521556 bytes in 29ms

09-14 16:06:09.512: D/dalvikvm(11607): GC_FOR_MALLOC freed 340 objects / 516928 bytes in 29ms

09-14 16:06:09.572: D/dalvikvm(11607): GC_FOR_MALLOC freed 367 objects / 520836 bytes in 28ms

09-14 16:06:09.632: D/dalvikvm(11607): GC_FOR_MALLOC freed 331 objects / 521524 bytes in 29ms

09-14 16:06:09.642: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.642: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.642: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.642: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.652: I/Unity(11607): Found Trackable named orquidea with id 5

09-14 16:06:09.652: I/Unity(11607):  

09-14 16:06:09.652: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.652: I/Unity(11607): Found Trackable named gerbera with id 4

09-14 16:06:09.652: I/Unity(11607):  

09-14 16:06:09.652: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.652: I/Unity(11607): Found Trackable named ciclamen with id 2

09-14 16:06:09.652: I/Unity(11607):  

09-14 16:06:09.652: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.652: I/Unity(11607): Found Trackable named tulipa with id 3

09-14 16:06:09.652: I/Unity(11607):  

09-14 16:06:09.652: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.652: I/Unity(11607): Found Trackable named gazania with id 6

09-14 16:06:09.652: I/Unity(11607):  

09-14 16:06:09.652: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.652: I/Unity(11607): Found Trackable named begonia with id 1

09-14 16:06:09.652: I/Unity(11607):  

09-14 16:06:09.652: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.662: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.662: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.662: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.662: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.662: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.662: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.662: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.662: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.672: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.672: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.682: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.682: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.692: I/Unity(11607): Start: Begonia

09-14 16:06:09.692: I/Unity(11607):  

09-14 16:06:09.692: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.692: I/Unity(11607): Start: Ciclamen

09-14 16:06:09.692: I/Unity(11607):  

09-14 16:06:09.692: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.692: I/Unity(11607): Start: Gazania

09-14 16:06:09.692: I/Unity(11607):  

09-14 16:06:09.692: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.692: I/Unity(11607): Start: Tulipa

09-14 16:06:09.692: I/Unity(11607):  

09-14 16:06:09.692: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.692: I/Unity(11607): Start: Gerbera

09-14 16:06:09.692: I/Unity(11607):  

09-14 16:06:09.692: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.692: I/Unity(11607): Start: Orquidea

09-14 16:06:09.692: I/Unity(11607):  

09-14 16:06:09.692: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.702: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.702: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.702: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.702: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.722: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.722: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.922: D/QCAR(11607): Setting Unity version 3.5.2

09-14 16:06:09.932: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.932: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:09.932: I/Unity(11607): StartQCAR

09-14 16:06:09.932: I/Unity(11607):  

09-14 16:06:09.932: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:09.942: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:09.942: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:11.099: D/dalvikvm(11607): GC_FOR_MALLOC freed 5201 objects / 319028 bytes in 31ms

09-14 16:06:11.971: V/AlarmManager(1560): sending alarm Alarm{464f4a90 type 2 com.google.android.location}

09-14 16:06:11.971: D/WifiService(1560): releaseWifiLockLocked: WifiLock{NetworkLocationProvider type=2 binder=android.os.Binder@4635c1e8}

09-14 16:06:12.459: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.459: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.459: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.459: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.459: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.459: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.459: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.459: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.469: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.469: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.469: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.469: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.469: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.469: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.479: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.479: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.479: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.479: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.489: I/Unity(11607): Absolute number of Trackables: 6

09-14 16:06:12.489: I/Unity(11607):  

09-14 16:06:12.489: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:12.489: D/dalvikvm(11607): Trying to load lib /data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so 0x460b2e30

09-14 16:06:12.489: D/dalvikvm(11607): Shared lib '/data/data/br.com.fingertips.ancar/lib/libQCARWrapper.so' already loaded in same CL 0x460b2e30

09-14 16:06:12.489: I/Unity(11607): Absolute number of virtual buttons: 0

09-14 16:06:12.489: I/Unity(11607):  

09-14 16:06:12.489: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:12.499: I/Unity(11607): Trackable begonia lost

09-14 16:06:12.499: I/Unity(11607):  

09-14 16:06:12.499: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:12.499: I/Unity(11607): Trackable ciclamen lost

09-14 16:06:12.499: I/Unity(11607):  

09-14 16:06:12.499: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:12.499: I/Unity(11607): Trackable gazania lost

09-14 16:06:12.499: I/Unity(11607):  

09-14 16:06:12.499: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:12.499: I/Unity(11607): Trackable tulipa lost

09-14 16:06:12.499: I/Unity(11607):  

09-14 16:06:12.499: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:12.499: I/Unity(11607): Trackable gerbera lost

09-14 16:06:12.499: I/Unity(11607):  

09-14 16:06:12.499: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:12.499: I/Unity(11607): Trackable orquidea lost

09-14 16:06:12.499: I/Unity(11607):  

09-14 16:06:12.499: I/Unity(11607): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 43)

09-14 16:06:14.141: I/(1462): odm_disp_esd_thread is running(102) state=1

 

 

application crash on ingame camera access

September 14, 2012 - 12:07pm #9

Are you using a Prime31 plugin as well? - can you post a log from your app session when changing scenes?

application crash on ingame camera access

September 14, 2012 - 11:56am #8

suppenhuhn what did you change in androidmanifest.xml?

I'm getting the same problem here, could someone help me solve that?

 

Thanks!

Re: application crash on ingame camera access

March 10, 2012 - 3:23am #7

so the crash happens before the AR scene is loaded using the prime plugin to access the gallery.

is it thinkable that both plugins using a own method, which has unfortunately the same name ?

if yes, can i check the methods called - and how ?

Edit:

Issue solution: i modified androidmanifest.XML -> both plugins work fine :-) thank you!

Re: application crash on ingame camera access

March 5, 2012 - 2:53pm #6
ksiva wrote:

You should be able to have a non-AR scene that uses the camera for other purposes. Please note I haven't tried this, so let us know if you run into any issues.

i have 2 scenes:
1. menu
2. ar

i load the second scene with a button pressed -> application.loadlevel (2) . with scene 1 open ( scene 2 not loaded yet ), the application crashes when try to prompt the camera, and crashes when try to prompt the gallery as well. both times via prime31.

i'm no coder, so i don't know how to access the gallery directly

Re: application crash on ingame camera access

March 5, 2012 - 1:58pm #5

@ madpoet

You should be able to play a fullscreen video this way. What device are you testing with? Do you only get the black screen if you restart the app while the video is playing?

@ suppenhuhn

The QCAR plugin is started from the beginning, but it doesn't use the camera until the QCARBehaviour script (normally attached to the ARCamera) starts. You should be able to have a non-AR scene that uses the camera for other purposes. Please note I haven't tried this, so let us know if you run into any issues.

QCAR releases the camera any time the QCARBehaviour script is disabled, so you could conceivably do this with a single scene as well.

Does the application crash when you try to access the gallery directly, or only when you do it via the Prime31 plugin?

- Kim

Re: application crash on ingame camera access

March 5, 2012 - 9:15am #4

Hi, thanks!

Due to this :
1. is it possible to start the qualcomm-plugin when scene 2 is loaded? Or turn it temporarily off ?

2. what about the access to the gallery? Because the application crashs as well when i try to access the gallery.

3. Is it possible to get the (extra) access to the camera / gallery via your plugin instead ?

Re: application crash on ingame camera access

March 5, 2012 - 9:14am #3

Would running a video using

iPhoneUtils.PlayMovie("intro.m4v", Color.black, iPhoneMovieControlMode.Hidden);

cause any issue?

I sometimes get a black screen when I restart my app using 3.4 and beta 1.5.

Thx

Re: application crash on ingame camera access

March 5, 2012 - 8:28am #2

QCAR requires exclusive access to the device camera. You won't be able to use other plugins that require access to the camera in conjunction with QCAR.

- Kim

Log in or register to post comments