2025-07-20 22:16 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003972Spring engineGeneralpublic2013-08-29 08:40
ReporterKerr 
Assigned Toabma 
PriorityurgentSeveritymajorReproducibilityalways
StatusresolvedResolutionreopened 
Product Version94.1.1+git 
Target Version95.0Fixed in Version 
Summary0003972: Assimp .3ds support broken in 94 and 94.1.1+git
DescriptionThe latest Zero-k test version uses .3ds for numerous wrecks, these work fine in 91 engine version... but produce this or a similar error on 94.1.1+git engine version.

[f=0000678] Warning: could not load model "leveler_d.3ds" (reason: [AssimpParser] Model Import: Chunk is too large)

Again, all .3ds models work _perfectly_ fine on engine 91. (I even played a 5v5 on ZK test with engine 91 earlier today)

I tested both mentioned engines...
All .3ds models fail to load, low poly / high poly / with and without smoothing / ETC
Steps To Reproduce1. get latest zk:test version (currently r11266)
2. Build/spawn any unit with a .3ds wreck
(Here are the unit names of a few, for convenience:
corlevlr
armrock
blackdawn
corvalk)
3. Kill it in a manner that produces a wreck
4. Wreck will not load, an error similar to above will appear.
Additional InformationPweese Fix.
Tagsassimp
Checked infolog.txt for Errors
Attached Files

-Relationships
related to 0003965resolvedabma 94.1.1-1015 desync 
+Relationships

-Notes

~0011448

Kloot (developer)

It works for me with zk-r11267 and spring-gb7c15b9.

Maybe the file(s) you have are locally corrupt?

~0011457

Kerr (reporter)

Last edited: 2013-08-28 19:09

View 2 revisions

Rafal First alerted this to me and said on public online zk:test + latest engine server the problem occured, my local testing confirmed so I posted here.

Testing again this morning:
I've redownloaded my engine (spring_{develop}94.1.1-1027-gb7c15b9_minimal-portable.7z)

and redownloaded zk:test using prdownloader.

http://i233.photobucket.com/albums/ee17/General_Kerr/b0uuuuug_zpsd8a5540c.png

Still occurs exactly as described.

~0011458

KingRaptor (reporter)

Last edited: 2013-08-28 19:35

View 3 revisions

Same issue on 94.1.1-1027-gb7c15b9 and Zero-K r11275.

Without knowing anything else about it: May be OS specific or graphics issue?
I'm on Microsoft Windows 7 Home Premium Edition, 32-bit Service Pack 1 (build 7601) and ATI Radeon HD 5700 Series

EDIT: Running the "worksforme" replay also gives the issue.

~0011459

Kerr (reporter)

Windows XP Pro SP3 elite hacked version...
ATI Radeon HD 4650
AMD Phenom II 965 X4 Black
4 GB ddr3 1337 ram

Again, all works on engine 91.

~0011460

Kloot (developer)

I *assume* it is a platform issue because while libassimp was updated a few times between 91 and 94, there were *no* changes to the 3DS loading code.

In particular this looks susceptible (comments mine) to generating the "Chunk is too large" error:

class Discreet3DS {
    ...
    struct Chunk {
        uint16_t Flag; // UNSIGNED
        uint32_t Size; // UNSIGNED
    } PACK_STRUCT;
}

void Discreet3DSImporter::ReadChunk(Discreet3DS::Chunk* pcOut)
{
    ai_assert(pcOut != NULL);

    pcOut->Flag = stream->GetI2(); // SIGNED (StreamReader.h --> int16_t)
    pcOut->Size = stream->GetI4(); // SIGNED (StreamReader.h --> int32_t)
    ...
}

~0011461

Kloot (developer)

Please test {develop}94.1.1-1031-g274e6f1 when it becomes available.

~0011462

Kerr (reporter)

Last edited: 2013-08-29 00:17

View 4 revisions

Error still occurs on 94.1.1-1031-g274e6f1 in the exact same manner

-unrelated below-
Also, I get IMMENSE lag on that engine version, ZK runs at ~ 5 FPS on startup, in comparison to usually running over 100 most of the game.

~0011476

abma (administrator)

can't reproduce on linux :-|

[f=0000426] Debug: /give 10 corlevlr
[f=0000427] [Texture] Load S3O texture now (Flip Y Axis: no, Invert Team Alpha: no)
[f=0000427] [GiveUnits] spawned 10 corlevlr unit(s) for team 0
[f=0000680] [Texture] Load S3O texture now (Flip Y Axis: no, Invert Team Alpha: no)
[f=0000716] [Model] Loading model: objects3d/leveler_d.3ds
[f=0000716] [Model] Found valid model metadata in 'objects3d/leveler_d.3ds.lua'
[f=0000716] [Model] Importing model file: objects3d/leveler_d.3ds
[f=0000716] [Model] Processing scene for model: objects3d/leveler_d.3ds (2 meshes / 1 materials / 0 textures)
[f=0000716] [Model] Loading textures. Tex1: 'unittextures/wreck.dds' Tex2: 'unittextures/wreck2.dds'
[f=0000716] [Texture] Load S3O texture now (Flip Y Axis: yes, Invert Team Alpha: yes)
[f=0000716] [Model] Loading pieces from root node '<3DSRoot>'
[f=0000716] [Piece] Converting node '<3DSRoot>' to piece '<3DSRoot>' (0 meshes).
[f=0000716] [Piece] (1:<3DSRoot>) Assimp offset (0.000000,0.000000,0.000000), rotate (0.707107,-0.707107,0.000000,0.000000), scale (1.000000,1.000000,1.000000)
[f=0000716] [Piece] (1:<3DSRoot>) Relative offset (0.000000,0.000000,0.000000), rotate (0.000000,0.000000,0.000000), scale (1.000000,1.000000,1.000000)
[f=0000716] [Piece] Loaded model piece: <3DSRoot> with 0 meshes
[f=0000716] [Piece] piece->name: <3DSRoot>
[f=0000716] [Piece] piece->parent:
[f=0000716] [Piece] Converting node 'base' to piece 'base' (2 meshes).
[f=0000716] [Piece] Found metadata for piece 'base'
[f=0000716] [Piece] (2:base) Assimp offset (0.000000,0.000000,0.000000), rotate (1.000000,0.000000,0.000000,0.000000), scale (1.000000,1.000000,1.000000)
[f=0000716] [Piece] (2:base) Relative offset (0.000000,0.000000,0.000000), rotate (0.000000,0.000000,0.000000), scale (1.000000,1.000000,1.000000)
[f=0000716] [Piece] Loaded model piece: base with 2 meshes
[f=0000716] [Piece] piece->name: base
[f=0000716] [Piece] piece->parent: <3DSRoot>
[f=0000716] [Model] Model objects3d/leveler_d.3ds Imported.

~0011478

Kerr (reporter)

Last edited: 2013-08-29 03:27

View 2 revisions

Yeah seems to only occur on windows, you and Kloot (On linux) can't reproduce it, however Me, Rafal[ZK], And kingraptor all can reproduce it on windows.

~0011480

abma (administrator)

Last edited: 2013-08-29 06:54

View 2 revisions

i think i got it:

sizeof(Chunk) is 6 on linux
sizeof(Chunk) is 8 on windows

-> __attribute__((packed)) is ignored ?!

http://www.bttr-software.de/forum/mix_entry.php?id=11767

~0011481

abma (administrator)

please test with >=94.1.1-1039-g80ef26c when its build...

~0011482

abma (administrator)

upstream pull request: https://github.com/assimp/assimp/pull/83
+Notes

-Issue History
Date Modified Username Field Change
2013-08-28 07:48 Kerr New Issue
2013-08-28 08:10 Kerr Tag Attached: assimp
2013-08-28 11:57 Kloot File Added: mantis3972-worksforme-zk11267.png
2013-08-28 11:58 Kloot File Added: mantis3972-worksforme-zk11267.sdf
2013-08-28 11:59 Kloot Note Added: 0011448
2013-08-28 11:59 Kloot Status new => closed
2013-08-28 11:59 Kloot Assigned To => Kloot
2013-08-28 11:59 Kloot Resolution open => unable to reproduce
2013-08-28 19:08 Kerr Note Added: 0011457
2013-08-28 19:08 Kerr Status closed => feedback
2013-08-28 19:08 Kerr Resolution unable to reproduce => reopened
2013-08-28 19:09 Kerr Note Edited: 0011457 View Revisions
2013-08-28 19:28 KingRaptor Note Added: 0011458
2013-08-28 19:29 KingRaptor Note Edited: 0011458 View Revisions
2013-08-28 19:31 Kerr Note Added: 0011459
2013-08-28 19:31 Kerr Status feedback => assigned
2013-08-28 19:35 KingRaptor Note Edited: 0011458 View Revisions
2013-08-28 19:49 Kloot Note Added: 0011460
2013-08-28 19:58 Kloot Note Added: 0011461
2013-08-28 19:58 Kloot Status assigned => feedback
2013-08-28 20:29 Kerr Note Added: 0011462
2013-08-28 20:29 Kerr Status feedback => assigned
2013-08-28 20:29 Kerr Note Edited: 0011462 View Revisions
2013-08-28 23:20 Kerr Note Edited: 0011462 View Revisions
2013-08-29 00:17 abma Note Edited: 0011462 View Revisions
2013-08-29 02:56 abma Note Added: 0011476
2013-08-29 03:14 abma Relationship added related to 0003965
2013-08-29 03:15 abma Target Version => 95.0
2013-08-29 03:26 Kerr Note Added: 0011478
2013-08-29 03:27 Kerr Note Edited: 0011478 View Revisions
2013-08-29 06:10 abma Note Added: 0011480
2013-08-29 06:13 abma Changeset attached => spring develop 80ef26cd
2013-08-29 06:13 abma Assigned To Kloot => abma
2013-08-29 06:13 abma Status assigned => resolved
2013-08-29 06:16 abma Note Added: 0011481
2013-08-29 06:47 abma Note Added: 0011482
2013-08-29 06:54 abma Note Edited: 0011480 View Revisions
+Issue History