Skip to content

iOS tap issue #24

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

Closed
jlooper opened this issue Jun 2, 2017 · 14 comments · Fixed by #28
Closed

iOS tap issue #24

jlooper opened this issue Jun 2, 2017 · 14 comments · Fixed by #28
Labels

Comments

@jlooper
Copy link

jlooper commented Jun 2, 2017

when tapping any element on the sample apps, the app crashes:

*** Assertion failure in -[UIGestureGraphEdge initWithLabel:sourceNode:targetNode:directed:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.7.47/Source/GestureGraph/UIGestureGraphEdge.m:25
Jun  2 14:11:03 LOOPERMAC com.apple.CoreSimulator.SimDevice.1658C660-8802-4075-8603-2A0148C48692.launchd_sim[14161] (UIKitApplication:org.nativescript.vuesample[0x30e8][14183][43417]): Service exited due to Segmentation fault: 11
@tjvantoll
Copy link
Contributor

I’m hitting this error as well on a number of the samples. Very odd that there’s not more debugging information.

@rigor789
Copy link
Member

This is most likely the same bug that causes app to crash on garbage collection. As far as I know it is being tracked by the NativeScript team working on the debugger!

@vakrilov
Copy link

vakrilov commented Jun 29, 2017

I got the exact same exception yesterday.
@rigor789 do you know if there is related issue somewhere in the NS repos - I could take a look.

@rigor789
Copy link
Member

@vakrilov not that I know of. I have been talking to @bundyo about an issue with gc() but not sure if there is an issue open anywhere.

@vakrilov
Copy link

Found something worth sharing - It seems that the app crashes when an event is attached on a view inside a scroll. The simplest reproduce I got was that:

template: `
    <page>
        <stack-layout>
            <button @tap="onTap">Will Work</button>
            <scroll-view>
                <button @tap="onTap">Will Crash</button>
            </scroll-view>
        </stack-layout>
    </page>
`

The example with the list-view also crashes and again - the list view is scrollable.
Still no idea why this happens, but still interesting similarity.

@bundyo
Copy link

bundyo commented Jun 30, 2017

The issue Igor mentions was only in Android - the app crashed on garbage collection - I've reported it to Peter Kanev (@Pip3r4o) and he said that he reproduced it and tracked down its reason. No idea if the issue is logged though. Also not sure if this is the same issue as iOS runtime architecture is different.

@rigor789
Copy link
Member

Interesting that it seems to happen in a scroll-view with events attached. Does it crash instantly, or after scrolling the scroll-view @vakrilov? I guess if it crashes after scrolling, that it might be due to some gc() issue?

@rigor789 rigor789 added the bug label Jun 30, 2017
@vakrilov
Copy link

It crashes instantly so I don't think its a GC issue. UIGestureGraphEdge in the error above and the fact that Scroll/list-view handle touches makes me think it is gesture-related.
I also tried to reproduce the crash in a non-vue project with the same UI elements - I couldn't. So I guess the order in which the views are added is the difference and what's causing the crash.

@lewebsimple
Copy link

I get the same error using a ListView inside a DockLayout with 1.3.1, which is strange because it appears to have been fixed.

@lewebsimple
Copy link

Update: It crashes on iOS 11.x (simulator) but not iOS 9.x (physical device)

@sudhanshu-15
Copy link

I am facing the same issue buttons inside a scroll view. Haven't tested on a physical device.

@xlcrr
Copy link
Contributor

xlcrr commented May 1, 2018

Same problem =[

@andreMariano90
Copy link

I found a workaround -> #201

@eladcandroid
Copy link

+1

@nativescript-vue nativescript-vue locked as resolved and limited conversation to collaborators May 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging a pull request may close this issue.

10 participants