Skip to content

Conversation

@bbrto21
Copy link

@bbrto21 bbrto21 commented May 6, 2021

This PR includes :

  • Fix a crash in ExternalTextureGL db57b57
  • Include the texture id in the log 16b80f2
  • Lock the mutex in the external texture related API 0747722

Signed-off-by: Boram Bae boram21.bae@samsung.com

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier
* This patch includes temporary fix for invalid tmb_surface

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
@bbrto21
Copy link
Author

bbrto21 commented May 6, 2021

Fix flutter-tizen/plugins#86

@bbrto21
Copy link
Author

bbrto21 commented May 6, 2021

@swift-kim if you don't mind, I want to include #80

@bbrto21 bbrto21 force-pushed the fix_external_texture_gl branch from f3c4c7f to db57b57 Compare May 6, 2021 03:26
@bbrto21 bbrto21 marked this pull request as draft May 6, 2021 03:33
@bbrto21 bbrto21 force-pushed the fix_external_texture_gl branch 2 times, most recently from 529bbe1 to e1c4fc8 Compare May 6, 2021 05:27
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
#ifndef WEARABLE_PROFILE
tbm_surface_internal_unref(tbm_surface);
#else
tbm_surface_destroy(tbm_surface);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why destroy tbm surface here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It reflects the current implementation that does not use ref/unref.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current implementaion does not work tho.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@swift-kim You are right.
@swift-kim @xuelian-bai
if the cost of using map/unmap is high, I think using ref/unref is fine until find an alternative.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can use the method to get the function pointer from libtbm.so.1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xuelian-bai

I didn't get it. You use media_packet instead of tbm surface, but how to generate texture by using media_packet?

Basically, we have to do same work which is performed by video or camera plug-in.. Code at #80 is just to show how change of interface will be... but the explanation seems to be insufficient.
I'll make a PR , so let's discuss whether it applies or not.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xuelian-bai
My suggestion is in number #82.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bwikbs, @xuelian-bai
This PR fixes a crash and allows to use external textures in profiles other than wearable.
So, how about that we go to #82 for the discussion on how to create an external texture?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you merge this PR, if there is no issue other than things related to #82

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good idea. Shall we go to #82 for discussion regarding this?

@bbrto21 bbrto21 force-pushed the fix_external_texture_gl branch from e1c4fc8 to 16b80f2 Compare May 6, 2021 06:10
* Use find instead of operator[] that can cause unintended insertion

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
@bbrto21 bbrto21 marked this pull request as ready for review May 6, 2021 06:41
@bbrto21 bbrto21 requested a review from bwikbs May 6, 2021 06:45
@xuelian-bai xuelian-bai merged commit ad1fd5b into flutter-tizen:flutter-2.0.1-tizen May 7, 2021
@xiaowei-guan xiaowei-guan mentioned this pull request May 18, 2021
swift-kim pushed a commit that referenced this pull request Jun 7, 2021
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier
* This patch includes temporary fix for invalid tmb_surface

Signed-off-by: Boram Bae <boram21.bae@samsung.com>

* Include the texture id in the log

Signed-off-by: Boram Bae <boram21.bae@samsung.com>

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
swift-kim pushed a commit that referenced this pull request Sep 27, 2021
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier
* This patch includes temporary fix for invalid tmb_surface

Signed-off-by: Boram Bae <boram21.bae@samsung.com>

* Include the texture id in the log

Signed-off-by: Boram Bae <boram21.bae@samsung.com>

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
swift-kim pushed a commit that referenced this pull request Nov 14, 2021
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier
* This patch includes temporary fix for invalid tmb_surface

Signed-off-by: Boram Bae <boram21.bae@samsung.com>

* Include the texture id in the log

Signed-off-by: Boram Bae <boram21.bae@samsung.com>

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
swift-kim pushed a commit that referenced this pull request Dec 9, 2021
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier
* This patch includes temporary fix for invalid tmb_surface

Signed-off-by: Boram Bae <boram21.bae@samsung.com>

* Include the texture id in the log

Signed-off-by: Boram Bae <boram21.bae@samsung.com>

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
swift-kim pushed a commit that referenced this pull request Dec 17, 2021
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier

* Include the texture id in the log

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion
swift-kim pushed a commit that referenced this pull request Feb 7, 2022
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier

* Include the texture id in the log

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion
swift-kim pushed a commit that referenced this pull request Feb 11, 2022
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier

* Include the texture id in the log

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion
swift-kim pushed a commit that referenced this pull request May 12, 2022
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier

* Include the texture id in the log

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion
swift-kim pushed a commit that referenced this pull request Aug 5, 2022
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier

* Include the texture id in the log

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion
swift-kim pushed a commit that referenced this pull request Sep 1, 2022
* Fix a crash in ExternalTextureGL

* Abandon ownership of tbm surface in PopulateTextureWithIdentifier

* Include the texture id in the log

* Lock the mutex in the external texture related API

* Use find instead of operator[] that can cause unintended insertion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants