Giter Site home page Giter Site logo

Comments (8)

bundyo avatar bundyo commented on May 16, 2024 1

More info from Peter Kanev in #vue on NativeScript Community slack:

Update on the vue crashing issue on Android: The internal v8 API that the runtime makes use of to distinguish if an object is specific to {N} or is purely JavaScript crashes unexpectedly when analyzing the Vue object instance (I assume there is only one? I'd appreciate a confirmation or disagreements here). The V8 VM cannot determine the instance type of Vue, does not even consider it a standard JS object. Something arcane is happening, and I don't know what at the moment.

I'd love it if someone could spend some time to explain or show me how Vue works, in detail. Why is there only one Vue object, what happens to its prototype, where is it used (or rather, where is it not?), is the observable model implemented through that one Vue object?

from nativescript-vue.

EddyVerbruggen avatar EddyVerbruggen commented on May 16, 2024

As discussed with Peter Kanev a similar crash can be observed when manually triggering garbage collection while running the same app normally (tns run android):

// require utils
const utils = require('utils/utils')

// anywhere you fancy:
utils.GC();

This GC call is cleaning up more references than it should. Kind of like a reverse memory leak.

from nativescript-vue.

tralves avatar tralves commented on May 16, 2024

The segfault also occurs on this line when loading an image into a base64 string.

On adb, I see is the segfault:

07-14 21:31:24.895  5024  5024 F libc    : Fatal signal 4 (SIGILL), code 2, fault addr 0x99c6e4d9 in tid 5024 (cript.vuesample)
07-14 21:31:25.852  1577  5061 W ActivityManager:   Force finishing activity org.nativescript.vuesample/com.tns.NativeScriptActivity
07-14 21:31:25.855  1255  1255 W         : debuggerd: resuming target 5024

from nativescript-vue.

hshristov avatar hshristov commented on May 16, 2024

Following the above steps I get:

TypeError: No known component for element actionbar

I tried to link from the root of the repo but it is not working on Windows. (too deep nested linking error)

@tralves @lilkren @EddyVerbruggen Any tips on how to reproduce this issue?

from nativescript-vue.

tralves avatar tralves commented on May 16, 2024

@hshristov It crashes almost every time in the project https://github.com/tralves/not-hotdog-ns-vue.

from nativescript-vue.

petekanev avatar petekanev commented on May 16, 2024

@hshristov the actionbar additions don't seem to be uploaded as an npm package yet. I added nativescript-vue locally inside the sample project in order to test.

from nativescript-vue.

petekanev avatar petekanev commented on May 16, 2024

@lilkren @tralves I believe we've properly addressed the problem now. The fix should be available in @next of the android runtime in an hour or so from the hour of writing.

Please let me know if the issue disappears on your end.

Thank you!

from nativescript-vue.

lilkren avatar lilkren commented on May 16, 2024

@Pip3r4o
The issue appears fixed.
Keep up the great work!
Thanks!

from nativescript-vue.

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.