question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modifying the widget tree in some ways leads to a crash

See original GitHub issue

Problem description

Modifying a widget tree in a certain way (snippet 1) to achieve the constellation from snippet 2 results into the app hanging up.

Creating the same constellation at once works as expected (snippet 2).

Environment

  • Tabris.js version: 3.4
  • OS: Android 9

Code snippet

Snippet 1:

import {contentView, Composite} from 'tabris';

contentView.append(
  <Composite left centerY width={30} height={30} background='red' right='next()' />
)

setTimeout(() => {
  contentView.append(
    <Composite right centerY width={30} height={30} background='blue' />
  );
}, 2000)

Snippet 2:

import {contentView, Composite} from 'tabris';

contentView.append(
  <$>
    <Composite left centerY width={30} height={30} background='red' right='next()' />
    <Composite right centerY width={30} height={30} background='blue' />
  </$>
)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tbuschtocommented, Jun 24, 2020

@fax1ty Tabris and tabris-cli versions?

0reactions
fax1tycommented, Jun 24, 2020

@fax1ty Tabris and tabris-cli versions?

3.5.0, both

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tried to listen to a value exposed with provider, from outside of ...
Is there any way to access the provider from outside the widget tree ?. A common case would be using the showDialog method...
Read more >
Understand Kivy order-of-creation, changing root widget ...
Using a Screenmanager as the root widget, I have some simple code to (optionaly) display a Splashscreen, then the Mainscreen. It works fine....
Read more >
Enhance your widget - Android Developers
This page includes details for optional widget enhancements that are available starting in Android 12 (API level 31). These features are optional, ...
Read more >
Kivy Crash Course 3 - More interesting widget interactions
This post has been a very quick introduction to some basic Kivy layout techniques, and a simple way to bind our own behaviours...
Read more >
Creating and Displaying UI | Unreal Engine 4.27 Documentation
In this how-to, we will create a Widget Blueprint and add some Text to it, then through the Level Blueprint display it when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found