Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • P Plasma Workspace
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 90
    • Merge requests 90
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Plasma
  • Plasma Workspace
  • Merge requests
  • !1358

Open
Created Jan 13, 2022 by Fushan Wen@fusionfutureDeveloper
  • Report abuse
Report abuse

dataengines/mpris2: Do not create a new container if there is a pending container with the same name

  • Overview 4
  • Commits 2
  • Pipelines 8
  • Changes 2

dataengines/mpris2: Do not create a new container if there is a pending container with the same name

It's possible that a container createdin Mpris2Engine::serviceNameFetchFinished has not emitted PlayerContainer::initialFetchFinished yet, but Mpris2Engine::serviceOwnerChanged has already created a container with the same name.

A possible order that will create two containers with the same name:

  1. serviceNameFetchFinished calls addMediaPlayer
  2. addMediaPlayer creates a new PlayerContainer
  3. Mpris2Engine::initialFetchFinished is not emitted.
  4. serviceOwnerChanged watcher starts.
  5. QDBusServiceWatcher::serviceOwnerChanged -> Mpris2Engine::serviceOwnerChanged
  6. Mpris2Engine::serviceOwnerChanged calls addMediaPlayer
  7. addMediaPlayer creates a new PlayerContainer with the same sourceName in STEP 2.
  8. Crash

BUG: 446531

Edited Mar 16, 2022 by Fushan Wen
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: work/fusionfuture/BUG446531-pending-containers