Giter Site home page Giter Site logo

Crash in ViewPager about audioview HOT 4 CLOSED

4ertuk avatar 4ertuk commented on June 17, 2024
Crash in ViewPager

from audioview.

Comments (4)

JEuler avatar JEuler commented on June 17, 2024

Full stack-trace

    Process: com.mindful_inc.sparkler.qa, PID: 9986
    android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
        at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:7695)
        at android.view.ViewRootImpl.requestLayout(ViewRootImpl.java:1212)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
        at android.view.View.requestLayout(View.java:23089)
        at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
        at android.view.View.requestLayout(View.java:23089)
        at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.widget.ScrollView.requestLayout(ScrollView.java:1533)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:360)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.view.View.requestLayout(View.java:23089)
        at android.widget.TextView.checkForRelayout(TextView.java:8908)
        at android.widget.TextView.setText(TextView.java:5730)
        at android.widget.TextView.setText(TextView.java:5571)
        at android.widget.TextView.setText(TextView.java:5528)
        at com.keenfin.audioview.AudioView$2.run(AudioView.java:100)
        at java.lang.Thread.run(Thread.java:764)```

from audioview.

JEuler avatar JEuler commented on June 17, 2024

So, it is trying to set
mTime.setText(getTrackTime()); and telling me the Thread is wrong. How I can handle this correctly?

from audioview.

4eRTuk avatar 4eRTuk commented on June 17, 2024

I think I fixed this problem in f07dbef. Also added Travis CI support so it would be great to add some tests.

from audioview.

JEuler avatar JEuler commented on June 17, 2024

Hm, will see what I can do with tests. And thank you for bugfix (will check it soon). Great library!

from audioview.

Related Issues (19)

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.