Use base::Unretained instead of weak ptr in AfterSandboxEntry(). [chromium/src : master]

141 views
Skip to first unread message

Joone Hur (Gerrit)

unread,
Feb 5, 2018, 7:15:18 PM2/5/18
to ozone-...@chromium.org, Robert Kroeger, chromium...@chromium.org, Kalyan Kondapally

I'm trying to run mus_demo with this CL(https://chromium-review.googlesource.com/c/chromium/src/+/898409), but there is a crash. This CL could fix the problem.
Please take a look at the CL.

View Change

    To view, visit change 902938. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: master
    Gerrit-MessageType: comment
    Gerrit-Change-Id: Icb77ffef5f16905dbb6789ccce972de1cea64875
    Gerrit-Change-Number: 902938
    Gerrit-PatchSet: 2
    Gerrit-Owner: Joone Hur <joon...@intel.com>
    Gerrit-Reviewer: Joone Hur <joon...@intel.com>
    Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
    Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
    Gerrit-Comment-Date: Tue, 06 Feb 2018 00:15:17 +0000
    Gerrit-HasComments: No
    Gerrit-HasLabels: No

    Robert Kroeger (Gerrit)

    unread,
    Feb 6, 2018, 3:18:36 PM2/6/18
    to Joone Hur, ozone-...@chromium.org, chromium...@chromium.org, Kalyan Kondapally

    I don't think that this is necessary. Both InitializeGPU and AfterSandboxEntry should be invoked on the same thread. Under which circumstances are they invoked on different threads?

    View Change

      To view, visit change 902938. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: master
      Gerrit-MessageType: comment
      Gerrit-Change-Id: Icb77ffef5f16905dbb6789ccce972de1cea64875
      Gerrit-Change-Number: 902938
      Gerrit-PatchSet: 2
      Gerrit-Owner: Joone Hur <joon...@intel.com>
      Gerrit-Reviewer: Joone Hur <joon...@intel.com>
      Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
      Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
      Gerrit-Comment-Date: Tue, 06 Feb 2018 20:18:32 +0000
      Gerrit-HasComments: No
      Gerrit-HasLabels: No

      Joone Hur (Gerrit)

      unread,
      Feb 6, 2018, 3:40:48 PM2/6/18
      to Robert Kroeger, ozone-...@chromium.org, Kalyan Kondapally, chromium...@chromium.org

      Joone Hur uploaded patch set #3 to this change.

      View Change

      Use base::Unretained instead of weak ptr in AfterSandboxEntry().

      This CL fixes the following problem:
      FATAL:weak_ptr.cc(26)] Check failed: sequence_checker_.CalledOnValidSequence().
      WeakPtrs must be checked on the same sequenced thread.

      BUG=733450
      TEST=mash --service=mus_demo --mus-hosting-viz --mus

      Change-Id: Icb77ffef5f16905dbb6789ccce972de1cea64875
      ---
      M ui/ozone/platform/drm/ozone_platform_gbm.cc
      1 file changed, 1 insertion(+), 1 deletion(-)

      To view, visit change 902938. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: master
      Gerrit-MessageType: newpatchset
      Gerrit-Change-Id: Icb77ffef5f16905dbb6789ccce972de1cea64875
      Gerrit-Change-Number: 902938
      Gerrit-PatchSet: 3

      Joone Hur (Gerrit)

      unread,
      Feb 6, 2018, 7:35:22 PM2/6/18
      to ozone-...@chromium.org, Robert Kroeger, chromium...@chromium.org, Kalyan Kondapally

      Patch Set 2:

      I don't think that this is necessary. Both InitializeGPU and AfterSandboxEntry should be invoked on the same thread. Under which circumstances are they invoked on different threads?

      This CL is part of https://chromium-review.googlesource.com/c/chromium/src/+/898409.

      First, build mus_demo and mash:all with "--args=use_ozone=true ozone_platform_gbm=true
      use_intel_minigbm=true internal_window_mode=true"
      $ export EGL_PLATFORM=surfaceless
      $ out/Release/mash --service=mus_demo --mus-hosting-viz --mus

      Without this CL, mus_demo crashes.

      View Change

        To view, visit change 902938. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: master
        Gerrit-MessageType: comment
        Gerrit-Change-Id: Icb77ffef5f16905dbb6789ccce972de1cea64875
        Gerrit-Change-Number: 902938
        Gerrit-PatchSet: 3
        Gerrit-Owner: Joone Hur <joon...@intel.com>
        Gerrit-Reviewer: Joone Hur <joon...@intel.com>
        Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
        Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
        Gerrit-Comment-Date: Wed, 07 Feb 2018 00:35:19 +0000
        Gerrit-HasComments: No
        Gerrit-HasLabels: No

        Robert Kroeger (Gerrit)

        unread,
        Feb 7, 2018, 3:54:35 PM2/7/18
        to Joone Hur, ozone-...@chromium.org, chromium...@chromium.org, Kalyan Kondapally

        Patch Set 3:

        Patch Set 2:

        I don't think that this is necessary. Both InitializeGPU and AfterSandboxEntry should be invoked on the same thread. Under which circumstances are they invoked on different threads?

        This CL is part of https://chromium-review.googlesource.com/c/chromium/src/+/898409.

        First, build mus_demo and mash:all with "--args=use_ozone=true ozone_platform_gbm=true
        use_intel_minigbm=true internal_window_mode=true"
        $ export EGL_PLATFORM=surfaceless
        $ out/Release/mash --service=mus_demo --mus-hosting-viz --mus

        Without this CL, mus_demo crashes.

        Sure. But that's a bug in how mus_demo is threaded right?

        View Change

          To view, visit change 902938. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: master
          Gerrit-MessageType: comment
          Gerrit-Change-Id: Icb77ffef5f16905dbb6789ccce972de1cea64875
          Gerrit-Change-Number: 902938
          Gerrit-PatchSet: 3
          Gerrit-Owner: Joone Hur <joon...@intel.com>
          Gerrit-Reviewer: Joone Hur <joon...@intel.com>
          Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
          Gerrit-CC: Kalyan Kondapally <kalyan.k...@intel.com>
          Gerrit-Comment-Date: Wed, 07 Feb 2018 20:54:33 +0000
          Gerrit-HasComments: No
          Gerrit-HasLabels: No
          Reply all
          Reply to author
          Forward
          0 new messages