Skip to content

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

@Haspamelodica

Description

@Haspamelodica

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions