Bug while moving vertices with mirror & subdivision modifier #73952

Open
opened 2020-02-17 23:08:43 +01:00 by Jojo W. · 16 comments

System Information
Operating system: Windows 10 64-bit
Graphics card: ATI Radeon HD 5670

Blender Version
Broken: 2.82
Worked: at least 2.8

Short description of error
When I try to move a vertice it seems like the mirror modifier gets applied in an odd way. The result even changes when moving the camera or hide one of the images I use for reference. In fact it becomes distorted when hiding the images.
The following link is a recording of my screen:
https://drive.google.com/file/d/1nMcav4BC-5rgHh4AyBaelUOIKxwbE-p5/view?usp=sharing
I encountered this bug only recently. The file itself is older and I do not remember which version I used (since I use it via Steam I did not pay attention to the automatic patches).

Exact steps for others to reproduce the error

  1. Open this file Bugged Project.blend
  2. Disable visibility of Subdivision modifier for Edit Mode (which should already cause the bug)
  3. Move a vertice

system-info.txt

**System Information** Operating system: Windows 10 64-bit Graphics card: ATI Radeon HD 5670 **Blender Version** Broken: 2.82 Worked: at least 2.8 **Short description of error** When I try to move a vertice it seems like the mirror modifier gets applied in an odd way. The result even changes when moving the camera or hide one of the images I use for reference. In fact it becomes distorted when hiding the images. The following link is a recording of my screen: https://drive.google.com/file/d/1nMcav4BC-5rgHh4AyBaelUOIKxwbE-p5/view?usp=sharing I encountered this bug only recently. The file itself is older and I do not remember which version I used (since I use it via Steam I did not pay attention to the automatic patches). **Exact steps for others to reproduce the error** 1. Open this file [Bugged Project.blend](https://archive.blender.org/developer/F8345937/Bugged_Project.blend) 2. Disable visibility of Subdivision modifier for Edit Mode (which should already cause the bug) 3. Move a vertice [system-info.txt](https://archive.blender.org/developer/F8345973/system-info.txt)
Author

Added subscriber: @publicStupidity

Added subscriber: @publicStupidity

Added subscriber: @ideasman42

Added subscriber: @ideasman42

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I can't redo this error in 2.82 release or master ca72ff599a.

  • Do 2.80, 2.81 work?
  • Can you double check if this happens after loading factory settings?
I can't redo this error in 2.82 release or master `ca72ff599a`. - Do 2.80, 2.81 work? - Can you double check if this happens after loading factory settings?
Author

I opened the file in 2.80 without any sightings of this bug.
Loading factory settings in my current Steam version wouldn't change anything yesterday or today and I even installed it anew but the bug still exists. It looks like everything is normal on startup but as soon as I change visibility of the mirror and subdivision modifiers it goes back to what you can see in the video.

I opened the file in 2.80 without any sightings of this bug. Loading factory settings in my current Steam version wouldn't change anything yesterday or today and I even installed it anew but the bug still exists. It looks like everything is normal on startup but as soon as I change visibility of the mirror and subdivision modifiers it goes back to what you can see in the video.

@publicStupidity please upload the file at the point where transforming fails.
It's possible something you're doing causes the issue to fail, which I'm not doing.

Also, check if this error exists in 2.81.

@publicStupidity please upload the file at the point where transforming fails. It's possible something you're doing causes the issue to fail, which I'm not doing. Also, check if this error exists in 2.81.
Author

It's not really a transforming failure I realized. I just need to change some options for the modifiers and it does weird things to the selected vertices without me moving them, if I move them though it starts to get as messy as in that video.

File.blend

These screenshots are all made in 2.81 with the current state of the file. 2.8 loads it without these weird lines to the center of the object.
No Bug visible 2.81.png
Bug visible 2.81.png
Bug visible but slightly different 2.81.png
When loading it in my Steam version it starts out with the same weird lines but as I change the visibility options for the subdivision modifier they vanish. Here it seems to bug out at random though after going through different settings (multiple times for both mirror and subdivision).
Bug in 2.82.png

I'm not sure though if the new file will make a difference for you since "Bugged Project" already looked like this for me on startup (screenshot also taken in 2.81). This file also looks normal on startup in 2.8 (meaning the line going to the right side with a vertice I never placed there is gone).
Bugged Project on Startup in 2.81.png
I should note this is what I see with the images disabled, once I make them visible the vertices get placed to a certain spot in relation to the image axis or something like that (as seen as in the screenshot of "Bugged Project"). You could see in the video what happens when I move the vertices along the Y axis: the whole object turns transparent and the regular gray object appears rotated in correlation to one of the images.
To me it seems like the mirror modifier is broken. At least with On Cage enabled for this modifier it looks broken.

It's not really a transforming failure I realized. I just need to change some options for the modifiers and it does weird things to the selected vertices without me moving them, if I move them though it starts to get as messy as in that video. [File.blend](https://archive.blender.org/developer/F8350338/File.blend) These screenshots are all made in 2.81 with the current state of the file. 2.8 loads it without these weird lines to the center of the object. ![No Bug visible 2.81.png](https://archive.blender.org/developer/F8350304/No_Bug_visible_2.81.png) ![Bug visible 2.81.png](https://archive.blender.org/developer/F8350307/Bug_visible_2.81.png) ![Bug visible but slightly different 2.81.png](https://archive.blender.org/developer/F8350309/Bug_visible_but_slightly_different_2.81.png) When loading it in my Steam version it starts out with the same weird lines but as I change the visibility options for the subdivision modifier they vanish. Here it seems to bug out at random though after going through different settings (multiple times for both mirror and subdivision). ![Bug in 2.82.png](https://archive.blender.org/developer/F8350335/Bug_in_2.82.png) I'm not sure though if the new file will make a difference for you since "Bugged Project" already looked like this for me on startup (screenshot also taken in 2.81). This file also looks normal on startup in 2.8 (meaning the line going to the right side with a vertice I never placed there is gone). ![Bugged Project on Startup in 2.81.png](https://archive.blender.org/developer/F8350367/Bugged_Project_on_Startup_in_2.81.png) I should note this is what I see with the images disabled, once I make them visible the vertices get placed to a certain spot in relation to the image axis or something like that (as seen as in the screenshot of "Bugged Project"). You could see in the video what happens when I move the vertices along the Y axis: the whole object turns transparent and the regular gray object appears rotated in correlation to one of the images. To me it seems like the mirror modifier is broken. At least with On Cage enabled for this modifier it looks broken.

Note that this report is still missing exact steps to redo the bug, which would be good to list so others can be sure they're checking the same issues.

However this may be spesific to your hardware, since we would be getting a lot of reports if it was common issue.
Both 2.82 release & master work here.

  • Upgrade your graphics card drivers (if they're outdated).
  • Try this file on another computer, to see if you can redo it elsewhere.
  • Try this outside of stem (official blender.org download)
  • Try 2.83 daily build.
  • Try to re-create this situation with a simple file (cube or suzzane), to see if there is something in this file which causes the problem.
Note that this report is still missing exact steps to redo the bug, which would be good to list so others can be sure they're checking the same issues. However this may be spesific to your hardware, since we would be getting a lot of reports if it was common issue. Both 2.82 release & master work here. - Upgrade your graphics card drivers (if they're outdated). - Try this file on another computer, to see if you can redo it elsewhere. - Try this outside of stem (official blender.org download) - Try 2.83 daily build. - Try to re-create this situation with a simple file (cube or suzzane), to see if there is something in this file which causes the problem.
Author
  • Upgrade your graphics card drivers (if they're outdated).
    The graphics card driver is up to date as the graphics card I stated in the first post is rather old. It would be unfortunate if that is the cause of this bug but at least I do not encounter this in 2.80...
  • Try this file on another computer, to see if you can redo it elsewhere.
    It in fact worked fine on another computer with the current Steam version of 2.82.
  • Try this outside of Steam (official blender.org download)
    That's what I already did as it's not possible to chose a version through Steam as far as I know (and I had checked the 2.82 version there as well)
  • Try 2.83 daily build.
    It's a similar result there as well for my computer.
  • Try to re-create this situation with a simple file (cube or suzzane), to see if there is something in this file which causes the problem.
    I tried it with a cube: This only happens with an image loaded into the scene, doesn't matter if it was inserted through Empty -> Image or Image -> Reference / Image -> Background. For some reason there is a cube around the image with the initial cube right inside of it. This cube vanishes once switched to edit mode though and won't affect normal editing of the vertices in any way. However as soon as I cut the cube in half and add mirror on it every vertice of the cube is attached to a vertice of the cube that got created by inserting the image. It's not visible when adding the mirror but as soon as I move any vertice of the actual cube the attached vertice of this "image cube" that shouldn't be there will move as well but not always into the same direction as apparently the axis of that object is rotated.

If this is in fact mainly a hardware issue then I'm sorry if this was just a waste of time but it's kinda odd to me that this suddenly happens after 2.8.

- Upgrade your graphics card drivers (if they're outdated). The graphics card driver is up to date as the graphics card I stated in the first post is rather old. It would be unfortunate if that is the cause of this bug but at least I do not encounter this in 2.80... - Try this file on another computer, to see if you can redo it elsewhere. It in fact worked fine on another computer with the current Steam version of 2.82. - Try this outside of Steam (official blender.org download) That's what I already did as it's not possible to chose a version through Steam as far as I know (and I had checked the 2.82 version there as well) - Try 2.83 daily build. It's a similar result there as well for my computer. - Try to re-create this situation with a simple file (cube or suzzane), to see if there is something in this file which causes the problem. I tried it with a cube: This only happens with an image loaded into the scene, doesn't matter if it was inserted through Empty -> Image or Image -> Reference / Image -> Background. For some reason there is a cube around the image with the initial cube right inside of it. This cube vanishes once switched to edit mode though and won't affect normal editing of the vertices in any way. However as soon as I cut the cube in half and add mirror on it every vertice of the cube is attached to a vertice of the cube that got created by inserting the image. It's not visible when adding the mirror but as soon as I move any vertice of the actual cube the attached vertice of this "image cube" that shouldn't be there will move as well but not always into the same direction as apparently the axis of that object is rotated. If this is in fact mainly a hardware issue then I'm sorry if this was just a waste of time but it's kinda odd to me that this suddenly happens after 2.8.

Thanks for the feedback, the transform code doesn't use the GPU, so it's strange that an image causes the vertex to be transformed differently.

Ultimately, unless a developer can redo this issue, we may have to close this task.

It would be good if someone on Windows with an ATI Radeon HD 5670 (or similar GPU modal) could test.

Thanks for the feedback, the transform code doesn't use the GPU, so it's strange that an image causes the vertex to be transformed differently. Ultimately, unless a developer can redo this issue, we may have to close this task. It would be good if someone on Windows with an ATI Radeon HD 5670 (or similar GPU modal) could test.
Member

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Changed status from 'Needs User Info' to: 'Needs Developer To Reproduce'

Added subscribers: @fclem, @Jeroen-Bakker, @mont29

Added subscribers: @fclem, @Jeroen-Bakker, @mont29

Here with current master, debug build + ASAN, just opening that file crashes immediately with following backtrace:

=================================================================
==778785==ERROR: AddressSanitizer: heap-use-after-free on address 0x61300005b588 at pc 0x00002790b514 bp 0x7ffe2f4a6b20 sp 0x7ffe2f4a6b18
READ of size 8 at 0x61300005b588 thread T0
    - 0 0x2790b513 in GPU_texture_bind_ex /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:411
    - 1 0x11e7687a in draw_update_uniforms /home/bastien/blender/src/source/blender/draw/intern/draw_manager_exec.c:626
    - 2 0x11e7de26 in draw_shgroup /home/bastien/blender/src/source/blender/draw/intern/draw_manager_exec.c:923
    - 3 0x11e801e8 in drw_draw_pass_ex /home/bastien/blender/src/source/blender/draw/intern/draw_manager_exec.c:1092
    - 4 0x11e80794 in DRW_draw_pass /home/bastien/blender/src/source/blender/draw/intern/draw_manager_exec.c:1132
    - 5 0x1209c021 in OVERLAY_image_draw /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_image.c:468
    - 6 0x12027db8 in OVERLAY_draw_scene /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_engine.c:546
    - 7 0x1161da45 in drw_engines_draw_scene /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1117
    - 8 0x11622230 in DRW_draw_render_loop_ex /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1610
    - 9 0x11621016 in DRW_draw_view /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1486
    - 10 0x156e9ee2 in view3d_draw_view /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1593
    - 11 0x156ea063 in view3d_main_region_draw /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1615
    - 12 0x135ff032 in ED_region_do_draw /home/bastien/blender/src/source/blender/editors/screen/area.c:548
    - 13 0x10c1f384 in wm_draw_window_offscreen /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:731
    - 14 0x10c2059c in wm_draw_window /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:872
    - 15 0x10c219f7 in wm_draw_update /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:1075
    - 16 0x10c0a537 in WM_main /home/bastien/blender/src/source/blender/windowmanager/intern/wm.c:487
    - 17 0xf93ce30 in main /home/bastien/blender/src/source/creator/creator.c:519
    - 18 0x7fae47f54cc9 in __libc_start_main ../csu/libc-start.c:308
    - 19 0xf93c029 in _start (/home/bastien/blender/build_master_debug/bin/blender+0xf93c029)

0x61300005b588 is located 8 bytes inside of 352-byte region [0x61300005b580,0x61300005b6e0)
freed by thread T0 here:
    - 0 0x7fae4e5a6b6f in __interceptor_free (/lib/x86_64-linux-gnu/libasan.so.6+0xa9b6f)
    - 1 0x283ee91e in MEM_lockfree_freeN /home/bastien/blender/src/intern/guardedalloc/intern/mallocn_lockfree_impl.c:129
    - 2 0x27889c20 in blender::gpu::GLTexture::operator delete(void*) /home/bastien/blender/src/source/blender/gpu/opengl/gl_texture.hh:99
    - 3 0x279869f1 in blender::gpu::GLTexture::~GLTexture() /home/bastien/blender/src/source/blender/gpu/opengl/gl_texture.cc:63
    - 4 0x2790de6c in GPU_texture_free /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:518
    - 5 0xfd6e6d9 in image_free_gpu /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:439
    - 6 0xfd6d884 in image_get_gpu_texture /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:305
    - 7 0xfd6e3be in BKE_image_get_gpu_texture /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:379
    - 8 0x1209ac04 in OVERLAY_image_empty_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_image.c:384
    - 9 0x1206dde5 in OVERLAY_empty_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_extra.c:351
    - 10 0x12026db7 in OVERLAY_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_engine.c:445
    - 11 0x1161d441 in drw_engines_cache_populate /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1079
    - 12 0x11621f2f in DRW_draw_render_loop_ex /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1579
    - 13 0x11621016 in DRW_draw_view /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1486
    - 14 0x156e9ee2 in view3d_draw_view /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1593
    - 15 0x156ea063 in view3d_main_region_draw /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1615
    - 16 0x135ff032 in ED_region_do_draw /home/bastien/blender/src/source/blender/editors/screen/area.c:548
    - 17 0x10c1f384 in wm_draw_window_offscreen /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:731
    - 18 0x10c2059c in wm_draw_window /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:872
    - 19 0x10c219f7 in wm_draw_update /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:1075
    - 20 0x10c0a537 in WM_main /home/bastien/blender/src/source/blender/windowmanager/intern/wm.c:487
    - 21 0xf93ce30 in main /home/bastien/blender/src/source/creator/creator.c:519
    #22 0x7fae47f54cc9 in __libc_start_main ../csu/libc-start.c:308

previously allocated by thread T0 here:
    - 0 0x7fae4e5a6e8f in malloc (/lib/x86_64-linux-gnu/libasan.so.6+0xa9e8f)
    - 1 0x283ef31f in MEM_lockfree_mallocN /home/bastien/blender/src/intern/guardedalloc/intern/mallocn_lockfree_impl.c:276
    - 2 0x27889bd4 in blender::gpu::GLTexture::operator new(unsigned long) /home/bastien/blender/src/source/blender/gpu/opengl/gl_texture.hh:99
    - 3 0x2788ad58 in blender::gpu::GLBackend::texture_alloc(char const*) /home/bastien/blender/src/source/blender/gpu/opengl/gl_backend.hh:111
    - 4 0x27908b4e in gpu_texture_create /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:205
    - 5 0x2790a460 in GPU_texture_create_error /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:340
    - 6 0xfd6d1f9 in image_gpu_texture_error_create /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:272
    - 7 0xfd6dcc5 in image_get_gpu_texture /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:334
    - 8 0xfd6e3be in BKE_image_get_gpu_texture /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:379
    - 9 0x1209ac04 in OVERLAY_image_empty_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_image.c:384
    - 10 0x1206dde5 in OVERLAY_empty_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_extra.c:351
    - 11 0x12026db7 in OVERLAY_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_engine.c:445
    - 12 0x1161d441 in drw_engines_cache_populate /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1079
    - 13 0x11621f2f in DRW_draw_render_loop_ex /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1579
    - 14 0x11621016 in DRW_draw_view /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1486
    - 15 0x156e9ee2 in view3d_draw_view /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1593
    - 16 0x156ea063 in view3d_main_region_draw /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1615
    - 17 0x135ff032 in ED_region_do_draw /home/bastien/blender/src/source/blender/editors/screen/area.c:548
    - 18 0x10c1f384 in wm_draw_window_offscreen /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:731
    - 19 0x10c2059c in wm_draw_window /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:872
    - 20 0x10c219f7 in wm_draw_update /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:1075
    - 21 0x10c0a537 in WM_main /home/bastien/blender/src/source/blender/windowmanager/intern/wm.c:487
    - 22 0xf93ce30 in main /home/bastien/blender/src/source/creator/creator.c:519
    - 23 0x7fae47f54cc9 in __libc_start_main ../csu/libc-start.c:308

SUMMARY: AddressSanitizer: heap-use-after-free /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:411 in GPU_texture_bind_ex
Shadow bytes around the buggy address:
  0x0c2680003660: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa
  0x0c2680003670: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c2680003680: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c2680003690: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800036a0: fd fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa
=>0x0c26800036b0: fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800036c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c26800036d0: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa
  0x0c26800036e0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd
  0x0c26800036f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
  0x0c2680003700: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd
Shadow byte legend (one shadow byte represents 8 application bytes):
  Addressable:           00
  Partially addressable: 01 02 03 04 05 06 07 
  Heap left redzone:       fa
  Freed heap region:       fd
  Stack left redzone:      f1
  Stack mid redzone:       f2
  Stack right redzone:     f3
  Stack after return:      f5
  Stack use after scope:   f8
  Global redzone:          f9
  Global init order:       f6
  Poisoned by user:        f7
  Container overflow:      fc
  Array cookie:            ac
  Intra object redzone:    bb
  ASan internal:           fe
  Left alloca redzone:     ca
  Right alloca redzone:    cb
  Shadow gap:              cc
==778785==ABORTING

@fclem, @Jeroen-Bakker rings any bell?

Here with current master, debug build + ASAN, just opening that file crashes immediately with following backtrace: ```lines=20 ================================================================= ==778785==ERROR: AddressSanitizer: heap-use-after-free on address 0x61300005b588 at pc 0x00002790b514 bp 0x7ffe2f4a6b20 sp 0x7ffe2f4a6b18 READ of size 8 at 0x61300005b588 thread T0 - 0 0x2790b513 in GPU_texture_bind_ex /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:411 - 1 0x11e7687a in draw_update_uniforms /home/bastien/blender/src/source/blender/draw/intern/draw_manager_exec.c:626 - 2 0x11e7de26 in draw_shgroup /home/bastien/blender/src/source/blender/draw/intern/draw_manager_exec.c:923 - 3 0x11e801e8 in drw_draw_pass_ex /home/bastien/blender/src/source/blender/draw/intern/draw_manager_exec.c:1092 - 4 0x11e80794 in DRW_draw_pass /home/bastien/blender/src/source/blender/draw/intern/draw_manager_exec.c:1132 - 5 0x1209c021 in OVERLAY_image_draw /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_image.c:468 - 6 0x12027db8 in OVERLAY_draw_scene /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_engine.c:546 - 7 0x1161da45 in drw_engines_draw_scene /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1117 - 8 0x11622230 in DRW_draw_render_loop_ex /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1610 - 9 0x11621016 in DRW_draw_view /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1486 - 10 0x156e9ee2 in view3d_draw_view /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1593 - 11 0x156ea063 in view3d_main_region_draw /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1615 - 12 0x135ff032 in ED_region_do_draw /home/bastien/blender/src/source/blender/editors/screen/area.c:548 - 13 0x10c1f384 in wm_draw_window_offscreen /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:731 - 14 0x10c2059c in wm_draw_window /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:872 - 15 0x10c219f7 in wm_draw_update /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:1075 - 16 0x10c0a537 in WM_main /home/bastien/blender/src/source/blender/windowmanager/intern/wm.c:487 - 17 0xf93ce30 in main /home/bastien/blender/src/source/creator/creator.c:519 - 18 0x7fae47f54cc9 in __libc_start_main ../csu/libc-start.c:308 - 19 0xf93c029 in _start (/home/bastien/blender/build_master_debug/bin/blender+0xf93c029) 0x61300005b588 is located 8 bytes inside of 352-byte region [0x61300005b580,0x61300005b6e0) freed by thread T0 here: - 0 0x7fae4e5a6b6f in __interceptor_free (/lib/x86_64-linux-gnu/libasan.so.6+0xa9b6f) - 1 0x283ee91e in MEM_lockfree_freeN /home/bastien/blender/src/intern/guardedalloc/intern/mallocn_lockfree_impl.c:129 - 2 0x27889c20 in blender::gpu::GLTexture::operator delete(void*) /home/bastien/blender/src/source/blender/gpu/opengl/gl_texture.hh:99 - 3 0x279869f1 in blender::gpu::GLTexture::~GLTexture() /home/bastien/blender/src/source/blender/gpu/opengl/gl_texture.cc:63 - 4 0x2790de6c in GPU_texture_free /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:518 - 5 0xfd6e6d9 in image_free_gpu /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:439 - 6 0xfd6d884 in image_get_gpu_texture /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:305 - 7 0xfd6e3be in BKE_image_get_gpu_texture /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:379 - 8 0x1209ac04 in OVERLAY_image_empty_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_image.c:384 - 9 0x1206dde5 in OVERLAY_empty_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_extra.c:351 - 10 0x12026db7 in OVERLAY_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_engine.c:445 - 11 0x1161d441 in drw_engines_cache_populate /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1079 - 12 0x11621f2f in DRW_draw_render_loop_ex /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1579 - 13 0x11621016 in DRW_draw_view /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1486 - 14 0x156e9ee2 in view3d_draw_view /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1593 - 15 0x156ea063 in view3d_main_region_draw /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1615 - 16 0x135ff032 in ED_region_do_draw /home/bastien/blender/src/source/blender/editors/screen/area.c:548 - 17 0x10c1f384 in wm_draw_window_offscreen /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:731 - 18 0x10c2059c in wm_draw_window /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:872 - 19 0x10c219f7 in wm_draw_update /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:1075 - 20 0x10c0a537 in WM_main /home/bastien/blender/src/source/blender/windowmanager/intern/wm.c:487 - 21 0xf93ce30 in main /home/bastien/blender/src/source/creator/creator.c:519 #22 0x7fae47f54cc9 in __libc_start_main ../csu/libc-start.c:308 previously allocated by thread T0 here: - 0 0x7fae4e5a6e8f in malloc (/lib/x86_64-linux-gnu/libasan.so.6+0xa9e8f) - 1 0x283ef31f in MEM_lockfree_mallocN /home/bastien/blender/src/intern/guardedalloc/intern/mallocn_lockfree_impl.c:276 - 2 0x27889bd4 in blender::gpu::GLTexture::operator new(unsigned long) /home/bastien/blender/src/source/blender/gpu/opengl/gl_texture.hh:99 - 3 0x2788ad58 in blender::gpu::GLBackend::texture_alloc(char const*) /home/bastien/blender/src/source/blender/gpu/opengl/gl_backend.hh:111 - 4 0x27908b4e in gpu_texture_create /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:205 - 5 0x2790a460 in GPU_texture_create_error /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:340 - 6 0xfd6d1f9 in image_gpu_texture_error_create /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:272 - 7 0xfd6dcc5 in image_get_gpu_texture /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:334 - 8 0xfd6e3be in BKE_image_get_gpu_texture /home/bastien/blender/src/source/blender/blenkernel/intern/image_gpu.c:379 - 9 0x1209ac04 in OVERLAY_image_empty_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_image.c:384 - 10 0x1206dde5 in OVERLAY_empty_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_extra.c:351 - 11 0x12026db7 in OVERLAY_cache_populate /home/bastien/blender/src/source/blender/draw/engines/overlay/overlay_engine.c:445 - 12 0x1161d441 in drw_engines_cache_populate /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1079 - 13 0x11621f2f in DRW_draw_render_loop_ex /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1579 - 14 0x11621016 in DRW_draw_view /home/bastien/blender/src/source/blender/draw/intern/draw_manager.c:1486 - 15 0x156e9ee2 in view3d_draw_view /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1593 - 16 0x156ea063 in view3d_main_region_draw /home/bastien/blender/src/source/blender/editors/space_view3d/view3d_draw.c:1615 - 17 0x135ff032 in ED_region_do_draw /home/bastien/blender/src/source/blender/editors/screen/area.c:548 - 18 0x10c1f384 in wm_draw_window_offscreen /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:731 - 19 0x10c2059c in wm_draw_window /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:872 - 20 0x10c219f7 in wm_draw_update /home/bastien/blender/src/source/blender/windowmanager/intern/wm_draw.c:1075 - 21 0x10c0a537 in WM_main /home/bastien/blender/src/source/blender/windowmanager/intern/wm.c:487 - 22 0xf93ce30 in main /home/bastien/blender/src/source/creator/creator.c:519 - 23 0x7fae47f54cc9 in __libc_start_main ../csu/libc-start.c:308 SUMMARY: AddressSanitizer: heap-use-after-free /home/bastien/blender/src/source/blender/gpu/intern/gpu_texture.cc:411 in GPU_texture_bind_ex Shadow bytes around the buggy address: 0x0c2680003660: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x0c2680003670: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c2680003680: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2680003690: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c26800036a0: fd fd fd fd fd fa fa fa fa fa fa fa fa fa fa fa =>0x0c26800036b0: fd[fd]fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c26800036c0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c26800036d0: fd fd fd fd fd fd fd fd fd fd fd fd fa fa fa fa 0x0c26800036e0: fa fa fa fa fa fa fa fa fd fd fd fd fd fd fd fd 0x0c26800036f0: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd 0x0c2680003700: fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd fd Shadow byte legend (one shadow byte represents 8 application bytes): Addressable: 00 Partially addressable: 01 02 03 04 05 06 07 Heap left redzone: fa Freed heap region: fd Stack left redzone: f1 Stack mid redzone: f2 Stack right redzone: f3 Stack after return: f5 Stack use after scope: f8 Global redzone: f9 Global init order: f6 Poisoned by user: f7 Container overflow: fc Array cookie: ac Intra object redzone: bb ASan internal: fe Left alloca redzone: ca Right alloca redzone: cb Shadow gap: cc ==778785==ABORTING ``` @fclem, @Jeroen-Bakker rings any bell?

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'

Changed status from 'Needs Developer To Reproduce' to: 'Confirmed'
Philipp Oeser removed the
Interest
EEVEE & Viewport
label 2023-02-09 15:15:09 +01:00
Member

Here with current master, debug build + ASAN, just opening that file crashes immediately with following backtrace:

It is still doing that in current master, however resaving that file from a release build in current master results in not asserting anymore...

> Here with current master, debug build + ASAN, just opening that file crashes immediately with following backtrace: It is still doing that in current master, however resaving that file from a release build in current master results in not asserting anymore...
Member

Stack trace is quite easy to understand what is happening.
Assigning to myself and increase the priority.

Stack trace is quite easy to understand what is happening. Assigning to myself and increase the priority.
Jeroen Bakker self-assigned this 2024-03-08 08:33:52 +01:00
Jeroen Bakker added this to the EEVEE & Viewport project 2024-03-08 08:33:56 +01:00
Jeroen Bakker added this to the 4.1 milestone 2024-03-08 08:34:08 +01:00
Jeroen Bakker added
Priority
High
and removed
Priority
Normal
labels 2024-03-08 08:34:44 +01:00
Jeroen Bakker modified the milestone from 4.1 to 4.2 LTS 2024-03-13 16:34:20 +01:00
Jeroen Bakker added
Priority
Normal
and removed
Priority
High
labels 2024-04-11 12:09:18 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#73952
No description provided.