Crash while image Analysis

107 views
Skip to first unread message

LINGA venkatesh

unread,
Apr 15, 2020, 12:21:31 PM4/15/20
to Android CameraX Discussion Group
Hi Team,

Our app does show camera in multiple modes to scan for Document, whiteboard, etc,.. as a carousel, like in the native camera app where user can swipe though modes and click images.

In our app:
when a user changes modes we re-bind preview and ImageAnalysis usecases.
In each mode, we analyse imageProxy received and close before returning. (This takes around ~30ms).

It is observed that when changing modes app is crashing with below error:


04-15 21:28:36.642 15900-16143/<package_name>.SampleApp W/ImageReader_JNI: ImageReader#close called before Image#close, consider calling Image#close first
    
    --------- beginning of crash
04-15 21:28:36.645 15900-16143/<package_name>.SampleApp A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x97ec4000 in tid 16143 (pool-7-thread-1)

Can you please let us know if this is a known issue ?

Regards,
Venkatesh. 

Vinit Modi

unread,
Apr 15, 2020, 12:43:03 PM4/15/20
to LINGA venkatesh, Android CameraX Discussion Group
Hi Venkatesh,

Would you be able to share a crash log via issue tracker? Thanks!

Vinit 

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/fcb733b3-971f-482e-b492-cb0e7cc59230%40android.com.

LINGA venkatesh

unread,
Apr 16, 2020, 10:58:22 AM4/16/20
to Android CameraX Discussion Group, l.venk...@gmail.com
Hi Vinit,

FYI issue is reproducible in "camera-sample/CameraXbasic" app as well.

Regards,
Venkatesh.



On Wednesday, April 15, 2020 at 10:13:03 PM UTC+5:30, Vinit Modi wrote:
Hi Venkatesh,

Would you be able to share a crash log via issue tracker? Thanks!

Vinit 

On Wed, Apr 15, 2020 at 9:21 AM LINGA venkatesh <l.venk...@gmail.com> wrote:
Hi Team,

Our app does show camera in multiple modes to scan for Document, whiteboard, etc,.. as a carousel, like in the native camera app where user can swipe though modes and click images.

In our app:
when a user changes modes we re-bind preview and ImageAnalysis usecases.
In each mode, we analyse imageProxy received and close before returning. (This takes around ~30ms).

It is observed that when changing modes app is crashing with below error:


04-15 21:28:36.642 15900-16143/<package_name>.SampleApp W/ImageReader_JNI: ImageReader#close called before Image#close, consider calling Image#close first
    
    --------- beginning of crash
04-15 21:28:36.645 15900-16143/<package_name>.SampleApp A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x97ec4000 in tid 16143 (pool-7-thread-1)

Can you please let us know if this is a known issue ?

Regards,
Venkatesh. 

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-developers+unsub...@android.com.

Vinit Modi

unread,
Apr 16, 2020, 12:27:58 PM4/16/20
to LINGA venkatesh, Android CameraX Discussion Group
Thanks! 

To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/ac0cbbb9-1fd4-45ff-bd08-36b83e4d7303%40android.com.

Franklin Wu

unread,
Apr 16, 2020, 5:55:05 PM4/16/20
to Android CameraX Discussion Group, l.venk...@gmail.com
Hi Venkatesh
   I responded in the issue tracker, but it looks like its a known issue that we have an internally tracked bug.

   Thanks for pointing it out.
Thanks! 

To unsubscribe from this group and stop receiving emails from it, send an email to camerax-developers+unsub...@android.com.

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-developers+unsub...@android.com.

LINGA venkatesh

unread,
Apr 17, 2020, 6:38:19 AM4/17/20
to Android CameraX Discussion Group, l.venk...@gmail.com
Thanks for the update Franklin Wu.
When can we expect this fix available for us to consume?

Regards,
Venkatesh.

Eric Ng

unread,
Apr 17, 2020, 12:15:11 PM4/17/20
to LINGA venkatesh, Android CameraX Discussion Group
Hi Venkatesh,

We're expecting this to be fixed in the next release at this point, but may change, we will keep the public issue updated. Thanks,

-Eric

Thanks! 

To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.

--
You received this message because you are subscribed to the Google Groups "Android CameraX Discussion Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to camerax-develop...@android.com.
To view this discussion on the web visit https://groups.google.com/a/android.com/d/msgid/camerax-developers/9baaa7b3-b1b9-45ab-be7c-26dd9a710ca3%40android.com.


--
-Eric Ng
Reply all
Reply to author
Forward
0 new messages