Can't add picture to post (Both gallery and camera) via Twitter

Bug #1474234 reported by Hao Li
28
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Critical
David Barth
Oxide
Fix Released
Undecided
Unassigned
The Webapps-core project
Fix Released
Critical
Alexandre Abreu
webapps-sprint
Fix Released
High
Alexandre Abreu

Bug Description

$ system-image-cli -i
current build number: 57
device name: arale
channel: ubuntu-touch/rc-proposed/meizu.en
last update: 2015-07-10 02:04:41
version version: 57
version ubuntu: 20150709
version device: 20150709-8965e37
version custom: 20150709-814-6-40

Reproduce steps:
1,Sign in twitter via twitter application where apps scops
2,Tap on the tweet button
3,Tap on the camera icon
4,Select the gallery or camera to add photo to post

Expect Result:
It's can be add photo to post successfully

Actual Result :
Can't add picture to post (Both gallery and camera) via Twitter

Tags: hotfix

Related branches

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

Confirmed, I could repro this on r58/arale

Changed in webapps-core:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Alexandre Abreu (abreu-alexandre)
Changed in webapps-core:
status: Confirmed → In Progress
Changed in webapps-sprint:
milestone: none → sprint-12
assignee: nobody → Alexandre Abreu (abreu-alexandre)
importance: Undecided → High
status: New → In Progress
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

A case of "use after free", caused by the same Done() function in the FilePicker being called twice. The gist of the issue (besides the use after free) is the timer used in the webapp-container/webbrowser-app to circumvent app lifecycle issues.

Revision history for this message
dinamic (dinamic6661) wrote :

same on meizu / r3 (stable)

Changed in canonical-devices-system-image:
assignee: nobody → David Barth (dbarth)
importance: Undecided → High
milestone: none → ww34-2015
status: New → In Progress
tags: added: hotfix
David Barth (dbarth)
Changed in canonical-devices-system-image:
status: In Progress → Triaged
status: Triaged → In Progress
Changed in webapps-core:
status: In Progress → Fix Committed
Changed in webapps-sprint:
status: In Progress → Fix Committed
Bill Filler (bfiller)
Changed in canonical-devices-system-image:
milestone: ww34-2015 → ww40-2015
importance: High → Critical
Changed in webapps-core:
importance: High → Critical
Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

To be noted that I cannot deproduce it on r94 on arale (for twitter).

This statement does not invalidate the branch above, since it makes things better given the context of the crash (use-after-free) and the bug is timing sensitive, as does the branch associated with this bug

https://bugs.launchpad.net/webapps-core/+bug/1403089

which removes the source of the issue entirely.

Revision history for this message
Alexandre Abreu (abreu-alexandre) wrote :

I added a webbrowser-app branch that is related to that bug and remove the context in which the issue can be triggered.

At this point, I cannot repro the issue anymore, but since it is timing sensitive it is not gone. The 2 branches above remove the risk of it coming back.

Revision history for this message
dinamic (dinamic6661) wrote :

seems to work now on arale r4

David Barth (dbarth)
Changed in oxide:
status: New → Fix Released
Changed in webapps-sprint:
status: Fix Committed → Fix Released
Changed in webapps-core:
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.