Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IntelliJ][ReportedByUser] Uncaught Exception java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add onError handling. #3454

Closed
pgogad opened this issue Aug 22, 2019 · 3 comments

Comments

@pgogad
Copy link

pgogad commented Aug 22, 2019

IntelliJ build version: 2019.2.1 IU-192.6262.58
OS: Mac OS X
JDK: JetBrains s.r.o 11.0.3
Plugin version: 3.25.0-2019.2
Additional Info: None
Parent component:

com.intellij.openapi.wm.impl.IdeRootPane[,0,0,1680x1027,layout=javax.swing.JRootPane$RootLayout,alignmentX=0.0,alignmentY=0.0,border=com.chrisrm.idea.ui.MTRootPaneUI$1@41fdc4ec,flags=449,maximumSize=,minimumSize=,preferredSize=]

Error message:

IdeaLoggingEvent[message=null, throwable=java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.
	at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:57)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: rx.exceptions.OnErrorNotImplementedException: Coordinate out o
@t-rufang
Copy link
Contributor

t-rufang commented Aug 22, 2019

@Flanker32 I have encountered the similar issue when I launch a new IntelliJ in debug mode. The stacktrace shows that error happens at at com.microsoft.azuretools.ijidea.ui.SurveyPopUpDialog.createUIComponents(SurveyPopUpDialog.java:223). Could you please help take a look at this issue?

	java.lang.IllegalStateException: Exception thrown on Scheduler.Worker thread. Add `onError` handling.
		at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:57)
		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
		at java.util.concurrent.FutureTask.run(FutureTask.java:266)
		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
		at java.lang.Thread.run(Thread.java:748)
	Caused by: rx.exceptions.OnErrorNotImplementedException: Coordinate out of bounds!
		at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:386)
		at rx.internal.util.InternalObservableUtils$ErrorNotImplementedAction.call(InternalObservableUtils.java:383)
		at rx.internal.util.ActionSubscriber.onError(ActionSubscriber.java:44)
		at rx.observers.SafeSubscriber._onError(SafeSubscriber.java:153)
		at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)
		at rx.exceptions.Exceptions.throwOrReport(Exceptions.java:212)
		at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:139)
		at rx.internal.operators.OperatorTake$1.onNext(OperatorTake.java:79)
		at rx.internal.operators.OperatorSubscribeOn$SubscribeOnSubscriber.onNext(OperatorSubscribeOn.java:74)
		at rx.internal.operators.OnSubscribeTimerOnce$1.call(OnSubscribeTimerOnce.java:49)
		at rx.internal.schedulers.EventLoopsScheduler$EventLoopWorker$2.call(EventLoopsScheduler.java:189)
		at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
		... 7 more
	Caused by: java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
		at sun.awt.image.IntegerInterleavedRaster.getDataElements(IntegerInterleavedRaster.java:264)
		at sun.awt.image.OffScreenImageSource.sendPixels(OffScreenImageSource.java:136)
		at sun.awt.image.OffScreenImageSource.produce(OffScreenImageSource.java:187)
		at sun.awt.image.OffScreenImageSource.addConsumer(OffScreenImageSource.java:66)
		at sun.awt.image.OffScreenImageSource.startProduction(OffScreenImageSource.java:80)
		at java.awt.image.FilteredImageSource.startProduction(FilteredImageSource.java:183)
		at sun.awt.image.ImageRepresentation.startProduction(ImageRepresentation.java:732)
		at sun.awt.image.ToolkitImage.addWatcher(ToolkitImage.java:221)
		at sun.awt.image.ToolkitImage.getProperty(ToolkitImage.java:169)
		at javax.swing.ImageIcon.<init>(ImageIcon.java:240)
		at com.microsoft.intellij.util.PluginUtil.getIcon(PluginUtil.java:183)
		at com.microsoft.azuretools.ijidea.ui.SurveyPopUpDialog.createUIComponents(SurveyPopUpDialog.java:223)
		at com.microsoft.azuretools.ijidea.ui.SurveyPopUpDialog.$$$setupUI$$$(SurveyPopUpDialog.java)
		at com.microsoft.azuretools.ijidea.ui.SurveyPopUpDialog.<init>(SurveyPopUpDialog.java:55)
		at com.microsoft.intellij.helpers.CustomerSurveyHelper.lambda$showFeedbackNotification$0(CustomerSurveyHelper.java:68)
		at rx.internal.util.ActionSubscriber.onNext(ActionSubscriber.java:39)
		at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:134)
		... 12 more

@wezhang
Copy link
Member

wezhang commented Aug 22, 2019

Looks like the parent component didn't include meanful messages and Microsoft code stack is drown.

This was referenced Aug 23, 2019
@Flanker32
Copy link
Member

Fixed by using IconUtil.scale in #3466

This was referenced Sep 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants