Coder Social home page Coder Social logo

Comments (8)

bradmartin avatar bradmartin commented on June 22, 2024

So this line: https://github.com/bradmartin/nativescript-floatingactionbutton/blob/master/fab-common.js#L43. I'll have to find some time to fix this piece, it's not a major issue to fix but I don't have time right now to fix and test.

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on June 22, 2024

Publishing 2.2.6 soon with the fix, it's here https://github.com/bradmartin/nativescript-floatingactionbutton/blob/master/fab-common.js#L43

from nativescript-floatingactionbutton.

jeremypele avatar jeremypele commented on June 22, 2024

@bradmartin We're using the latest version of the plugin and we've got the same issue on Android

Could it be that there is a regression somewhere?

Unable to resume activity {com.chronogolf.booking.chronogolf/com.tns.NativeScriptActivity}: com.tns.NativeScriptException: 
Calling js method onStart failed

TypeError: Cannot read property 'getVisibility' of null
File: "<embedded>, line: 815, column: 6107

StackTrace: 
	Frame: function:'View.(anonymous function)', file:'<embedded>', line: 815, column: 6108
	Frame: function:'S', file:'<embedded>', line: 1447, column: 13221
	Frame: function:'e', file:'<embedded>', line: 1447, column: 12304
	Frame: function:'t.onResumeNativeUpdates', file:'<embedded>', line: 2239, column: 12480
	Frame: function:'t._resumeNativeUpdates', file:'<embedded>', line: 2239, column: 3637
	Frame: function:'t.onLoaded', file:'<embedded>', line: 2239, column: 3145
	Frame: function:'View.onLoaded', file:'<embedded>', line: 815, column: 1335
	Frame: function:'', file:'<embedded>', line: 2239, column: 3279
	Frame: function:'t.eachChildView', file:'<embedded>', line: 2394, column: 2546
	Frame: function:'t.eachChild'...

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on June 22, 2024

Could be, not sure. I have the FAB in multiple apps in production on app stores and haven't had this crash occur. So I'm really not sure. Do you know what file is referenced by the <embedded> tag in the exception?

from nativescript-floatingactionbutton.

jeremypele avatar jeremypele commented on June 22, 2024

I don't know what the <embedded> tag refers to.
Fab button is included on my homepage and it looks like that:



<GridLayout column="*" rows="*">
  <GridLayout row="0" columns="*", rows="*, auto">
    <ScrollView row="0">
      [....]
    </ScrollView>
  </GridLayout>

  <FAB
    *ngIf="user?.id"
    row="0"
    [class.no-margin]="FABNoMargin"
    (tap)="goToBookingWidget()"
    icon="res://ic_add_white"
    backColor="#159c28"
    rippleColor="#e2f2e6"
    class="fab-action">
  </FAB>
</GridLayout>


from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on June 22, 2024

from nativescript-floatingactionbutton.

jeremypele avatar jeremypele commented on June 22, 2024

I can't always reproduce it in local. The issue is raised in Sentry for an app I just released last week.

I'll try to dig into that way. Thanks for the feedback 👍

from nativescript-floatingactionbutton.

bradmartin avatar bradmartin commented on June 22, 2024

Cool, keep me posted. Just a guess that when the ngIf is determining to show or not (visibility) it's not happening at the right time. If you keep having issues, it might be worth mentioning this on the NS core repo to see if they have an idea but they'll prob need a better stacktrace with out the <embedded> tag. I wonder if that's from webpack/uglify on a release build.

As a quick test, I'd try using the NS visibility instead of ngIf and see if that helps any. If so then the core team should have an idea on a correct fix or someone more knowledgable about angular than I 😄

from nativescript-floatingactionbutton.

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.