Comments (8)
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.
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.
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.
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.
@hshristov It crashes almost every time in the project https://github.com/tralves/not-hotdog-ns-vue.
from nativescript-vue.
@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.
@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.
@Pip3r4o
The issue appears fixed.
Keep up the great work!
Thanks!
from nativescript-vue.
Related Issues (20)
- Add component for template android and ios
- Vue 3: Can't use ios.position and android.position in ActionItem HOT 2
- Axios not supported in Nativescript-Vue apps anymore HOT 2
- v3 version a question HOT 2
- ListView event itemTap differences with the documentation HOT 3
- vite support HOT 1
- Vue DevTools on v3 HOT 4
- How do you programmatically trigger a tap event on a button ? HOT 4
- TabView on Vue3 HOT 2
- docs: A re-write of the NativeScript-Vue documentation site. HOT 2
- navigation in Vue beta 9 or 10 is broken in production mode HOT 4
- vueDevtools not working HOT 2
- Command failed: ruby -e "require 'xcodeproj' HOT 1
- error: Build input file cannot be found: metadata-x86_64.bin HOT 4
- Vue 3: android.startActivity & android.foregroundActivity are undefined HOT 4
- Support for Volar (AKA Vue Language Tools) in VS Code, vue-tsc, etc HOT 3
- Vue Devtools stop working HOT 2
- iOS tap issue when Frame actionBarVisibility is "never"
- Cant run from xcode HOT 11
- Suggestions for NativeScript Vue 3 Docs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nativescript-vue.