Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19760] iOS: Enabled main thread produces unexpected behavior

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-10-23T23:56:43.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.1.0
ComponentsiOS, Tooling
Labelsn/a
ReporterHans Knöchel
AssigneePedro Enrique
Created2015-10-22T03:13:50.000+0000
Updated2015-12-02T18:46:05.000+0000

Description

The main thread is enabled by default in Ti SDK 5.1.0 and later. This just produced quite a lot unexpected behaviors on my projects, here some of them: * Click events on some views not working * Picker does not appear any more Disabling the usage of the main thread manually resolves all issues. Because of that and the related tickets we received so far (where disabling the main thread resolved them), I would overthink if we really should enable the main thread updates in 5.1.

Comments

  1. Chris Barber 2015-10-22

    This is a major breaking change and if we continue with this architecture change, then it should be done for Titanium SDK 6.0, not 5.1.
  2. Fokke Zandbergen 2015-10-22

    When we make this default we should do a guide and blog post on this with clear illustration like [~ronaldtreur] did: http://www.slideshare.net/ronaldtreur/titanium-making-the-most-of-your-single-thread
  3. Chee Kiat Ng 2015-10-22

    see related ticket. enabling it will affect debugger.
  4. Sebastian Klaus 2015-10-22

    I think, that a full working example guide how to call functions with main thread active would be required. There would be several Appcelerator users, who are confused whats happening in their code
  5. Pedro Enrique 2015-10-23

    Making the Kroll Thread default for now. PR Master: https://github.com/appcelerator/titanium_mobile/pull/7341 PR 5.1.x: https://github.com/appcelerator/titanium_mobile/pull/7342
  6. Eric Wieber 2015-10-29

JSON Source