armory3d / armortools

3D Content Creation Tools
https://armorpaint.org
Other
3.25k stars 338 forks source link

Saved Projects Broken #1592

Open SpaceWolf727 opened 1 year ago

SpaceWolf727 commented 1 year ago

ArmorPaint version: 0.9dev

OS/device including version: PopOS! 22.04 Amd Radeon 5700XT

Issue description: I recently started getting into ArmorPaint in hopes it could serve as a replacement for Substance for me, but I have stumbled into a nasty problem that completely buggers those plans.

Any project I save, no matter how simple, keeps ending up corrupted. I can still open the projects, but it keeps erasing or damaging the textures of the model. This one in question had a black mask and fully red colored base for it. Now the base is all strange-looking and the black mask is blank now. as well as the base. Can anyone help me?

Screenshot from 2023-07-06 22-27-09

Steps to reproduce:

Create project, add new Paint Layer with Black Mask, work on both as well as Base Layer. Save Project. On opening save project, issue is presented.

luboslenco commented 1 year ago

Thanks a lot for the report. Does this happen even with the default cube? Any chance to drop a .zipped .arm file here for investigation?

SpaceWolf727 commented 1 year ago

Apparently not, just tested it with the cube.

I can, but the model I am working on has NSFW components. If that isn't a problem, I'd be happy to!

On Fri, Jul 7, 2023 at 2:16 AM Lubos Lenco @.***> wrote:

Thanks a lot for the report. Does this happen even with the default cube? Any chance to drop a .zipped .arm file here for investigation?

— Reply to this email directly, view it on GitHub https://github.com/armory3d/armortools/issues/1592#issuecomment-1624872533, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY65AFBYJLJCILLVVFGXCZDXO6ZUZANCNFSM6AAAAAA2BH767A . You are receiving this because you authored the thread.Message ID: @.***>

TheFriendlyRabbit commented 4 months ago

Similar issue on Windows: commit 9f604c9 (the most recent commit on the v8 branch), built with the OpenGL renderer. (Graphics card is a NVIDIA GeForce RTX 3060 Ti, although it seems unlikely to matter here.)

To reproduce:

The file does not load. ArmorPaint shows only a black screen. A stderr.txt is produced in the same directory as the file, repeatedly containing:

RangeError: Offset is outside the bounds of the DataView
    at buffer_view_t.getUint8 (<anonymous>)
    at buffer_view_get_u8 (<anonymous>:108:46)
    at armpack_read_u8 (<anonymous>:731:13)
    at armpack_read (<anonymous>:773:13)
    at armpack_read_array (<anonymous>:890:27)
    at armpack_read (<anonymous>:826:16)
    at armpack_read_array (<anonymous>:890:27)
    at armpack_read (<anonymous>:826:16)
    at armpack_read_map (<anonymous>:899:19)
    at armpack_read (<anonymous>:832:16)