View Issue Details

IDProjectCategoryView StatusLast Update
0003075Slicer4Core: Base Codepublic2017-06-07 23:27
Reporterbmoloney Assigned Tojcfr  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product VersionSlicer 4.2.2-1 
Target VersionSlicer 4.3.0Fixed in VersionSlicer 4.3.0 
Summary0003075: Can't launch program through symlink
Description

I have symbolic links for Slicer3, Slicer4, and Slicer (currently defaults to Slicer4). This worked with version 4.1 but as of 4.2 launching through a symbolic links results in the error:

"Failed to obtain launcher executable name"

TagsNo tags attached.

Activities

jcfr

jcfr

2013-04-18 07:29

administrator   ~0008434

Hi,

Would it be possible to provide more details ? I just tried on Linux using 4.2.2-1 and on both Linux and MacOSX using the Nightly and it worked without any issue.

cd Projects
ln -s /path/to/Slicer-4.2.2-1-linux-amd64/Slicer Slicer4
./Slicer4

Which platform / OS are you using ?

The launcher code in charge of resolving the symlink target is the following: https://github.com/commontk/AppLauncher/blob/c1ba69aa0b7cfccbc59e4fc430bb8d63f8ef750c/Base/ctkAppLauncher.cpp#L383-408

bmoloney

bmoloney

2013-04-18 12:20

reporter   ~0008438

Hmm, it seems this only happens when the symlink already exists and after a while it goes away. I am guessing it is some sort of NFS caching issue. You can go ahead and close the issue. Thank you and sorry for the noise.

bmoloney

bmoloney

2013-04-18 12:37

reporter   ~0008440

Last edited: 2013-04-18 13:20

Hmm, scratch that. I still have the issue but for some reason it was masked by having created a symlink in my current working directory while testing (even though I was calling the one on my PATH).

Your test case does not cause the problem for me, however I can reliably recreate this with:

$ mkdir /path/to/test_bin
$ export PATH=/path/to/test_bin:$PATH
$ ln -s /path/to/Slicer-4.2.2-1-linux-amd64/Slicer /path/to/test_bin/SlicerTest
$ SlicerTest
error: Failed to obtain launcher executable name !

This is on Linux.

ChrisG

ChrisG

2013-05-07 01:38

reporter   ~0008566

This bug also prevents adding "Slicer" binary to the PATH variable (with or without symlinks). It's especially problematic if one would like to use CLI modules using the "Slicer --launch" syntax.

bmoloney

bmoloney

2013-05-09 12:25

reporter   ~0008603

Yes, I think the primary issue is launching Slicer through the PATH and symlinks are not actually the problem.

ChrisG

ChrisG

2013-05-10 01:34

reporter   ~0008606

I've just tested symliking and it works - it is only the problem with PATH.

jcfr

jcfr

2013-05-13 18:48

administrator   ~0008634

Here is a topic that is addressing the problem: https://github.com/jcfr/AppLauncher/compare/commontk:master...39-support-launcher-symlink-in-path

Associated issue: https://github.com/commontk/AppLauncher/issues/39

This will soon be integrated to CTKAppLauncher master. Then, after releasing a new set of launcher packages and updated Slicer to use these ... the problem should be fixed.

jcfr

jcfr

2013-09-02 21:58

administrator   ~0009813

Fixed in r22389
See http://viewvc.slicer.org/viewvc.cgi/Slicer4?view=revision&revision=22389

jcfr

jcfr

2014-03-06 05:00

administrator   ~0010858

Closing resolved issues that have not been updated in more than 3 months

jcfr

jcfr

2017-06-07 23:27

administrator   ~0014596

Fix committed to 2145-support-for-installing-extension-from-file branch.

Related Changesets

Slicer: 2145-support-for-installing-extension-from-file 6fbd582a

2013-09-03 01:58:20

jcfr

Details Diff
BUG: With "--launch" arg - Add symlink support / Do not show splashscreen

Fixes 0002356
Fixes 0003075

git-svn-id: http://svn.slicer.org/Slicer4/trunk@22389 3bd1e089-480b-0410-8dfb-8563597acbee
mod - SuperBuild/External_CTKAPPLAUNCHER.cmake Diff File

Issue History

Date Modified Username Field Change
2013-04-16 21:43 bmoloney New Issue
2013-04-16 21:43 bmoloney Status new => assigned
2013-04-16 21:43 bmoloney Assigned To => jcfr
2013-04-18 07:29 jcfr Note Added: 0008434
2013-04-18 07:29 jcfr Status assigned => feedback
2013-04-18 07:29 jcfr Target Version => Slicer 4.3.0
2013-04-18 12:20 bmoloney Note Added: 0008438
2013-04-18 12:37 bmoloney Note Added: 0008440
2013-04-18 13:20 jcfr Note Edited: 0008440
2013-05-07 01:38 ChrisG Note Added: 0008566
2013-05-09 12:25 bmoloney Note Added: 0008603
2013-05-10 01:34 ChrisG Note Added: 0008606
2013-05-13 18:48 jcfr Note Added: 0008634
2013-09-02 21:58 jcfr Note Added: 0009813
2013-09-02 21:58 jcfr Status feedback => resolved
2013-09-02 21:58 jcfr Fixed in Version => Slicer 4.3.0
2013-09-02 21:58 jcfr Resolution open => fixed
2014-03-06 05:00 jcfr Note Added: 0010858
2014-03-06 05:02 jcfr Status resolved => closed
2017-06-07 23:27 jcfr Changeset attached => Slicer 2145-support-for-installing-extension-from-file 6fbd582a
2017-06-07 23:27 jcfr Note Added: 0014596