**System Information**
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71
**Blender Version**
Broken: version: 2.92.0 Alpha, branch: master, commit date: 2020-10-29 23:21, hash: `rB81a0fffb2d2c`
Worked: (newest version of Blender that worked as expected)
**Short description of error**
Blender crashes when I run my custom exporter addon more than one time. My naive guess is that the mesh becomes becomes corrupted after using the combination "to_mesh + to_mesh_clear" on an object in the Scene. The result is that blender crashes. You can see that one of the meshes "poly.loop_indices" becomes **poly.loop_indices= range(1140644360, 1140644889)**
Why do I think this is related to "to_mesh" and "to_mesh_clear"? I tried my addon without using those functions and it solves the crash problem. I don't really manipulate any data outside Blenders built-in functionality (triangulation and rotation of the model). I've attached my addon's source code, a simple test-scene and the crash file here: {F9133520}
I tried the alpha release (as you can see above), the beta release and 2.90.1 with the same problem occuring
Thank you for your help
/Per
**Exact steps for others to reproduce the error**
Extract the attached zip file
Copy "oberon_addon" into the blenders addon folder
I open the blender file "house.blend" (you can find it in the "Data\Game\Models\House" folder
I select "File > Export > Oberon Model (.obm)" and export the file to "house.obm" in the same folder
I select "File > Export > Oberon Model (.obm)" again in the same way
If you change then the addon with below then it can be executed more than one time in a row:
oberon_addon/utils/exportable.py@133 with "self.mesh = self.obj.data"
oberon_addon/utils/exportable.py@180 with "#"