Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sargo/bonito: mouse cursor of Linux doesn't show on screen #186

Open
utzcoz opened this issue Jan 1, 2022 · 2 comments
Open

sargo/bonito: mouse cursor of Linux doesn't show on screen #186

utzcoz opened this issue Jan 1, 2022 · 2 comments

Comments

@utzcoz
Copy link
Member

utzcoz commented Jan 1, 2022

The view can response mouse hover, but cursor doesn't show on Linux. I tested it with Android's simulated secondary display. I also found some exception logs:

01-01 06:53:15.087  1062  1062 E mflinger: failed to lock buffer
01-01 06:53:15.088  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.088  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.088  1062  1062 E GraphicBufferMapper: validateBufferSize(0x75e0e83a90) failed: 3
01-01 06:53:15.088  1062  1062 E GraphicBuffer: unflatten: registerBuffer failed: Unknown error -3 (3)
01-01 06:53:15.088  1062  1062 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: 3
01-01 06:53:15.088  1062  1062 E Surface : dequeueBuffer failed (Unknown error -3)
01-01 06:53:15.088  1062  1062 E mflinger: failed to lock buffer
01-01 06:53:15.088  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.088  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.088  1062  1062 E GraphicBufferMapper: validateBufferSize(0x75e0e83b00) failed: 3
01-01 06:53:15.088  1062  1062 E GraphicBuffer: unflatten: registerBuffer failed: Unknown error -3 (3)
01-01 06:53:15.088  1062  1062 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: 3
01-01 06:53:15.088  1062  1062 E Surface : dequeueBuffer failed (Unknown error -3)
01-01 06:53:15.088  1062  1062 E mflinger: failed to lock buffer
01-01 06:53:15.089  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.089  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.089  1062  1062 E GraphicBufferMapper: validateBufferSize(0x75e0e83b70) failed: 3
01-01 06:53:15.089  1062  1062 E GraphicBuffer: unflatten: registerBuffer failed: Unknown error -3 (3)
01-01 06:53:15.089  1062  1062 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: 3
01-01 06:53:15.089  1062  1062 E Surface : dequeueBuffer failed (Unknown error -3)
01-01 06:53:15.089  1062  1062 E mflinger: failed to lock buffer
01-01 06:53:15.089  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.089  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.089  1062  1062 E GraphicBufferMapper: validateBufferSize(0x75e0e83be0) failed: 3
01-01 06:53:15.089  1062  1062 E GraphicBuffer: unflatten: registerBuffer failed: Unknown error -3 (3)
01-01 06:53:15.089  1062  1062 E Surface : dequeueBuffer: IGraphicBufferProducer::requestBuffer failed: 3
01-01 06:53:15.089  1062  1062 E Surface : dequeueBuffer failed (Unknown error -3)
01-01 06:53:15.090  1062  1062 E mflinger: failed to lock buffer
01-01 06:53:15.093  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.093  1062  1062 E AdrenoUtils: <compute_fmt_aligned_width_and_height:3629>: Unknown Chip ID 0
01-01 06:53:15.093  1062  1062 E GraphicBufferMapper: validateBufferSize(0x75e0e83c50) failed: 3

Looks like mflinger doesn't lock buffer correctly.

@utzcoz utzcoz self-assigned this Jan 1, 2022
@utzcoz utzcoz changed the title sargo/bonito: mouse cursor doesn't show on Linux sargo/bonito: mouse cursor of Linux doesn't show on screen Jan 1, 2022
@utzcoz
Copy link
Member Author

utzcoz commented Jan 1, 2022

After enabling debug of mflinger, and updating system, this exception disappeared, but cursor surface didn't show on screen.

@utzcoz
Copy link
Member Author

utzcoz commented Jan 1, 2022

+ BufferLayer (maru 1#0)
  Region TransparentRegion (this=7f2eae1208 count=1)
    [  0,   0,   0,   0]
  Region VisibleRegion (this=7f2eae1010 count=1)
    [  0,   0,   0,   0]
  Region SurfaceDamageRegion (this=7f2eae1088 count=1)
    [  0,   0,   0,   0]
      layerStack=   1, z=2147483633, pos=(429,0), size=(  24,  24), crop=[  0,   0,  -1,  -1], finalCrop=[  0,   0,  -1,  -1], isOpaque=0, invalidate=1, dataspace=Default, defaultPixelFormat=BGRA_8888, color=(0.000,0.000,0.000,1.000), flags=0x00000000, tr=[1.00, 0.00][0.00, 1.00]
      parent=none
      zOrderRelativeOf=none
      activeBuffer=[   0x   0:   0,Unknown/None], queued-frames=0, mRefreshPending=0, windowType=-1, appId=-1
+ BufferLayer (maru 0#0)
  Region TransparentRegion (this=7f3183e208 count=1)
    [  0,   0,   0,   0]
  Region VisibleRegion (this=7f3183e010 count=1)
    [  0,   0, 1280, 720]
  Region SurfaceDamageRegion (this=7f3183e088 count=1)
    [  0,   0,   0,   0]
      layerStack=   1, z=2147483632, pos=(0,0), size=(1280, 720), crop=[  0,   0,  -1,  -1], finalCrop=[  0,   0,  -1,  -1], isOpaque=0, invalidate=0, dataspace=Default, defaultPixelFormat=BGRA_8888, color=(0.000,0.000,0.000,1.000), flags=0x00000000, tr=[1.00, 0.00][0.00, 1.00]
      parent=none
      zOrderRelativeOf=none
      activeBuffer=[1280x 720:1280,BGRA_8888], queued-frames=0, mRefreshPending=0, windowType=-1, appId=-1

Looks like cursor layer is not visible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant