There is a big amount of times when we code something that yields a heisenbug. An example of this is OpenERP 7, in the sense that you install a module and SOMETIMES when you try to trigger an action by clicking a menu item, the sidebar disappears. Most of the times, you reinstall the conflicting module (without doing any distinct step), and it works. Quite unstable in my opinion, but widely used.
In the How to ask a good question guidelines (and also in the "V" part of mcve guidelines), the 4th paragraph recommends people to give a reproducible example or hints on how to reproduce the problem.
How do I ask a question when the problem involves a heisenbug (i.e. a bug that appears randomly)?