Uncommon/Xit — Issue #34: Sidebar reload crash
Author: Uncommon
Created: 2011-10-22 05:10:43+00:00
State: open
Labels: bug

Occasionally I see a crash when the sidebar is being reloaded. The stack trace is usually something like below. When I run again, it usually works fine. Perhaps reloadData shouldn't be called off the main thread?

```
Thread 5, Queue : com.xit.queue./Users/uncommon/Developer/Xit
#0	0x00007fff8a9e796c in void Auto::sieve_base::sieve_base_pointer(Auto::Zone*, void const*, set_write_barrier_value_sieve&) ()
#1	0x00007fff8a9e17f7 in auto_zone_set_write_barrier ()
#2	0x00007fff8b03c441 in objc_assign_strongCast_gc ()
#3	0x00007fff8c1c3da0 in -[NSTableRowData _removeRowViewForRow:] ()
#4	0x00007fff8c189b62 in -[NSTableRowData _removeVisibleRows] ()
#5	0x00007fff8c1897e7 in -[NSTableRowData removeAllKnownSubviews] ()
#6	0x00007fff8c1895df in -[NSTableRowData reloadData] ()
#7	0x00007fff8c193fe1 in -[NSTableView reloadData] ()
#8	0x00007fff8c2e1afd in -[NSOutlineView reloadData] ()
#9	0x0000000100004754 in -[XTSideBarDataSource _reload] at /Users/uncommon/Developer/Xit/Xit/XTSideBarDataSource.m:64
#10	0x000000010000460f in __29-[XTSideBarDataSource reload]_block_invoke_0 ()
#11	0x00007fff89b658ba in _dispatch_call_block_and_release ()
#12	0x00007fff89b6710a in _dispatch_queue_drain ()
#13	0x00007fff89b66f66 in _dispatch_queue_invoke ()
#14	0x00007fff89b66760 in _dispatch_worker_thread2 ()
#15	0x00007fff851143da in _pthread_wqthread ()
#16	0x00007fff85115b85 in start_wqthread ()
```