Title: SDL_DestroyTexture called with invalid textures · Issue #129 · libtcod/python-tcod · GitHub
Open Graph Title: SDL_DestroyTexture called with invalid textures · Issue #129 · libtcod/python-tcod
X Title: SDL_DestroyTexture called with invalid textures · Issue #129 · libtcod/python-tcod
Description: Enabling SDL logging allowed me to track down this error. python-tcod/tcod/sdl/render.py Line 316 in 49ebc65 texture_p = ffi.gc(lib.SDL_CreateTexture(self.p, format, access, width, height), lib.SDL_DestroyTexture) This line creates a tex...
Open Graph Description: Enabling SDL logging allowed me to track down this error. python-tcod/tcod/sdl/render.py Line 316 in 49ebc65 texture_p = ffi.gc(lib.SDL_CreateTexture(self.p, format, access, width, height), lib.SDL...
X Description: Enabling SDL logging allowed me to track down this error. python-tcod/tcod/sdl/render.py Line 316 in 49ebc65 texture_p = ffi.gc(lib.SDL_CreateTexture(self.p, format, access, width, height), lib.SDL...
Opengraph URL: https://github.com/libtcod/python-tcod/issues/129
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SDL_DestroyTexture called with invalid textures","articleBody":"Enabling SDL logging allowed me to track down this error.\r\n\r\nhttps://github.com/libtcod/python-tcod/blob/49ebc65ddf0fb0292f667dca9d43b7d5fe1ca7bd/tcod/sdl/render.py#L316\r\n\r\nThis line creates a texture and takes ownership, but SDL will sometimes destroy the texture owned by this object, causing SDL_DestroyTexture to fail later and sometimes crash the program.\r\n\r\nThis issue can crash the samples if you restart the renderer during that program.\r\n\r\nI'm noting this now so that I don't forget to fix this. I'll probably have the renderer track its textures with weak references and release ownership of its them when the renderer itself is deleted.","author":{"url":"https://github.com/HexDecimal","@type":"Person","name":"HexDecimal"},"datePublished":"2023-06-03T14:38:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/129/python-tcod/issues/129"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ebea3003-7e6e-814b-13bc-00a29120814e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D636:21FEDA:39CC88:50A0DF:696A74B5 |
| html-safe-nonce | e46a03081cd58bff25b45dffd52856eba7fa9bf499e120b9ce50c3239d36af45 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjM2OjIxRkVEQTozOUNDODg6NTBBMERGOjY5NkE3NEI1IiwidmlzaXRvcl9pZCI6IjM4OTA0OTkwMzQ4MTk0OTA5OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 927e8632578c000ce0e538b48f307f08bb4aea6eeea939663a84a818774babb3 |
| hovercard-subject-tag | issue:1739590965 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/libtcod/python-tcod/129/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e7b760dbc69fade9afec67957eb50c6f80f6018c2d914c775cf01a8a74ae6638/libtcod/python-tcod/issues/129 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e7b760dbc69fade9afec67957eb50c6f80f6018c2d914c775cf01a8a74ae6638/libtcod/python-tcod/issues/129 |
| og:image:alt | Enabling SDL logging allowed me to track down this error. python-tcod/tcod/sdl/render.py Line 316 in 49ebc65 texture_p = ffi.gc(lib.SDL_CreateTexture(self.p, format, access, width, height), lib.SDL... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | HexDecimal |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfa223d62d272274e0b68350b4bd7741f3ca7498b8c4b8b1bc1e6deabbdbc09d |
| turbo-cache-control | no-preview |
| go-import | github.com/libtcod/python-tcod git https://github.com/libtcod/python-tcod.git |
| octolytics-dimension-user_id | 40313210 |
| octolytics-dimension-user_login | libtcod |
| octolytics-dimension-repository_id | 32192238 |
| octolytics-dimension-repository_nwo | libtcod/python-tcod |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 32192238 |
| octolytics-dimension-repository_network_root_nwo | libtcod/python-tcod |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6a0b6893c221f98f607598e939299fdf5763435d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width