Skip to content

iOS: setting TabGroup navTintColor will crash on start #14211

@m1ga

Description

@m1ga

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

There was a change after 12.2.0 for the navTintColor: #13917
A user on slack reported a crash with TabGroups that I can reproduce when setting the navTintColor in the TabGroup.

Expected Behavior

don't crash

Actual behavior

crash with

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libobjc.A.dylib               	       0x180069684 objc_release + 16
1   libobjc.A.dylib               	       0x1800926dc AutoreleasePoolPage::releaseUntil(objc_object**) + 212
2   libobjc.A.dylib               	       0x1800925a0 objc_autoreleasePoolPop + 256
3   CoreFoundation                	       0x1804de418 _CFAutoreleasePoolPop + 28
4   CoreFoundation                	       0x1804274a8 __CFRunLoopPerCalloutARPEnd + 44
5   CoreFoundation                	       0x180422a18 __CFRunLoopRun + 1952
6   CoreFoundation                	       0x180421e3c CFRunLoopRunSpecific + 536
7   GraphicsServices              	       0x190f62d00 GSEventRunModal + 164
8   UIKitCore                     	       0x185bcec98 -[UIApplication _run] + 796
9   UIKitCore                     	       0x185bd3064 UIApplicationMain + 124
10  test_ios.debug.dylib          	       0x101633fc4 __debug_main_executable_dylib_entry_point + 848 (main.m:77)
11  ???                           	       0x100bb93d8 ???
12  dyld                          	       0x100d72b4c start + 6000

Reproducible sample

var win1 = Ti.UI.createWindow({
    title: 'Blue'
});

var win2 = Ti.UI.createWindow({
    title: 'Red'
});

var tab1 = Ti.UI.createTab({
    window: win1,
		title: "win1"
}),
tab2 = Ti.UI.createTab({
    window: win2,
		title: "win2"
}),
tabGroup = Ti.UI.createTabGroup({
		tabs: [tab1, tab2],
		navTintColor:"#ff0000"   // <--------------- this will crash it
});
tabGroup.open();

Steps to reproduce

run the example code

Platform

iOS

SDK version you are using

12.6.4.GA

Alloy version you are using

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugiosneeds triageThis issue hasn't been reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions