Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash on NSData.getBytes #39

Closed
farfromrefug opened this issue Mar 20, 2020 · 2 comments
Closed

crash on NSData.getBytes #39

farfromrefug opened this issue Mar 20, 2020 · 2 comments
Assignees
Labels
bug Something isn't working ready for test

Comments

@farfromrefug
Copy link
Contributor

I get a crash on that line

====== Assertion failed ======
Native stack trace:
1          0x10726cc0b tns::Assert(bool, v8::Isolate*) + 119
2          0x10728fba8 tns::Interop::WriteValue(v8::Local<v8::Context>, tns::TypeEncoding const*, void*, v8::Local<v8::Value>) + 2552
3          0x10728f18a tns::Interop::SetFFIParams(v8::Local<v8::Context>, tns::TypeEncoding const*, tns::FFICall*, int, int, tns::V8Args&) + 110
4          0x10728ee13 tns::Interop::CallFunctionInternal(tns::MethodCall&) + 385
5          0x1071d88df tns::ArgConverter::Invoke(v8::Local<v8::Context>, objc_class*, v8::Local<v8::Object>, tns::V8Args&, tns::MethodMeta const*, bool) + 741
6          0x10723273e tns::MetadataBuilder::InvokeMethod(v8::Local<v8::Context>, tns::MethodMeta const*, v8::Local<v8::Object>, tns::V8Args&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, bool) + 76
7          0x10723201f tns::MetadataBuilder::MethodCallback(v8::FunctionCallbackInfo<v8::Value> const&) + 219
8          0x1073a25ac v8::internal::FunctionCallbackArguments::Call(v8::internal::CallHandlerInfo) + 620
9          0x1073a1a5c v8::internal::MaybeHandle<v8::internal::Object> v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::HeapObject>, v8::internal::Handle<v8::internal::FunctionTemplateInfo>, v8::internal::Handle<v8::internal::Object>, v8::internal::BuiltinArguments) + 556
10         0x1073a10a3 v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) + 259
11         0x107bdee19 Builtins_CEntry_Return1_DontSaveFPRegs_ArgvOnStack_BuiltinExit + 57
JavaScript stack trace:
at module.exports.push.../../nativescript-carto/plugin/utils/index.js.NTDirAssetPackageImpl.loadAsset (file:///app/bundle.js:3264:18)
at module.exports.push.../../nativescript-carto/plugin/vectortiles/index.js.MBVectorTileDecoder.createNative (file:///app/bundle.js:4295:50)
at module.exports.push.../../nativescript-carto/plugin/index.common.js.BaseNative.getNative (file:///app/bundle.js:1047:32)
at module.exports.push.../../nativescript-carto/plugin/vectortiles/index.js.MBVectorTileDecoder.setStyleParameter (file:///app/bundle.js:4319:14)
at module.exports.push.../node_modules/string-replace-loader/index.js?!../node_modules/string-replace-loader/index.js?!../node_modules/ts-loader/index.js?!./components/Map.ts?vue&type=script&lang=ts&.Map.updateLanguage (file:///app/bundle.js:10640:17)
at module.exports.push.../node_modules/string-replace-loader/index.js?!../node_modules/string-replace-loader/index.js?!../node_modules/ts-loader/index.js?!./components/Map.ts?vue&type=script&lang=ts&.Map.setCurrentLaye<…>

Right now might not be easy to create a simple example. Let me know if the stack is not enough

@darind darind self-assigned this Mar 20, 2020
@darind darind added the bug Something isn't working label Mar 20, 2020
@darind
Copy link
Collaborator

darind commented Mar 21, 2020

@farfromrefug, we have released a fix. Could you try it in your app?

@farfromrefug
Copy link
Contributor Author

@darind seems to be fixed. I ll close this and come back if i still see the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ready for test
Projects
None yet
Development

No branches or pull requests

2 participants