Bug 3796 - TextureViewDemo crash on Acer Iconiatab (ICS tab)
Summary: TextureViewDemo crash on Acer Iconiatab (ICS tab)
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: Samples ()
Version: 4.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Ben O'Halloran
URL:
Depends on:
Blocks:
 
Reported: 2012-03-07 17:10 UTC by PJ
Modified: 2014-06-27 14:00 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description PJ 2012-03-07 17:10:18 UTC
This happens immediately on app launch.


Object reference not set to an instance of an object
at TextureViewDemo.TextureViewActivity.OnSurfaceTextureAvailable (Android.Graphics.SurfaceTexture,int,int) [0x0000b] in /Users/pjbeaman/GitHubRepositories/monodroid-samples/TextureViewDemo/TextureViewActivity.cs:58
at Android.Views.TextureView/ISurfaceTextureListenerInvoker.n_OnSurfaceTextureAvailable_Landroid_graphics_SurfaceTexture_II (intptr,intptr,intptr,int,int) [0x00010] in /Users/jon/Development/xamarin/monodroid-hotfix/Mono.Android/platforms/android-14/src/generated/Android.Views.TextureView.cs:82
at (wrapper dynamic-method) object.5456a2dc-71d4-4d27-91e2-e13af4c5844f (intptr,intptr,intptr,int,int) <IL 0x0001e, 0x0004b>



On emulator for me, all I get is a blank screen titled TextureViewDemo
Comment 1 PJ 2012-03-07 17:15:57 UTC
The device used was the ACER IconiaTab with ICS.
MFA 4.0.5
MD 2.8.8.1
Mono 2.10.9

Also the sample is only supposed to work on device, so my last line above can be ignored for the bug's purposes. I

As an enhancement and if its trivial, however, we could add a label that  says 'please run on a device with hardware acceleration' etc.
Comment 2 narayanp 2014-02-21 02:54:44 UTC
I have cheked it with following builds:

All Mac
X.S 4.2.3(build 59)
Git -828c2a91b515daaac7e57bc69fcfda6178d4ec01
X.Android 4.12.0-28

I am running it on device Galaxy Tab 10.1 Version is 4.0.3. Application getting crashed on this device. However this is working fine on another devices like:

HTC one version 4.0.3
Samsung S4 version 4.3
Comment 3 Ben O'Halloran 2014-06-27 14:00:39 UTC
See Bug 17921.
Resolved in commit: https://github.com/xamarin/monodroid-samples/commit/fb1c3d79fc4295852535e576dc8e7c3d279beebf
The issue has to do with a subtly in Camera.open(), in which null is returned for devices without a rear facing camera. The updated version solves this and was tested on an Acer ICS tablet