Hans Goudey
5a3b7c5329
Fix Node UI Storage Threading Issues
...
Since the same node tree can be used in modifiers on different objects,
there can be multiple threads writing to the maps in the node tree UI
storage at the same time. The additions for attribute name hints and
error messages made it so this would often cause a crash or at least
an ASAN report. This patch adds locks to prevent multiple threads
from using the maps concurrently.
In a brief test I actually didn't observe a crash without the global
`bNodeTree` UI storage mutex, but I think it's necessary for the change
to be correct, and I did notice some unfreed memory without it anyway.
Ideally it would be in a node tree runtime struct though.
Differential Revision: https://developer.blender.org/D10577
2021-03-02 11:08:36 -06:00
..
2021-03-02 11:08:36 -06:00
2020-12-16 16:26:23 +11:00
2020-10-10 22:04:51 +11:00
2020-09-30 11:51:13 +10:00
2020-08-07 09:50:34 +02:00
2020-12-16 16:26:23 +11:00
2021-03-01 18:44:26 +01:00
2020-12-11 16:20:53 +01:00
2020-10-26 11:26:55 +01:00
2021-01-04 17:38:11 +11:00
2021-02-16 11:55:12 +01:00
2021-02-10 09:38:24 +11:00
2020-12-16 16:25:56 +11:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2021-02-04 22:03:39 +01:00
2020-08-07 09:50:34 +02:00
2021-02-26 15:23:09 -06:00
2020-09-04 21:04:16 +02:00
2020-10-03 07:25:36 +10:00
2020-12-15 12:34:14 +11:00
2020-09-04 21:04:16 +02:00
2021-01-04 17:37:44 +11:00
2021-02-05 08:28:31 -06:00
2020-10-07 18:05:06 +02:00
2020-08-07 09:50:34 +02:00
2020-10-07 18:05:06 +02:00
2020-08-07 09:50:34 +02:00
2020-09-04 21:04:16 +02:00
2021-02-13 17:44:51 +11:00
2021-02-25 11:39:10 +01:00
2020-12-16 16:26:23 +11:00
2020-09-02 19:10:40 +02:00
2020-11-06 14:10:31 +01:00
2020-12-16 16:26:23 +11:00
2020-12-11 23:08:29 +01:00
2020-08-07 09:50:34 +02:00
2021-03-02 10:14:10 +01:00
2021-03-02 10:14:10 +01:00
2021-02-20 18:05:13 +02:00
2020-09-30 11:51:13 +10:00
2020-08-07 09:50:34 +02:00
2021-02-21 17:57:03 -05:00
2020-08-07 09:50:34 +02:00
2021-01-12 14:32:05 +03:00
2020-10-26 18:16:30 +11:00
2020-08-07 09:50:34 +02:00
2021-02-20 18:05:13 +02:00
2020-08-07 09:50:34 +02:00
2020-09-04 21:04:16 +02:00
2020-08-07 09:50:34 +02:00
2020-10-01 14:29:45 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-12-16 16:25:56 +11:00
2021-02-02 23:03:16 +03:00
2020-08-07 09:50:34 +02:00
2020-11-23 12:48:04 +01:00
2020-10-19 21:40:17 +02:00
2020-08-07 09:50:34 +02:00
2020-12-15 12:34:14 +11:00
2021-02-18 12:32:40 +01:00
2021-02-12 17:44:27 +01:00
2021-02-23 15:15:29 +01:00
2021-02-05 16:23:34 +11:00
2021-02-19 17:41:28 +01:00
2021-02-09 16:00:36 +01:00
2021-02-05 16:23:34 +11:00
2021-02-20 10:16:59 +01:00
2020-10-09 07:25:43 +02:00
2020-12-15 17:19:55 +01:00
2020-12-15 12:34:14 +11:00
2021-02-25 11:39:10 +01:00
2020-08-07 09:50:34 +02:00
2020-12-18 09:18:44 +01:00
2020-12-16 16:25:56 +11:00
2020-09-04 21:04:16 +02:00
2020-10-08 16:25:34 +02:00
2021-02-05 16:23:34 +11:00
2020-12-16 16:25:56 +11:00
2020-12-15 12:01:45 +01:00
2021-02-05 16:23:34 +11:00
2021-01-25 14:48:51 +01:00
2021-02-25 17:48:54 +01:00
2020-12-16 16:25:56 +11:00
2020-08-07 09:50:34 +02:00
2020-10-07 18:05:06 +02:00
2020-10-07 18:05:06 +02:00
2020-10-07 18:05:06 +02:00
2020-09-04 21:04:16 +02:00
2021-02-02 17:26:59 +01:00
2021-02-05 22:34:03 +11:00
2020-10-07 18:05:06 +02:00
2020-08-07 09:50:34 +02:00
2020-10-09 07:25:43 +02:00
2021-02-21 17:57:03 -05:00
2020-12-15 20:32:58 +01:00
2020-08-07 09:50:34 +02:00
2020-09-04 21:04:16 +02:00
2021-01-05 22:48:12 +11:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-12-14 13:08:02 +01:00
2020-08-07 09:50:34 +02:00
2020-10-09 07:27:18 +02:00
2020-08-07 09:50:34 +02:00
2021-01-09 19:07:14 +11:00
2021-02-17 14:50:08 +11:00
2020-10-07 18:05:06 +02:00
2020-12-11 11:48:58 +01:00
2020-12-08 10:55:57 +01:00
2021-03-02 11:08:36 -06:00
2021-02-26 16:55:58 +11:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2021-02-20 18:05:13 +02:00
2020-10-20 12:47:58 -05:00
2020-08-07 09:50:34 +02:00
2020-09-30 11:51:13 +10:00
2021-03-02 16:53:56 +01:00
2020-12-16 16:26:23 +11:00
2020-12-16 16:25:56 +11:00
2020-12-11 17:47:58 +01:00
2020-12-16 16:26:23 +11:00
2020-12-02 15:38:47 +01:00
2020-12-15 17:03:48 +01:00
2020-08-07 09:50:34 +02:00
2020-08-28 14:55:59 +02:00
2021-01-29 15:52:53 +01:00
2021-02-26 16:55:58 +11:00
2020-12-15 12:34:14 +11:00
2021-02-05 16:23:34 +11:00
2020-08-07 09:50:34 +02:00
2020-12-15 12:34:14 +11:00
2021-02-05 16:23:34 +11:00
2020-08-07 09:50:34 +02:00
2020-12-16 16:25:56 +11:00
2020-12-15 12:34:14 +11:00
2021-02-05 19:08:14 -08:00
2020-08-07 09:50:34 +02:00
2020-09-04 21:04:16 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2020-10-01 17:43:41 +02:00
2020-08-07 09:50:34 +02:00
2020-12-15 12:34:14 +11:00
2020-10-07 18:05:06 +02:00
2020-10-07 18:05:06 +02:00
2021-01-18 16:38:40 +01:00
2021-02-04 22:03:39 +01:00
2020-09-09 08:41:15 -05:00
2020-10-20 11:00:16 +02:00
2021-02-05 16:20:14 +01:00
2021-02-02 13:17:51 +01:00
2020-10-02 11:47:34 +02:00
2020-10-07 11:09:36 +02:00
2020-08-07 09:50:34 +02:00
2020-08-07 09:50:34 +02:00
2021-02-21 17:57:03 -05:00
2021-02-17 00:21:07 -05:00
2020-12-15 12:34:14 +11:00
2021-02-05 16:23:34 +11:00