I'm currently working through a particularly tough bug at work. I've seen this class of bug before, and each time I'd rate the difficultly in conquering it somewhere between 'annoying' and 'near impossible'. These type of bugs all have these same characteristics:
I don't want to go over the exact details of this bug. I have no interest in calling out that library. Instead, I'd like to go over how I've approached these bugs in the past.
When I get assigned one of these bugs, I assign myself a valiant first attempt. I give myself a three point ticket (this is for me a full day of interrupted work) and try to do the following things:
Performing these items diligently tend to solve the bug. But not always.
If the bug is still being reported after I've made my best first pass at it, the next thing I do is to add a near-unreasonable amount of user tracking around where the bug occurs. The goal of this is to collect as much information as possible and try to get steps to reliably reproduce the bug. We also have a secondary goal of figuring out how often this bug occurs and if I can get a live notification of when this bug occurs. Once we realize how often this bug occurs, then it will be up to product to determine prioritization.
If product has determined this is a top priority, I pull another engineer and we pair on this and until we have confidence that it is solved. I don't have a magic solution here, we just work through and persevere until we have reproduction steps. Once we're able to reliably reproduce the bug, finding a solution is much closer, it truly becomes a matter of when and not if.
I think I'll get this bug solved in the next couple of weeks, but as long as the frontend is littered with libraries-on-libraries, I'll find myself in a similar situation in the future.