nstudio / nativescript-camera-plus

MIT License
79 stars 50 forks source link

nativescript 7.0.8 crash #136

Open peppeg85 opened 3 years ago

peppeg85 commented 3 years ago

hello, with ios when i try to navigate to the page that includes the plugin i have this error:

====== Assertion failed ======
Native stack trace:
1          0x10ac6bceb tns::Assert(bool, v8::Isolate*) + 119
2          0x10ac6497d tns::ClassBuilder::GetTypeEncodingType(v8::Isolate*, v8::Local<v8::Value>) + 121
3          0x10ac62a67 tns::ClassBuilder::ExposeDynamicMethods(v8::Local<v8::Context>, objc_class*, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::Local<v8::Object>) + 1069
4          0x10ac662e9 invocation function for block in tns::ClassBuilder::RegisterNativeTypeScriptExtendsFunction(v8::Local<v8::Context>)::$_0::operator()(v8::FunctionCallbackInfo<v8::Value> const&) const + 471
5       0x7fff50b98103 CALLING_SOME_+initialize_METHOD + 17
6       0x7fff50b98ee9 initializeNonMetaClass + 624
7       0x7fff50b994ba initializeAndMaybeRelock(objc_class*, objc_object*, mutex_tt<false>&, bool) + 157
8       0x7fff50ba3a5d lookUpImpOrForward + 595
9       0x7fff50b94219 _objc_msgSend_uncached + 73
10         0x10ad0edcd ffi_call_unix64 + 85
11      0x600002d2af90 11  ???                                 0x0000600002d2af90 0x0 + 105553163628432
JavaScript stack trace:
at push.../node_modules/@nstudio/nativescript-camera-plus/camera-plus.js.MySwifty.initWithOwner (file: node_modules/@nstudio/nativescript-camera-plus/camera-plus.ios.js:204:0)
at new CameraPlus (file: node_modules/@nstudio/nativescript-camera-plus/camera-plus.ios.js:549:0)
at <anonymous> (file: node_modules/@nativescript/core/ui/builder/component-builder/component-builder.js:39:0)
at getComponentModule (file: node_modules/@nativescript/core/ui/builder/component-builder/component-builder.js:116:0)

and the part of the xml is this:

<GridLayout>
    <Cam:CameraPlus row="0" height="{{cameraHeight}}" id="camPlus"
                galleryPickerMode="multiple"
                enableVideo="false" confirmVideo="false"
                saveToGallery="true" showCaptureIcon="true"
                showGalleryIcon="false" showToggleIcon="true"
                showFlashIcon="false" confirmPhotos="false"
                autoSquareCrop="false" insetButtons="true"
                insetButtonsPercent="0.02"
                debug="true" confirmSaveText="Salva"
                confirmRetakeText="Scatta di nuovo">
    </Cam:CameraPlus>
<GridLayout>

i use vanilla javascrtipt . how can i solve?

Codex- commented 3 years ago

This plugin has not been updated for use with NS7 yet, i'm going to look into this and get a PR ready as soon as possible :)

msn444 commented 3 years ago

Is there a timeline for NS7 support?

Codex- commented 3 years ago

@msn444 the PR is open but continues to be a WIP due to the video recording callback issues we were seeing.

wuilmerj24 commented 3 years ago

Support NS7?

MariaC15 commented 3 years ago

Hi. ??

Codex- commented 3 years ago

@wuilmerj24 @MariaC15

Hi

Please try the latest published version from npm, this project now lives here: https://github.com/nstudio/nativescript-plugins

Please open any issues you find on this repository

wuilmerj24 commented 3 years ago

@Codex- Ok. Thanks.