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

Launching a machine sometimes crashes with "Invalid thread access" #15

Open
Haspamelodica opened this issue Oct 7, 2020 · 0 comments
Open
Labels
bug Something isn't working

Comments

@Haspamelodica
Copy link
Member

Haspamelodica commented Oct 7, 2020

This seems to happen when the launch is very slow. Maybe if Eclipse performs the Launch task in the background?

Relevant log excerpt

!ENTRY org.eclipse.core.jobs 4 2 2020-10-07 18:33:10.740
!MESSAGE An internal error occurred during: "Launching MiniJava fac".
!STACK 0
org.eclipse.swt.SWTException: Invalid thread access
	at org.eclipse.swt.SWT.error(SWT.java:4711)
	at org.eclipse.swt.SWT.error(SWT.java:4626)
	at org.eclipse.swt.SWT.error(SWT.java:4597)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:452)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:370)
	at org.eclipse.swt.widgets.Text.setText(Text.java:2275)
	at net.haspamelodica.swt.helper.input.Input.setRawInput(Input.java:200)
	at net.haspamelodica.swt.helper.input.Input.inputChanged(Input.java:189)
	at net.haspamelodica.swt.helper.input.Input.setValue(Input.java:90)
	at net.mograsim.plugin.views.SimulationView.speedFactorChanged(SimulationView.java:176)
	at net.mograsim.plugin.launch.MachineDebugTarget.lambda$1(MachineDebugTarget.java:301)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1510)
	at net.mograsim.plugin.launch.MachineDebugTarget.callExecutionSpeedListener(MachineDebugTarget.java:301)
	at net.mograsim.plugin.launch.MachineDebugTarget.setExecutionSpeed(MachineDebugTarget.java:139)
	at net.mograsim.plugin.launch.MachineLaunchConfigType.launch(MachineLaunchConfigType.java:136)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:860)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:719)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1017)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$2.run(DebugUIPlugin.java:1220)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
@Haspamelodica Haspamelodica added the bug Something isn't working label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant