-
Notifications
You must be signed in to change notification settings - Fork 17
Fix a crash in ExternalTextureGL #81
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
Fix a crash in ExternalTextureGL #81
Conversation
* 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>
|
@swift-kim if you don't mind, I want to include #80 |
f3c4c7f to
db57b57
Compare
529bbe1 to
e1c4fc8
Compare
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
| #ifndef WEARABLE_PROFILE | ||
| tbm_surface_internal_unref(tbm_surface); | ||
| #else | ||
| tbm_surface_destroy(tbm_surface); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
e1c4fc8 to
16b80f2
Compare
* Use find instead of operator[] that can cause unintended insertion Signed-off-by: Boram Bae <boram21.bae@samsung.com>
* 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>
* 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>
* 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>
* 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>
* 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
* 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
* 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
* 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
* 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
* 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
This PR includes :
Signed-off-by: Boram Bae boram21.bae@samsung.com