deadlock on startup

the entire app deadlocks with a spinning pinwheel sometimes.

after a bit of research:

  • requires 3 stacks to simultaneously add something to the dev console before the dev console has loaded completely.

it may also require a whole bunch of stacks -- i was never able to repeat the issue without having about 300 installed -- but i think it's all about creating the condition where the dev console is trying to load (on the main thread) and something else is happening in the library load that also wants the main thread.

at some point all all the synchronous queues get locked up and things grind to a halt.