Skip to content

Crash: View already has a parent on Android 7.0 with Split screen + pageTransitions #4015

@m-abs

Description

@m-abs

Please, provide the details below:

Did you verify this is a real problem by searching [Stack Overflow]

I can consistently reproduce the problem on my Android 7.0 emulator.

Tell us about the problem

My App crashes on Android 7.0, if I have switched page and open Android 7.0's split screen.

Which platform(s) does your issue occur on?

Android 7.0

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

  • CLI: 2.5.3
  • Cross-platform modules: 2.5.2
  • Runtime(s): tns-android@2.5.0
  • Plugin(s): none

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

  1. create an angular project with: tns create hallo-world --ng
  2. set pageTransition="slideTop" on the nsRouterLink-label in app/item/items.component.html
  3. Run the App on an Android 7.0 emulator
  4. Tap an item and tap back
  5. Hold the window-switch-button down until the split-screen comes up.
  6. The App should now have crashed with the "View already has a parent"-error.

I don't know if it's caused by the same problem, but I've seen the error many times. But I haven't been able to reproduce it, making it hard to write a proper bug report on the issue.

android7-crash-view-already-have-parent

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

I've added a test project here:
https://github.com/m-abs/ns-debugging/tree/master/crash-view-already-have-parent

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions