Maniphest T60752

Linked duplicated mesh does not update in edit mode after making its data single user
Closed, ResolvedBUG

Assigned To
Bastien Montagne (mont29)
Authored By
Vitaliy (Northsteel)
Jan 22 2019, 4:27 PM
Tags
  • BF Blender
  • Modeling
Subscribers
Bastien Montagne (mont29)
Jacques Lucke (JacquesLucke)
Richard Antalik (ISS)
Vitaliy (Northsteel)

Description

System Information
Operating system: Windows 10
Graphics card: NVidia Titan

Blender Version
Broken: 2.80, 7f40d553f903, blender2.7, 2019-01-22

Short description of error
Mesh only updates by going out of edit mode and entering edit mode again if linked duplicated mesh is made single user.

Exact steps for others to reproduce the error
Based on the default startup or an attached .blend file (as simple as possible).

  1. Select start-up cube and linked duplicate it and move it so that they do not overlap.
  2. Hit F3 and search for Make Single User, apply it to selected objects and check Object data.
  3. Select both of the cubes and linked duplicate them and move them so that they do not overlap.
  4. Select the last cube and make him single user too with Object data checked.
  5. Hit Tab to go to the Edit mode and try to select any vertices. Hit Tab again to go out of the Edit mode and then hit Tab again to enter the Edit mode one more time. Now the vertices will be selected.

One workaround is to linked duplicate troubled mesh and delete the copy, after that the last mesh will update as normal.

Related Objects

Mentioned Here
rBf9e1e088a4c7: Tool System: add shear tool to non-mesh edit-modes
rB7f40d553f903: Cleanp: use single global for draw manager

Event Timeline

Vitaliy (Northsteel) created this task.Jan 22 2019, 4:27 PM
Vitaliy (Northsteel) updated the task description.Jan 22 2019, 5:28 PM
Jacques Lucke (JacquesLucke) lowered the priority of this task from 90 to 50.Jan 22 2019, 5:29 PM
Jacques Lucke (JacquesLucke) added a subscriber: Jacques Lucke (JacquesLucke).

I can reproduce the issue.

Vitaliy (Northsteel) added a project: BF Blender: 2.8.Jan 24 2019, 6:38 AM
Dalai Felinto (dfelinto) added a project: Tracker Curfew.Dec 23 2019, 4:35 PM
Richard Antalik (ISS) changed the task status from Confirmed to Needs Information from User.Jan 23 2020, 1:45 PM
Richard Antalik (ISS) edited projects, added EEVEE & Viewport; removed Tracker Curfew, BF Blender: 2.8.
Richard Antalik (ISS) added a subscriber: Richard Antalik (ISS).

I have re-triaged this report and can not reproduce it.
Can you please check if this is still an issue in latest build?
https://builder.blender.org/download/

Vitaliy (Northsteel) added a comment.EditedJan 29 2020, 3:56 AM
In T60752#856716, @Richard Antalik (ISS) wrote:

I have re-triaged this report and can not reproduce it.
Can you please check if this is still an issue in latest build?
https://builder.blender.org/download/

Now it just crashes. I will try to better explain the steps needed to reproduce the issue.

  1. After you open blender, select default cube hit Alt+D and move it aside (just so we can see it and select it easily).
  2. Now select new (linked duplicated) cube, hit F3, search for Make Single User, hit Enter and choose Selected Objects. In the options of Make Single User command check Object Data.
  3. Now select both cubes and Alt+D them and move them aside.
  4. Now select the last linked duplicated cube and make him Single User as well (with the same setting as previously)
  5. Hit Tab to go to Edit Mode and try to select any vertices. You will notice that vertex selection does not updates.
  6. Hit Tab again to go out of Edit Mode and Blender will crash. (If it will not crash, try hitting Tab multiple times)

Blender build January 29, 01:17:51 - f9e1e088a4c7 Windows 64 bit

Richard Antalik (ISS) changed the task status from Needs Information from User to Confirmed.Jan 29 2020, 2:34 PM
Richard Antalik (ISS) added a project: Modeling.
Richard Antalik (ISS) changed the subtype of this task from "Report" to "Bug".

After changing edit mode / object mode about 15 times I got a crash

Backtrace is not always the same, so this will probably be race condition.

Could not read memory of loopstart

>	blender.exe!mesh_calc_ngon_normal(const MPoly * mpoly, const MLoop * loopstart, const MVert * mvert, float * normal) Line 2165	C
 	blender.exe!BKE_mesh_calc_poly_normal(const MPoly * mpoly, const MLoop * loopstart, const MVert * mvarray, float * r_no) Line 2190	C
 	blender.exe!mesh_calc_normals_poly_cb(void * userdata, const int pidx, const TaskParallelTLS * UNUSED_tls) Line 229	C
 	blender.exe!parallel_range_single_thread(TaskParallelRangePool * range_pool) Line 1259	C
 	blender.exe!BLI_task_parallel_range(const int start, const int stop, void * userdata, void(*)(void *, const int, const TaskParallelTLS *) func, TaskParallelSettings * settings) Line 1331	C
 	blender.exe!BKE_mesh_calc_normals_poly(MVert * mverts, float[3] * r_vertnors, int numVerts, const MLoop * mloop, const MPoly * mpolys, int numLoops, int numPolys, float[3] * r_polynors, const bool only_face_normals) Line 340	C
 	blender.exe!mesh_render_data_create(Mesh * me, const bool is_editmode, const float[4] * obmat, const bool do_final, const bool do_uvedit, const eMRIterType iter_type, const eMRDataType data_flag, const DRW_MeshCDMask * UNUSED_cd_used, const ToolSettings * ts) Line 226	C
 	blender.exe!mesh_buffer_cache_create_requested(MeshBatchCache * cache, MeshBufferCache mbc, Mesh * me, const bool is_editmode, const float[4] * obmat, const bool do_final, const bool do_uvedit, const bool use_subsurf_fdots, const DRW_MeshCDMask * cd_layer_used, const ToolSettings * ts, const bool use_hide) Line 4452	C
 	blender.exe!DRW_mesh_batch_cache_create_requested(Object * ob, Mesh * me, const Scene * scene, const bool is_paint_mode, const bool use_hide) Line 1377	C
 	blender.exe!drw_batch_cache_generate_requested(Object * ob) Line 3413	C
 	blender.exe!drw_engines_cache_populate(Object * ob) Line 1157	C
 	blender.exe!DRW_draw_render_loop_ex(Depsgraph * depsgraph, RenderEngineType * engine_type, ARegion * ar, View3D * v3d, GPUViewport * viewport, const bContext * evil_C) Line 1569	C
 	blender.exe!DRW_draw_view(const bContext * C) Line 1486	C
 	blender.exe!view3d_draw_view(const bContext * C, ARegion * ar) Line 1533	C
 	blender.exe!view3d_main_region_draw(const bContext * C, ARegion * ar) Line 1558	C
 	blender.exe!ED_region_do_draw(bContext * C, ARegion * ar) Line 539	C
 	blender.exe!wm_draw_window_offscreen(bContext * C, wmWindow * win, bool stereo) Line 635	C
 	blender.exe!wm_draw_window(bContext * C, wmWindow * win) Line 773	C
 	blender.exe!wm_draw_update(bContext * C) Line 953	C
 	blender.exe!WM_main(bContext * C) Line 425	C
 	blender.exe!main(int argc, const unsigned char * * UNUSED_argv_c) Line 520	C
Vitaliy (Northsteel) added a comment.Jan 29 2020, 6:22 PM

For me it mostly crashes after just one edit mode/ object mode cycle. Are you sure that you applied Make Single User (Object Data checked) twice? Once for the first, second time for the 4th.
Does vertex selection updates for you after step 5? Can you select and unselect vertices and viewport updates fine?

Richard Antalik (ISS) added a comment.Jan 29 2020, 7:49 PM
In T60752#862105, @Vitaliy (Northsteel) wrote:

For me it mostly crashes after just one edit mode/ object mode cycle.

Done this twice, first time I had to switch more times, second time I think it crashed after 1 or 2 switches

Are you sure that you applied Make Single User (Object Data checked) twice? Once for the first, second time for the 4th.
It stayed selected during second duplication.

Does vertex selection updates for you after step 5?

I couldn't select any vertices.

Can you select and unselect vertices and viewport updates fine?

Haven't tried

Campbell Barton (campbellbarton) moved this task from Backlog to Bugs on the Modeling board.Jun 17 2020, 5:17 AM
Clément Foucault (fclem) moved this task from Backlog to Bugs on the EEVEE & Viewport board.Jun 22 2020, 3:20 PM
Campbell Barton (campbellbarton) removed a project: EEVEE & Viewport.Jun 23 2020, 6:18 AM
Campbell Barton (campbellbarton) moved this task from Bugs to Bugs (Mesh) on the Modeling board.Sep 21 2020, 10:58 AM
Bastien Montagne (mont29) changed the task status from Confirmed to Needs Information from User.Oct 16 2020, 10:19 AM
Bastien Montagne (mont29) added a subscriber: Bastien Montagne (mont29).

Cannot reproduce any bug, crash or anything here, is this still an issue?

Vitaliy (Northsteel) added a comment.Oct 17 2020, 2:56 AM
In T60752#1035434, @Bastien Montagne (mont29) wrote:

Cannot reproduce any bug, crash or anything here, is this still an issue?

Can't reproduce this in 2.83.1 and 2.90.1.

Bastien Montagne (mont29) closed this task as Resolved.Oct 19 2020, 9:58 AM
Bastien Montagne (mont29) claimed this task.

Thanks, then I think we can consider this as resolved for now.