Bug 494495 - [remote launch] Unable to cancel binary upload to remote target
Summary: [remote launch] Unable to cancel binary upload to remote target
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug (show other bugs)
Version: 9.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-debug-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard: triaged
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-24 22:31 EDT by Alvaro Sanchez-Leon CLA
Modified: 2020-09-04 15:20 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alvaro Sanchez-Leon CLA 2016-05-24 22:31:09 EDT

    
Comment 1 Alvaro Sanchez-Leon CLA 2016-05-24 22:39:19 EDT
The Automatic Remote Launch configuration has the option to upload a binary file to a remote target.
  Once triggering the launch if a Network connection is not available e.g. with a proxy sever unreachable, the user may attempt to cancel and correct the issue, 
however the cancel button will not respond and the job will continue for a very long time, even if he job is cancelled via the Progress view.

After a pretty long time, we can see an exception as follows:


eclipse.buildId=4.6.0.I20160428-0800
java.version=1.8.0_66
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

org.eclipse.cdt.launch.remote
Error
Tue May 24 21:15:10 EDT 2016
Error during file upload.

org.eclipse.remote.core.exception.RemoteConnectionException: 
	at org.eclipse.remote.internal.jsch.core.commands.FetchInfoCommand.getResult(FetchInfoCommand.java:44)
	at org.eclipse.remote.internal.jsch.core.JschFileStore.fetchInfo(JschFileStore.java:158)
	at org.eclipse.core.filesystem.provider.FileStore.copyFile(FileStore.java:206)
	at org.eclipse.core.filesystem.provider.FileStore.copy(FileStore.java:130)
	at org.eclipse.core.internal.filesystem.local.LocalFile.copy(LocalFile.java:123)
	at org.eclipse.cdt.launch.remote.RemoteHelper.remoteFileDownload(RemoteHelper.java:113)
	at org.eclipse.cdt.launch.remote.launching.RemoteGdbLaunchDelegate.launch(RemoteGdbLaunchDelegate.java:61)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:885)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:739)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1039)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1256)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)