Prevent unbounded thread creation during parallel OST generation

Issue #361 resolved
Philip Stennett created an issue

When I try to generate the offline symbol table for my project the IDE crashes and completely closes every time. Plugin and IDEA are both fully up to date.

The root cause is unbounded thread creation when parallel OST generation is enabled. Need to see whether the number of active threads can be capped and, if so, decide what value to use (configurable?).

Comments (7)

  1. Scott Wells repo owner

    Philip, would you mind doing two things: 1) send me your idea.log found via Help>Show Log in Explorer/Finder; 2) try generating the OST with parallel processing disabled and see if that works.

  2. Philip Stennett reporter

    Turning off the parallel processing fixed the issue! I have attached the log which I believe has the error from yesterday anyway in case it helps.

  3. Scott Wells repo owner

    Thanks, Philip. It definitely looks like it's an issue with the thread pool being allowed to grow too large. I'm just using IntelliJ IDEA's built-in thread pooling, so I'll see if there's a way to be more selective with that going forward to avoid this type of situation.

  4. Scott Wells repo owner

    Putting this into the bucket for investigation. If there's an easy way to cap the thread pool size using IntelliJ's thread pooling capabilities, I'll fix it as well.

  5. Log in to comment