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

App Crashing - ERROR TypeError: null is not an object (evaluating 'vcRef.clear') #40

Closed
jdnichollsc opened this issue Jan 8, 2018 · 1 comment

Comments

@jdnichollsc
Copy link

Errors

  • Something I'm getting old images after refresh the array of the images.
  • Something I'm getting [object Object] from the first slide.

Which platform(s) does your issue occur on?

  • Testing on iOS device and emulator

Please, provide the following version numbers that your issue occurs with:

  • CLI: 3.3.0
  • version: ^7.0.3

Please, tell us how to recreate the issue in as much detail as possible.

Load new images and refresh the array.

Is there any code involved?

  • Template
<Pager [items]="images | async" #pager class="pager">
    <ng-template let-i="index" let-item="item">
        <GridLayout class="pager-item" rows="*" columns="*">
            <Image row="1" [src]="item.image"></Image>
            <Label [text]="item.title"></Label>
        </GridLayout>
    </ng-template>
</Pager>
  • Code
images: Observable<any[]>
ngOnInit() {
  myAPI.getImages((images) => {
    this.images = of(images)
  })
}

Log

CONSOLE ERROR file:///app/tns_modules/@angular/core/./bundles/core.umd.js:1052:24: ERROR TypeError: null is not an object (evaluating 'vcRef.clear')
CONSOLE ERROR file:///app/tns_modules/@angular/core/./bundles/core.umd.js:1052:24: ERROR TypeError: null is not an object (evaluating 'vcRef.clear')
1   0x10e8add4b NativeScript::FFICallback<NativeScript::ObjCMethodCallback>::ffiClosureCallback(ffi_cif*, void*, void**, void*)
2   0x10ef5128e ffi_closure_unix64_inner
3   0x10ef51bd2 ffi_closure_unix64
4   0x10fd8604e -[UIViewController __viewDidDisappear:]
5   0x10fd86142 -[UIViewController _endAppearanceTransition:]
6   0x10fd4e7da -[UIPresentationController transitionDidFinish:]
7   0x10ffd319a -[_UICurrentContextPresentationController transitionDidFinish:]
8   0x10fd527b5 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke_2
9   0x110939e89 -[_UIViewControllerTransitionContext completeTransition:]
10  0x10fd4b6be -[UITransitionView notifyDidCompleteTransition:]
11  0x10fd4b335 -[UITransitionView _didCompleteTransition:]
12  0x10fd4d9cc -[UITransitionView _transitionDidStop:finished:]
13  0x10fc7099d -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
14  0x10fc70fde -[UIViewAnimationState animationDidStop:finished:]
15  0x10fc71092 -[UIViewAnimationState animationDidStop:finished:]
16  0x1135f5a2b CA::Layer::run_animation_callbacks(void*)
17  0x1148b32b5 _dispatch_client_callout
18  0x1148bd496 _dispatch_main_queue_callback_4CF
19  0x114131ee9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
20  0x1140f6592 __CFRunLoopRun
21  0x1140f59b9 CFRunLoopRunSpecific
22  0x116c339c6 GSEventRunModal
23  0x10fbda5e8 UIApplicationMain
24  0x10ef51a2d ffi_call_unix64
25  0x132e63410
file:///app/tns_modules/nativescript-pager/pager.js:186:18: JS ERROR TypeError: null is not an object (evaluating 'vcRef.clear')

Let me know what you think
Thanks in advance

@triniwiz
Copy link
Owner

Try upgrading to the latest version

@triniwiz triniwiz closed this as completed Feb 3, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants