bl_i18n_utils - dump_addon_messages is missing addon's operator data and has redundant strings #116579

Open
opened 2023-12-27 13:01:09 +01:00 by Andrej · 4 comments
Contributor

Blender 4.0.2, perhaps ping @mont29

Not sure what's the better place for this issue - blender-addons or blender but since it's mostly caused by the way bl_extract_messages.py behaves, I've started it in blender.

Way to reproduce:

  1. Create a new folder in blender addons subclasses_error and save init.py to that folder.

  2. Open Blender and enable "Subclasses Error" addon in the preferences.

  3. Use "Refresh I18n Data" in scene settings, choose "Subclasses Error" addon. (you'll need "Manage UI Translations" addon enabled and working).
    image

  4. Resulting translation.py added to subclasses_error directory is attached bellow. There are few issues:

  • it's missing operator's name and description (Subclasses error test name and Subclasses error test description)
  • it has couple redundant strings like Collection Definition, RNA collection property to define lists, arrays and mappings, etc
  1. Couldn't reproduce it with simple example but for a big addon it has another problem - dump_rna_messages fails since I guess unregistered classes bl_rna is corrupted in a way and now contains corrupted symbols instead of bl_rna.identifier and it fails on this line trying to concatenate corrupted string.
    06eda2a484/scripts/modules/bl_i18n_utils/bl_extract_messages.py (L411)

I've noticed something that perhaps is related - when some addon and it's classes unregistered it's operator classes are not removed from bpy.types.OperatorProperties.__subclasses__(). E.g. disabling and enabling the addon again will result in this:

[i for i in bpy.types.OperatorProperties.__subclasses__() if 'subclasses' in str(i).lower()]
# [<class 'bpy.types.SUBCLASSES_ERROR_OT_test'>]

# *disable and enable addon*

[i for i in bpy.types.OperatorProperties.__subclasses__() if 'subclasses' in str(i).lower()]
# [<class 'bpy.types.SUBCLASSES_ERROR_OT_test'>, <class 'bpy.types.SUBCLASSES_ERROR_OT_test'>]

I thought it's related since dump_rna_messages is relying on subclasses to find elements to parse. And the way dump_addon_messages work it saves messages A with addon enabled, then it disabled the addon, saves messages B and the difference between A and B is considered to be this addon's specific strings.
06eda2a484/scripts/modules/bl_i18n_utils/bl_extract_messages.py (L428)

__init__.py

import bpy
from bpy.types import Panel, Operator
from bpy.utils import register_class, unregister_class


bl_info = {
    'name': 'Subclasses Error',
    'category': 'All',
    'version': (1, 0, 0),
    'blender': (2, 91, 0),
}

class subclasses_test_error(Operator):
    bl_idname = 'subclasses_error.test'
    bl_label = 'Subclasses error test name'
    bl_description = "Subclasses error test description"

    def execute(self, context):
        return {'FINISHED'}


def register():
    register_class(subclasses_test_error)

def unregister():
    unregister_class(subclasses_test_error)

translations.py

# SPDX-License-Identifier: GPL-2.0-or-later


# ##### BEGIN AUTOGENERATED I18N SECTION #####


# NOTE: You can safely move around this auto-generated block (with the begin/end markers!),
#       and edit the translations by hand.
#       Just carefully respect the format of the tuple!

# Tuple of tuples:
# ((msgctxt, msgid), (sources, gen_comments), (lang, translation, (is_fuzzy, comments)), ...)
translations_tuple = (
    (("*", ""),
     ((), ()),
     ("de_DE", "Project-Id-Version: Subclasses Error 1.0.0 (0)\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2023-12-27 16:39:40.786127\nPO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\nLast-Translator: FULL NAME <EMAIL@ADDRESS>\nLanguage-Team: LANGUAGE <LL@li.org>\nLanguage: __POT__\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit",
               (False,
                ("Blender's translation file (po format).",
                 "Copyright (C) 2023 The Blender Authors.",
                 "This file is distributed under the same license as the Blender package.",
                 "FIRST AUTHOR <EMAIL@ADDRESS>, YEAR."))),
     ("ru_RU", "Project-Id-Version: Subclasses Error 1.0.0 (0)\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2023-12-27 16:39:40.786127\nPO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\nLast-Translator: FULL NAME <EMAIL@ADDRESS>\nLanguage-Team: LANGUAGE <LL@li.org>\nLanguage: __POT__\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit",
               (False,
                ("Blender's translation file (po format).",
                 "Copyright (C) 2023 The Blender Authors.",
                 "This file is distributed under the same license as the Blender package.",
                 "FIRST AUTHOR <EMAIL@ADDRESS>, YEAR."))),
    ),
    (("*", "Collection Definition"),
     (("bpy.types.CollectionProperty",),
      ()),
     ("de_DE", "",
               (False, ())),
     ("ru_RU", "",
               (False, ())),
    ),
    (("*", "RNA collection property to define lists, arrays and mappings"),
     (("bpy.types.CollectionProperty",),
      ()),
     ("de_DE", "",
               (False, ())),
     ("ru_RU", "",
               (False, ())),
    ),
    (("*", "Pointer Type"),
     (("bpy.types.CollectionProperty.fixed_type",),
      ()),
     ("de_DE", "",
               (False, ())),
     ("ru_RU", "",
               (False, ())),
    ),
    (("*", "Fixed pointer type, empty if variable type"),
     (("bpy.types.CollectionProperty.fixed_type",),
      ()),
     ("de_DE", "",
               (False, ())),
     ("ru_RU", "",
               (False, ())),
    ),
    (("*", "Subclasses Error"),
     (("Add-on Subclasses Error info: name",),
      ()),
     ("de_DE", "",
               (False, ())),
     ("ru_RU", "",
               (False, ())),
    ),
)

translations_dict = {}
for msg in translations_tuple:
    key = msg[0]
    for lang, trans, (is_fuzzy, comments) in msg[2:]:
        if trans and not is_fuzzy:
            translations_dict.setdefault(lang, {})[key] = trans



# ##### END AUTOGENERATED I18N SECTION #####

Blender 4.0.2, perhaps ping @mont29 Not sure what's the better place for this issue - blender-addons or blender but since it's mostly caused by the way [bl_extract_messages.py](https://projects.blender.org/blender/blender/src/branch/main/scripts/modules/bl_i18n_utils/bl_extract_messages.py) behaves, I've started it in blender. Way to reproduce: 1) Create a new folder in blender addons `subclasses_error` and save [__init__.py](/attachments/a513c4d8-2290-4baa-a363-f051c4838944) to that folder. 2) Open Blender and enable "Subclasses Error" addon in the preferences. 3) Use "Refresh I18n Data" in scene settings, choose "Subclasses Error" addon. (you'll need "Manage UI Translations" addon enabled and working). ![image](/attachments/04e8817d-291f-46ea-865a-df56c6d45217) 4) Resulting `translation.py` added to `subclasses_error` directory is attached bellow. There are few issues: - it's missing operator's name and description (`Subclasses error test name` and `Subclasses error test description`) - it has couple redundant strings like `Collection Definition`, `RNA collection property to define lists, arrays and mappings`, etc 5) Couldn't reproduce it with simple example but for a big addon it has another problem - `dump_rna_messages` fails since I guess unregistered classes `bl_rna` is corrupted in a way and now contains corrupted symbols instead of `bl_rna.identifier` and it fails on this line trying to concatenate corrupted string. https://projects.blender.org/blender/blender/src/commit/06eda2a484b8ab4ac6685e652dd153a16a3735e3/scripts/modules/bl_i18n_utils/bl_extract_messages.py#L411 I've noticed something that perhaps is related - when some addon and it's classes unregistered it's operator classes are not removed from `bpy.types.OperatorProperties.__subclasses__()`. E.g. disabling and enabling the addon again will result in this: ```python [i for i in bpy.types.OperatorProperties.__subclasses__() if 'subclasses' in str(i).lower()] # [<class 'bpy.types.SUBCLASSES_ERROR_OT_test'>] # *disable and enable addon* [i for i in bpy.types.OperatorProperties.__subclasses__() if 'subclasses' in str(i).lower()] # [<class 'bpy.types.SUBCLASSES_ERROR_OT_test'>, <class 'bpy.types.SUBCLASSES_ERROR_OT_test'>] ``` I thought it's related since `dump_rna_messages` is relying on subclasses to find elements to parse. And the way `dump_addon_messages` work it saves messages A with addon enabled, then it disabled the addon, saves messages B and the difference between A and B is considered to be this addon's specific strings. https://projects.blender.org/blender/blender/src/commit/06eda2a484b8ab4ac6685e652dd153a16a3735e3/scripts/modules/bl_i18n_utils/bl_extract_messages.py#L428 `__init__.py` ```python import bpy from bpy.types import Panel, Operator from bpy.utils import register_class, unregister_class bl_info = { 'name': 'Subclasses Error', 'category': 'All', 'version': (1, 0, 0), 'blender': (2, 91, 0), } class subclasses_test_error(Operator): bl_idname = 'subclasses_error.test' bl_label = 'Subclasses error test name' bl_description = "Subclasses error test description" def execute(self, context): return {'FINISHED'} def register(): register_class(subclasses_test_error) def unregister(): unregister_class(subclasses_test_error) ``` `translations.py` ```python # SPDX-License-Identifier: GPL-2.0-or-later # ##### BEGIN AUTOGENERATED I18N SECTION ##### # NOTE: You can safely move around this auto-generated block (with the begin/end markers!), # and edit the translations by hand. # Just carefully respect the format of the tuple! # Tuple of tuples: # ((msgctxt, msgid), (sources, gen_comments), (lang, translation, (is_fuzzy, comments)), ...) translations_tuple = ( (("*", ""), ((), ()), ("de_DE", "Project-Id-Version: Subclasses Error 1.0.0 (0)\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2023-12-27 16:39:40.786127\nPO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\nLast-Translator: FULL NAME <EMAIL@ADDRESS>\nLanguage-Team: LANGUAGE <LL@li.org>\nLanguage: __POT__\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit", (False, ("Blender's translation file (po format).", "Copyright (C) 2023 The Blender Authors.", "This file is distributed under the same license as the Blender package.", "FIRST AUTHOR <EMAIL@ADDRESS>, YEAR."))), ("ru_RU", "Project-Id-Version: Subclasses Error 1.0.0 (0)\nReport-Msgid-Bugs-To: \nPOT-Creation-Date: 2023-12-27 16:39:40.786127\nPO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\nLast-Translator: FULL NAME <EMAIL@ADDRESS>\nLanguage-Team: LANGUAGE <LL@li.org>\nLanguage: __POT__\nMIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit", (False, ("Blender's translation file (po format).", "Copyright (C) 2023 The Blender Authors.", "This file is distributed under the same license as the Blender package.", "FIRST AUTHOR <EMAIL@ADDRESS>, YEAR."))), ), (("*", "Collection Definition"), (("bpy.types.CollectionProperty",), ()), ("de_DE", "", (False, ())), ("ru_RU", "", (False, ())), ), (("*", "RNA collection property to define lists, arrays and mappings"), (("bpy.types.CollectionProperty",), ()), ("de_DE", "", (False, ())), ("ru_RU", "", (False, ())), ), (("*", "Pointer Type"), (("bpy.types.CollectionProperty.fixed_type",), ()), ("de_DE", "", (False, ())), ("ru_RU", "", (False, ())), ), (("*", "Fixed pointer type, empty if variable type"), (("bpy.types.CollectionProperty.fixed_type",), ()), ("de_DE", "", (False, ())), ("ru_RU", "", (False, ())), ), (("*", "Subclasses Error"), (("Add-on Subclasses Error info: name",), ()), ("de_DE", "", (False, ())), ("ru_RU", "", (False, ())), ), ) translations_dict = {} for msg in translations_tuple: key = msg[0] for lang, trans, (is_fuzzy, comments) in msg[2:]: if trans and not is_fuzzy: translations_dict.setdefault(lang, {})[key] = trans # ##### END AUTOGENERATED I18N SECTION ##### ```
Andrej added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2023-12-27 13:01:10 +01:00
Member

Hi, thanks for the report. Do we require translation repo as well? I've been asked to init i18n settings but following 3 operations are not showing up afterwards due to if not i18n_sett.is_init:
(Translation root looks wrong to me in preferences)
image
image

Hi, thanks for the report. Do we require `translation` repo as well? I've been asked to init i18n settings but following 3 operations are not showing up afterwards due to `if not i18n_sett.is_init:` (Translation root looks wrong to me in preferences) [image](/attachments/607b567a-4a1c-4860-917b-3225ec557196) [image](/attachments/0b377ddb-3e67-48b9-bf57-3ec795155679)
Pratik Borhade added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-12-28 07:35:09 +01:00
Author
Contributor

@PratikPB2123
Well, it probably does require translation repo but for my case I was just translating an addon and only needed access to those operators that can retrieve some addon’s strings, so I just used some dummy directories like C:/Blender/source for SOURCE_DIR (note that, need to make sure it has directories locale/po inside) and C:/Blender/i18 for I18N_DIR.

@PratikPB2123 Well, it probably does require `translation` repo but for my case I was just translating an addon and only needed access to those operators that can retrieve some addon’s strings, so I just used some dummy directories like `C:/Blender/source` for `SOURCE_DIR` (note that, need to make sure it has directories `locale/po` inside) and `C:/Blender/i18` for `I18N_DIR`.
Pratik Borhade added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2024-01-01 11:00:52 +01:00
Damien Picard added the
Interest
Translations
label 2024-01-03 23:41:31 +01:00
Member

I can confirm.

**System Information**
Operating system: Linux-6.5.0-14-generic-x86_64-with-glibc2.38 64 Bits, X11 UI

**Blender Version**
Broken: version: 4.1.0 Alpha, branch: main, commit date: 2024-01-03 17:35, hash: `364beee15987`

A few things to note:

  • I cannot use your dummy directories trick, otherwise I get an error:
Error: Python: Traceback (most recent call last):
  File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/addons/ui_translate/update_addon.py", line 113, in execute
    return op('INVOKE_DEFAULT', module_name=self.module_name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/modules/bpy/ops.py", line 107, in __call__
    ret = _op_call(self.idname_py(), kw, C_exec, C_undo)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
  File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/addons/ui_translate/update_addon.py", line 141, in execute
    pot = bl_extract_messages.dump_addon_messages(module_name, True, self.settings)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/modules/bl_i18n_utils/bl_extract_messages.py", line 1131, in dump_addon_messages
    dump_rna_messages(msgs, reports, settings)
  File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/modules/bl_i18n_utils/bl_extract_messages.py", line 442, in dump_rna_messages
    os.listdir(os.path.join(settings.PRESETS_DIR, "keyconfig"))):
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/blender/source/scripts/presets/keyconfig'
Location: /home/damien/blender-git/build_linux_release/bin/4.1/scripts/modules/bpy/ops.py:107
  • The paths to use if the Blender sources and translation repos are present are shown in the screenshot here. It’s for Linux but should be similar in other OSes.
  • I often get random Blender crashes during extraction, but I couldn’t pinpoint exactly why. Your simple add-on seems to be extracted half the time, but I can’t get other add-ons to work at all.
  • The op name and description are extracted on my end: "Subclasses error test name", "Subclasses error test description".
  • I get a lot more stuff from bpy.types.*Property than you, but this is also the case when extracting other translations and has been for a while:
    (("*", "Boolean Definition"),
     (("bpy.types.BoolProperty",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "RNA boolean property definition"),
     (("bpy.types.BoolProperty",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Array Dimensions"),
     (("bpy.types.BoolProperty.array_dimensions",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Length of each dimension of the array"),
     (("bpy.types.BoolProperty.array_dimensions",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Maximum length of the array, 0 means unlimited"),
     (("bpy.types.BoolProperty.array_length",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Default value for this number"),
     (("bpy.types.BoolProperty.default",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Default Array"),
     (("bpy.types.BoolProperty.default_array",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Default value for this array"),
     (("bpy.types.BoolProperty.default_array",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Is Array"),
     (("bpy.types.BoolProperty.is_array",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Collection Definition"),
     (("bpy.types.CollectionProperty",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "RNA collection property to define lists, arrays and mappings"),
     (("bpy.types.CollectionProperty",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Pointer Type"),
     (("bpy.types.CollectionProperty.fixed_type",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Fixed pointer type, empty if variable type"),
     (("bpy.types.CollectionProperty.fixed_type",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "String Definition"),
     (("bpy.types.StringProperty",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "RNA text string property definition"),
     (("bpy.types.StringProperty",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "String default value"),
     (("bpy.types.StringProperty.default",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Maximum Length"),
     (("bpy.types.StringProperty.length_max",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
    (("*", "Maximum length of the string, 0 means unlimited"),
     (("bpy.types.StringProperty.length_max",),
      ()),
     ("fr_FR", "",
               (False, ())),
    ),
  • I could reproduce your point 5. (corrupted bl_rna) for a few versions now. I tried to investigate a bit but didn’t do much progress. The __subclasses__ thing could be a good hint.
I can confirm. ``` **System Information** Operating system: Linux-6.5.0-14-generic-x86_64-with-glibc2.38 64 Bits, X11 UI **Blender Version** Broken: version: 4.1.0 Alpha, branch: main, commit date: 2024-01-03 17:35, hash: `364beee15987` ``` A few things to note: - I cannot use your dummy directories trick, otherwise I get an error: <details><pre> Error: Python: Traceback (most recent call last): File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/addons/ui_translate/update_addon.py", line 113, in execute return op('INVOKE_DEFAULT', module_name=self.module_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/modules/bpy/ops.py", line 107, in __call__ ret = _op_call(self.idname_py(), kw, C_exec, C_undo) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Error: Python: Traceback (most recent call last): File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/addons/ui_translate/update_addon.py", line 141, in execute pot = bl_extract_messages.dump_addon_messages(module_name, True, self.settings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/modules/bl_i18n_utils/bl_extract_messages.py", line 1131, in dump_addon_messages dump_rna_messages(msgs, reports, settings) File "/home/damien/blender-git/build_linux_release/bin/4.1/scripts/modules/bl_i18n_utils/bl_extract_messages.py", line 442, in dump_rna_messages os.listdir(os.path.join(settings.PRESETS_DIR, "keyconfig"))): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/tmp/blender/source/scripts/presets/keyconfig' Location: /home/damien/blender-git/build_linux_release/bin/4.1/scripts/modules/bpy/ops.py:107 </pre></details> - The paths to use if the Blender sources and translation repos are present are shown in the screenshot [here](https://wiki.blender.org/wiki/Process/Translate_Blender#Manage_UI_Translations_Add-on). It’s for Linux but should be similar in other OSes. - I often get random Blender crashes during extraction, but I couldn’t pinpoint exactly why. Your simple add-on seems to be extracted half the time, but I can’t get other add-ons to work at all. - The op name and description are extracted on my end: `"Subclasses error test name"`, `"Subclasses error test description"`. - I get a lot more stuff from `bpy.types.*Property` than you, but this is also the case when extracting other translations and has been for a while: <details><pre> (("*", "Boolean Definition"), (("bpy.types.BoolProperty",), ()), ("fr_FR", "", (False, ())), ), (("*", "RNA boolean property definition"), (("bpy.types.BoolProperty",), ()), ("fr_FR", "", (False, ())), ), (("*", "Array Dimensions"), (("bpy.types.BoolProperty.array_dimensions",), ()), ("fr_FR", "", (False, ())), ), (("*", "Length of each dimension of the array"), (("bpy.types.BoolProperty.array_dimensions",), ()), ("fr_FR", "", (False, ())), ), (("*", "Maximum length of the array, 0 means unlimited"), (("bpy.types.BoolProperty.array_length",), ()), ("fr_FR", "", (False, ())), ), (("*", "Default value for this number"), (("bpy.types.BoolProperty.default",), ()), ("fr_FR", "", (False, ())), ), (("*", "Default Array"), (("bpy.types.BoolProperty.default_array",), ()), ("fr_FR", "", (False, ())), ), (("*", "Default value for this array"), (("bpy.types.BoolProperty.default_array",), ()), ("fr_FR", "", (False, ())), ), (("*", "Is Array"), (("bpy.types.BoolProperty.is_array",), ()), ("fr_FR", "", (False, ())), ), (("*", "Collection Definition"), (("bpy.types.CollectionProperty",), ()), ("fr_FR", "", (False, ())), ), (("*", "RNA collection property to define lists, arrays and mappings"), (("bpy.types.CollectionProperty",), ()), ("fr_FR", "", (False, ())), ), (("*", "Pointer Type"), (("bpy.types.CollectionProperty.fixed_type",), ()), ("fr_FR", "", (False, ())), ), (("*", "Fixed pointer type, empty if variable type"), (("bpy.types.CollectionProperty.fixed_type",), ()), ("fr_FR", "", (False, ())), ), (("*", "String Definition"), (("bpy.types.StringProperty",), ()), ("fr_FR", "", (False, ())), ), (("*", "RNA text string property definition"), (("bpy.types.StringProperty",), ()), ("fr_FR", "", (False, ())), ), (("*", "String default value"), (("bpy.types.StringProperty.default",), ()), ("fr_FR", "", (False, ())), ), (("*", "Maximum Length"), (("bpy.types.StringProperty.length_max",), ()), ("fr_FR", "", (False, ())), ), (("*", "Maximum length of the string, 0 means unlimited"), (("bpy.types.StringProperty.length_max",), ()), ("fr_FR", "", (False, ())), ), </pre></details> - I could reproduce your point 5. (corrupted `bl_rna`) for a few versions now. I tried to investigate a bit but didn’t do much progress. The `__subclasses__` thing could be a good hint.
Damien Picard added
Module
User Interface
Status
Confirmed
and removed
Status
Needs Triage
labels 2024-01-04 00:24:48 +01:00
Author
Contributor

FWIW I've monkey patched dump_addon_messages for my usecase - now it expects addon to be disabled (and Blender restarted after) before proceeding.

It now dumps strings before addon is activated and after and finds the difference. It solves the issue with the corrupted data but there are still many data from other addons and general Blender operators..

6569d0031f

I often get random Blender crashes during extraction, but I couldn’t pinpoint exactly why. Your simple add-on seems to be extracted half the time, but I can’t get other add-ons to work at all.

Yeah, it does crash from time to time. Sometimes it works on the first try and crashes on the second. Sometimes crashes on the first try (usually on big addons).

FWIW I've monkey patched `dump_addon_messages` for my usecase - now it expects addon to be disabled (and Blender restarted after) before proceeding. It now dumps strings before addon is activated and after and finds the difference. It solves the issue with the corrupted data but there are still many data from other addons and general Blender operators.. https://github.com/IfcOpenShell/IfcOpenShell/commit/6569d0031fbb4c67e8db174a8490224e09623097 > I often get random Blender crashes during extraction, but I couldn’t pinpoint exactly why. Your simple add-on seems to be extracted half the time, but I can’t get other add-ons to work at all. Yeah, it does crash from time to time. Sometimes it works on the first try and crashes on the second. Sometimes crashes on the first try (usually on big addons).
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 project
No Assignees
3 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#116579
No description provided.