SDK not able to provide further hint about missing apparmor policy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtcreator-plugin-ubuntu (Ubuntu) |
Fix Released
|
Wishlist
|
Benjamin Zeller |
Bug Description
As miss the "audio" policy in the apparmor file. However, the output window produces the indirect error message instead of printing "missing audio policy" kind of error. Attached please find the error message:
=======
MediaPlayer {
id: player
source: "sounds/blast.wav"
}
=======
virtual void AalMediaPlayerC
virtual QMediaPlayer:
Cannot start playback without a valid media-hub player session
Cannot get current playback position without a valid media-hub player session
...
This kind of problem happens to the rest of the APIs as well. If we cannot output the correct clear information like "missing audio security policy", a developer has to spend a lot of time in figuring out what could be wrong. Sometimes, a developer may be misled to troubleshoot API usage instead of adding the correct security policies.
Related branches
- Zoltan Balogh: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 217 lines (+107/-23)2 files modifiedshare/qtcreator/ubuntu/scripts/qtc_device_applaunch.py (+80/-19)
src/ubuntu/ubunturemoterunner.cpp (+27/-4)
Changed in qtcreator-plugin-ubuntu: | |
status: | New → Invalid |
summary: |
- SDK output window produces the wrong error messages + SDK not able to provide further hint about missing apparmor policy |
description: | updated |
tags: | added: univ-train |
description: | updated |
Changed in qtcreator-plugin-ubuntu: | |
status: | In Progress → Fix Released |
no longer affects: | qtcreator-plugin-ubuntu |
Changed in qtcreator-plugin-ubuntu (Ubuntu): | |
importance: | Undecided → Wishlist |
assignee: | nobody → Benjamin Zeller (zeller-benjamin) |
The application is doing the right thing-- it is simply responding to what the kernel/dbus is doing, which is blocking access to media-hub. The SDK could look at /var/log/syslog for apparmor denials and display them to the user which could be helpful. Documentation could also help in this regard.