stacker_liew 5 Posted April 21, 2019 As title, TCameraComponent always crash while in capturing mode for a certain time. Any one experienced this with 10.3.1? Share this post Link to post
Dave Nottage 557 Posted April 21, 2019 If you mean on Android, this report relates to the issue:https://quality.embarcadero.com/browse/RSP-23791 Share this post Link to post
stacker_liew 5 Posted April 25, 2019 On 4/22/2019 at 7:19 AM, Dave Nottage said: If you mean on Android, this report relates to the issue:https://quality.embarcadero.com/browse/RSP-23791 Any solution? Share this post Link to post
Dave Nottage 557 Posted April 25, 2019 5 hours ago, stacker_liew said: Any solution? There's a workaround in the report. Share this post Link to post
stacker_liew 5 Posted April 26, 2019 17 hours ago, Dave Nottage said: There's a workaround in the report. Can you show me the workaround, I can't access to the server for some reason. Thanks Share this post Link to post
Dave Nottage 557 Posted April 28, 2019 Make a copy of (bds)\source\fmx\FMX.Media.Android.pas, and put it in your project folder. Modify this routine: function CreateJBitmapFromYuvBuffer: JBitmap; var Image: JYuvImage; Rect: JRect; Stream: JByteArrayOutputStream; LoadOptions: JBitmapFactory_Options; begin SurfaceSection.Acquire; try Image := TJYuvImage.JavaClass.init(SharedBuffer, SharedBufferFormat, PreviewBufferSize.X, PreviewBufferSize.Y, nil); finally SurfaceSection.Release; end; Replacing the SurfaceSection references with QueueSection 1 Share this post Link to post
stacker_liew 5 Posted May 2, 2019 On 4/28/2019 at 11:31 AM, Dave Nottage said: Make a copy of (bds)\source\fmx\FMX.Media.Android.pas, and put it in your project folder. Modify this routine: function CreateJBitmapFromYuvBuffer: JBitmap; var Image: JYuvImage; Rect: JRect; Stream: JByteArrayOutputStream; LoadOptions: JBitmapFactory_Options; begin SurfaceSection.Acquire; try Image := TJYuvImage.JavaClass.init(SharedBuffer, SharedBufferFormat, PreviewBufferSize.X, PreviewBufferSize.Y, nil); finally SurfaceSection.Release; end; Replacing the SurfaceSection references with QueueSection Thanks. Share this post Link to post