Code Monkey home page Code Monkey logo

Comments (6)

faruktoptas avatar faruktoptas commented on August 17, 2024

Why do you need Calculator?

from fancyshowcaseview.

faruktoptas avatar faruktoptas commented on August 17, 2024

If you got OOM crash in createBitmap() method, this is not about the FancyShowCaseView library. Something else may cause OOM. Can you give more details please?

from fancyshowcaseview.

FridayShamblen avatar FridayShamblen commented on August 17, 2024

Having similar issue here. Had some bitmaps in Spannable used in .title option, but removed them and same issue still pops up. Only experiencing this OOM on API 19 and on an emulator.

Code snippet:

   fsv1 = new FancyShowCaseView.Builder(this)
               .focusOn(findViewById(R.id.piece))
               .title("test")
               .build();

    fsv2 = new FancyShowCaseView.Builder(this)
                .focusOn(findViewById(R.id.target))
                .title("Like here ---")
                .build();

    new FancyShowCaseQueue()
                .add(fsv1)
                .add(fsv2)
                .show();

Here's the error:
java.lang.OutOfMemoryError at android.graphics.Bitmap.nativeCreate(Native Method) at android.graphics.Bitmap.createBitmap(Bitmap.java:810) at android.graphics.Bitmap.createBitmap(Bitmap.java:787) at android.graphics.Bitmap.createBitmap(Bitmap.java:754) at me.toptas.fancyshowcase.FancyShowCaseView.show(FancyShowCaseView.java:220) at me.toptas.fancyshowcase.FancyShowCaseQueue.show(FancyShowCaseQueue.java:43) at me.toptas.fancyshowcase.FancyShowCaseQueue.onDismiss(FancyShowCaseQueue.java:65) at me.toptas.fancyshowcase.FancyShowCaseView.removeView(FancyShowCaseView.java:474) at me.toptas.fancyshowcase.FancyShowCaseView$2.onAnimationEnd(FancyShowCaseView.java:340) at android.view.animation.Animation$3.run(Animation.java:374) at android.os.Handler.handleCallback(Handler.java:733) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:136) at android.app.ActivityThread.main(ActivityThread.java:5001) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) at dalvik.system.NativeStart.main(Native Method)

from fancyshowcaseview.

faruktoptas avatar faruktoptas commented on August 17, 2024

@FridayShamblen I will remove the bitmap creation part. It is unnecessary. I think it will fix the OOM.

from fancyshowcaseview.

FridayShamblen avatar FridayShamblen commented on August 17, 2024

Thank you sir.

from fancyshowcaseview.

faruktoptas avatar faruktoptas commented on August 17, 2024

@saurabhdhillon @FridayShamblen I fixed it and released v0.1.3

from fancyshowcaseview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.