Exceptions logged from tracker but don't appear to be from my plugin

I've started receiving a very large number of exceptions in my tracker which don't appear to originate from my plugin. They look like the stacktrace below. Any ideas why I would be seeing these in my plugin's tracker?

com.intellij.diagnostic.IdeaReportingEvent$TextBasedThrowable
at com.intellij.diagnostic.IdeaReportingEvent.<init> (IdeaReportingEvent.java:20)
at com.intellij.diagnostic.IdeErrorsDialog.reportMessage (IdeErrorsDialog.java:576)
at com.intellij.diagnostic.IdeErrorsDialog.doOKAction (IdeErrorsDialog.java:363)
at com.intellij.openapi.ui.DialogWrapper$OkAction.doAction (DialogWrapper.java:1880)
at com.intellij.openapi.ui.DialogWrapper$DialogWrapperAction.actionPerformed (DialogWrapper.java:1840)
at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2348)
at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed (DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent (Component.java:6548)
at javax.swing.JComponent.processMouseEvent (JComponent.java:3325)
at java.awt.Component.processEvent (Component.java:6313)
at java.awt.Container.processEvent (Container.java:2237)
at java.awt.Component.dispatchEventImpl (Component.java:4903)
at java.awt.Container.dispatchEventImpl (Container.java:2295)
at java.awt.Component.dispatchEvent (Component.java:4725)
at java.awt.LightweightDispatcher.retargetMouseEvent (Container.java:4889)
at java.awt.LightweightDispatcher.processMouseEvent (Container.java:4526)
at java.awt.LightweightDispatcher.dispatchEvent (Container.java:4467)
at java.awt.Container.dispatchEventImpl (Container.java:2281)
at java.awt.Window.dispatchEventImpl (Window.java:2746)
at java.awt.Component.dispatchEvent (Component.java:4725)
at java.awt.EventQueue.dispatchEventImpl (EventQueue.java:764)
at java.awt.EventQueue.access$500 (EventQueue.java:98)
at java.awt.EventQueue$3.run (EventQueue.java:715)
at java.awt.EventQueue$3.run (EventQueue.java:709)
at java.security.AccessController.doPrivileged (AccessController.java:-2)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:80)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:90)
at java.awt.EventQueue$4.run (EventQueue.java:737)
at java.awt.EventQueue$4.run (EventQueue.java:735)
at java.security.AccessController.doPrivileged (AccessController.java:-2)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege (ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent (EventQueue.java:734)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent (IdeEventQueue.java:781)
at com.intellij.ide.IdeEventQueue._dispatchEvent (IdeEventQueue.java:718)
at com.intellij.ide.IdeEventQueue.dispatchEvent (IdeEventQueue.java:382)
at java.awt.EventDispatchThread.pumpOneEventForFilters (EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter (EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents (EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run (EventDispatchThread.java:82)
0
3 comments

How do you get the stacktrace of IdeaLoggingEvent in your implementation of ErrorReportSubmitter? If you're calling event.getThrowable().getStackTrace() please use event.getThrowableText() or event.getThrowable().printStackTrace() instead.

0

Yes, I do use event.getThrowable().getStackTrace(). But I don't understand why this causes this problem. Also, if I use the text methods then there is no way to examine individual stack trace elements, correct? Currently I am sending to Rollbar, which uses that information.

0

Currently getStackTrace() doesn't work properly for that, it always returns the same result. We definitely should fix that. Could you please create an issue about that?

As a workaround you can use event.getThrowableText() and create StackTraceElements from it by hand.

0

Please sign in to leave a comment.