Giter Site home page Giter Site logo

Comments (5)

kefahB avatar kefahB commented on May 28, 2024 1

@bradmartin
I got it finally .. I think the problem come since that the topmost is deprecated with the latest version of tns-core-modules

  • my first App run with ths-core-modules : v6.0.1 and the "@nstudio/nativescript-loading-indicator": "^1.0.0"
  • the second one run with ths-core-modules : v6.2.3 and the "@nstudio/nativescript-loading-indicator": "^2.0.0"

I do update the first one like the second one an I have received same crash .. the I do the inverse and my project dose work as expected

Other observations : like I sed, I have tabView as a root and for each TabViewItem I have a Frame inside, the ONLY event that prevent the crash is naigatingTo .. I tried loaded, nevigatedTo and all of this do a crash ! To prevent the crash and keeping all event wok I tried the BottomNavigation and this prevent the crash !!

from nativescript-loading-indicator.

bradmartin avatar bradmartin commented on May 28, 2024

Not off top of my head, that seems really odd since the topmost() function should/is in nativescript's core-modules still.

Are you doing anything differently with this project? Maybe calling the loading-indicator at a time in the app where something is possibly undefined 😕not really sure.

from nativescript-loading-indicator.

kefahB avatar kefahB commented on May 28, 2024

@bradmartin ,

I confirm that the error come from this module, I have debugged a lot today .. and when I disable all loader show() and hide() than Android dose not have a problem any more !

Only show method who dose the crash !

I work on the latest version of NS ans same for tns-core-modules and using the v2.0.0 for this module

from nativescript-loading-indicator.

kefahB avatar kefahB commented on May 28, 2024

Hi @bradmartin ,

Any work in progress for this issu ?

Thanks

from nativescript-loading-indicator.

kefahB avatar kefahB commented on May 28, 2024

@NathanaelA please found this sample .. loading will work fist load .. if you change the tab and go back the app will crash !!

Crash info

[Galaxy S10]: An uncaught Exception occurred on "main" thread.
Calling js method onSelectedPositionChange failed
Error: android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?

StackTrace:
LoadingIndicator._createPopOver(file:///data/data/org.nativescript.preview/files/app/@nstudio/nativescript-loading-indicator/loading-indicator.js:227:27)
at LoadingIndicator.show(file:///data/data/org.nativescript.preview/files/app/@nstudio/nativescript-loading-indicator/loading-indicator.js:38:22)
at HomeViewModel(file:///data/data/org.nativescript.preview/files/app/home/home-view-model.js:9:16)

Please I have disabled this plugin from all my apps because is crash it

from nativescript-loading-indicator.

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.