ProMotion
ProMotion copied to clipboard
ProMotion 2.3 - `open_tab_bar` from a screen causes a WeakRef crash
When calling open_tab_bar from a screen and not from the app delegate, selecting a tab causes a crash.
Crash error:
2015-03-24 17:07:23.682 Outstand[8572:13936577] tab_bar_controller.rb:66:in `on_tab_selected_try:': Invalid Reference - probably recycled (WeakRef::RefError)
from tab_bar_controller.rb:48:in `tabBarController:didSelectViewController:'
2015-03-24 17:07:23.719 Outstand[8572:13936577] *** Terminating app due to uncaught exception 'WeakRef::RefError', reason: 'tab_bar_controller.rb:66:in `on_tab_selected_try:': Invalid Reference - probably recycled (WeakRef::RefError)
from tab_bar_controller.rb:48:in `tabBarController:didSelectViewController:'
'
Code that causes crash: https://github.com/clearsightstudio/ProMotion/blob/version-2.3/lib/ProMotion/cocoatouch/tab_bar_controller.rb#L65-L69