← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1388997] Re: Error launching scope from Qt Creator to RTM v5 emulator

 

** No longer affects: qtcreator-plugin-ubuntu

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1388997

Title:
  Error launching scope from Qt Creator to RTM v5 emulator

Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
  New

Bug description:
  I just downloaded the recent RTM v5 image, and when I tried to run a
  scope on it, I got this error:

  Warning: Permanently added '[127.0.0.1]:10000' (RSA) to the list of known hosts.
  X11 forwarding request failed on channel 0
  Sdk-Launcher> Executing:     /tmp/com.ubuntu.developer.rschroll.alpha_0.1_i386.click
  Sdk-Launcher> Force Install: False
  Sdk-Launcher> Skip Uninstall:False
  Sdk-Launcher> Launcher PID: 5433
  Sdk-Launcher> Error: This application is already installed on the device, uninstall it or temporarily change the name in the manifest.json file!
  Warning: Permanently added '[127.0.0.1]:10000' (RSA) to the list of known hosts.
  X11 forwarding request failed on channel 0
  Sdk-Launcher> Executing:     /tmp/com.ubuntu.developer.rschroll.alpha_0.1_i386.click
  Sdk-Launcher> Force Install: True
  Sdk-Launcher> Skip Uninstall:False
  Sdk-Launcher> Launcher PID: 5459
  Sdk-Launcher> Uninstalling already installed package (--force-install)
  Sdk-Launcher> Installing application .....
  Sdk-Launcher> Application installed successfully
  FileNotFoundError(2, 'No such file or directory')
  Traceback (most recent call last):
    File "/tmp/qtc_device_applaunch.py", line 456, in <module>
      if(powerd):
  NameError: name 'powerd' is not defined

  I think I've traced it down, but there are at lease three problems in
  qtc_device_launch.py related to this.

  The actual problem was that ~/.local/share/unity-scopes/leaf-net/ did
  not exist.  This meant that line 409 threw an error when it tried to
  create a subdirectory of that.  This could be fixed by using
  os.makedirs() instead of os.mkdir().

  This problem was hidden by the broad except clause at line 452.  I
  assume it's there to ensure that clean-up code is called, but really
  that clean-up should be done inside the except block and the exception
  re-raised afterwards, to assist trouble-shooting.  If this isn't
  possible, the full traceback should be printed in the except block,
  instead of just the error.

  Shortly thereafter, the code ran into the problem that powerd was
  defined inside the try block, after our exception was raised.  This
  caused the exception that halted the execution, before any clean-up
  could be done.  This could be fixed by setting powerd = None before
  the try statement.  But I think a better solution would be to break up
  that huge try block into a series of focused exception handlers, so
  that we know what caused the exception and can clean up appropriately.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1388997/+subscriptions