Coder Social home page Coder Social logo

Comments (4)

jraska avatar jraska commented on May 16, 2024

Hello, thanks for using Falcon.

This looks weird and I guess its annoying, but I don't think Falcon directly causes this, I believe Falcon crash is just a symptom of other problem.

Briefly looking online this exception is not new and was experienced by many people. What I can guess it is a race condition when Falcon takes the screenshot, but there could be many causes.

Could you please provide test case reproducing the crash? Without that there is very little I can do.

from falcon.

zeeshanalisayyed avatar zeeshanalisayyed commented on May 16, 2024

Hi,

Thank you!

There is no pattern or test case I ever found to reproduce the crash, but it mostly happens when I swipe (up|down|left|right) and tap faster to navigate through items in the lists and tabs. While testing, I am hardly able to reproduce it doing the fast interaction but in live I can see many crashes related to this particular crash on crashlytics, and when I remove falcon, this crash does not occur.

As mentioned, you can try to reproduce the crash on any app which has list of items in a list view and tabs which can be swipe-able in all directions and list item has some images and texts which are being loaded from the internet at runtime, and you can try few fast sessions:

FrameLayout, CoordinatorLayout, RelativeLayout, TabLayout, android.support.v4.widget.NestedScrollView, AppBarLayout, Custom Views, CoordinatorLayout, etc.

from falcon.

jraska avatar jraska commented on May 16, 2024

Hello again,

I think this is more likely a problem within Android layouts, which is indirectly triggered by Falcon, because in the end everything Falcon does is calling View.draw(Canvas canvas). While looking at this method docs you can find the following:

...
* The view must have already done a full layout before this function is
* called.
...

By searching I found several people having this issue in different situations and my guess is you try to do screenshot too early within layout creation and since it happens rarely my thoughts go to concurrency issue.
One of the ideas would be to ensure activity is resumed before taking screenshot, but this goes beyond responsibilities of Falcon so I would recommend trying it by yourself.

However this is just a guess and I cannot confirm this without runnable test, which will at least sometimes fail. Therefore no-fix so far unfortunately.

from falcon.

Android355 avatar Android355 commented on May 16, 2024

@zeeshanalisayyed Hi, did you manage to solve this problem?

from falcon.

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.