← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1435778] [NEW] can not set applicationName property from variable

 

Public bug reported:

trying to use an external config for some global settings in an app
framework it turns out that you can not set the "applicationName"
property of a MainView from an external variable ... it seems like the
qml/js imports are only processed after the empty APP_ID was handed to
the lifecycle management.

using either an imported .js file or a singleton imported from a qml
file like in http://paste.ubuntu.com/10667313/ and
http://paste.ubuntu.com/10667782/ always results in the following errors
in the application log:

[0323/175358:ERROR:cache_util.cc(132)] Unable to move cache folder /home/phablet/.cache/QtProject/foo-bar.ogra/Cache to /home/phablet/.cache/QtProject/foo-bar.ogra/old_Cache_000
[0323/175358:ERROR:cache_creator.cc(133)] Unable to create cache
[0323/175358:ERROR:cache_util.cc(132)] Unable to move cache folder /home/phablet/.local/share/QtProject/foo-bar.ogra/GPUCache to /home/phablet/.local/share/QtProject/foo-bar.ogra/old_GPUCache_000
[0323/175358:ERROR:cache_creator.cc(133)] Unable to create cache
[0323/175358:ERROR:shader_disk_cache.cc(614)] Shader Cache Creation failed: -2

additionally apparmor denials can be seen for the same path (as
expected, an app should not try to create something out of its
namespace) in /var/log/syslog

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  trying to use an external config for some global settings in an app
  framework it turns out that you can not set the "applicationName"
  property of a MainView from an external variable ... it seems like the
- qml/js imports are only processed after the APP_ID was handed to the
- lifecycle management.
+ qml/js imports are only processed after the empty APP_ID was handed to
+ the lifecycle management.
  
  using either an imported .js file or a singleton imported from a qml
  file like in http://paste.ubuntu.com/10667313/ and
  http://paste.ubuntu.com/10667782/ always results in the following errors
  in the application log:
  
  [0323/175358:ERROR:cache_util.cc(132)] Unable to move cache folder /home/phablet/.cache/QtProject/foo-bar.ogra/Cache to /home/phablet/.cache/QtProject/foo-bar.ogra/old_Cache_000
  [0323/175358:ERROR:cache_creator.cc(133)] Unable to create cache
  [0323/175358:ERROR:cache_util.cc(132)] Unable to move cache folder /home/phablet/.local/share/QtProject/foo-bar.ogra/GPUCache to /home/phablet/.local/share/QtProject/foo-bar.ogra/old_GPUCache_000
  [0323/175358:ERROR:cache_creator.cc(133)] Unable to create cache
  [0323/175358:ERROR:shader_disk_cache.cc(614)] Shader Cache Creation failed: -2
  
  additionally apparmor denials can be seen for the same path (as
  expected, an app should not try to create something out of its
  namespace) in /var/log/syslog

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

Title:
  can not set applicationName property from variable

Status in ubuntu-ui-toolkit package in Ubuntu:
  New

Bug description:
  trying to use an external config for some global settings in an app
  framework it turns out that you can not set the "applicationName"
  property of a MainView from an external variable ... it seems like the
  qml/js imports are only processed after the empty APP_ID was handed to
  the lifecycle management.

  using either an imported .js file or a singleton imported from a qml
  file like in http://paste.ubuntu.com/10667313/ and
  http://paste.ubuntu.com/10667782/ always results in the following
  errors in the application log:

  [0323/175358:ERROR:cache_util.cc(132)] Unable to move cache folder /home/phablet/.cache/QtProject/foo-bar.ogra/Cache to /home/phablet/.cache/QtProject/foo-bar.ogra/old_Cache_000
  [0323/175358:ERROR:cache_creator.cc(133)] Unable to create cache
  [0323/175358:ERROR:cache_util.cc(132)] Unable to move cache folder /home/phablet/.local/share/QtProject/foo-bar.ogra/GPUCache to /home/phablet/.local/share/QtProject/foo-bar.ogra/old_GPUCache_000
  [0323/175358:ERROR:cache_creator.cc(133)] Unable to create cache
  [0323/175358:ERROR:shader_disk_cache.cc(614)] Shader Cache Creation failed: -2

  additionally apparmor denials can be seen for the same path (as
  expected, an app should not try to create something out of its
  namespace) in /var/log/syslog

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1435778/+subscriptions


Follow ups

References