roubachof / Sharpnado.Shadows

Add as many custom shadows (Color, Offset, Blur, Neumorphism) as you like to any Xamarin.Forms view (Android, iOS, UWP).
MIT License
329 stars 24 forks source link

Java.Lang.OutOfMemoryError (latest version) #25

Closed TopSkillDeveloper closed 3 years ago

TopSkillDeveloper commented 3 years ago

Platform (please complete the following information):

Describe the bug the app crashes immediately after launch

To Reproduce Steps to reproduce the behavior:

  1. Run app
  2. Turn off the screen, then turn on
  3. After a few seconds, the app crashes

Exception

Java.Lang.OutOfMemoryError: Exception of type 'Java.Lang.OutOfMemoryError' was thrown.
  at Java.Interop.JniEnvironment+StaticMethods.CallStaticObjectMethod (Java.Interop.JniObjectReference type, Java.Interop.JniMethodInfo method, Java.Interop.JniArgumentValue* args) [0x0006e] in <89755ea61d9c4ae0a40ce90b872c9e2d>:0 
  at Java.Interop.JniPeerMembers+JniStaticMethods.InvokeObjectMethod (System.String encodedMember, Java.Interop.JniArgumentValue* parameters) [0x00018] in <89755ea61d9c4ae0a40ce90b872c9e2d>:0 
  at Android.Graphics.Bitmap.CreateBitmap (System.Int32 width, System.Int32 height, Android.Graphics.Bitmap+Config config) [0x0005a] in <4658d344ef4b4a429f9058200bb1b31c>:0 
  at Sharpnado.Shades.Droid.ShadowView.CreateBitmap (Sharpnado.Shades.Droid.ShadowView+ShadeInfo shadeInfo) [0x00028] in <85592c7dc63b4f07a7b6c3cca9a87732>:0 
  at Sharpnado.Shades.Droid.ShadowView+<>c__DisplayClass33_0.<InsertBitmap>b__1 () [0x00000] in <85592c7dc63b4f07a7b6c3cca9a87732>:0 
  at Sharpnado.Shades.Droid.BitmapCache.Create (System.String hash, System.Func`1[TResult] create) [0x00000] in <85592c7dc63b4f07a7b6c3cca9a87732>:0 
  at Sharpnado.Shades.Droid.BitmapCache.Add (System.String hash, System.Func`1[TResult] create) [0x0008f] in <85592c7dc63b4f07a7b6c3cca9a87732>:0 
  at Sharpnado.Shades.Droid.ShadowView.InsertBitmap (Sharpnado.Shades.Shade shade) [0x0009c] in <85592c7dc63b4f07a7b6c3cca9a87732>:0 
  at Sharpnado.Shades.Droid.ShadowView.RefreshBitmaps () [0x00048] in <85592c7dc63b4f07a7b6c3cca9a87732>:0 
  at Sharpnado.Shades.Droid.ShadowView.OnSizeChanged (System.Int32 w, System.Int32 h, System.Int32 oldw, System.Int32 oldh) [0x0004d] in <85592c7dc63b4f07a7b6c3cca9a87732>:0 
  at Android.Views.View.n_OnSizeChanged_IIII (System.IntPtr jnienv, System.IntPtr native__this, System.Int32 w, System.Int32 h, System.Int32 oldw, System.Int32 oldh) [0x00008] in <4658d344ef4b4a429f9058200bb1b31c>:0 
  at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.94(intptr,intptr,int,int,int,int)

Lib version 1.2.0

roubachof commented 3 years ago

Can't do anything without a repro sample...