Facepunch / garrysmod-issues

Garry's Mod issue tracker
145 stars 56 forks source link

studiomdl.exe crashes when compiling specific model #5504

Open CazzyKazoo opened 1 year ago

CazzyKazoo commented 1 year ago

Details

Hi, when i try to add some objects on the arms and legs of any model from hitman pack and i try to compile it says this "Error 'exception_access_violation' (assert: 1)" i lowered the vertices from my new objects and is the same think & how can i compress so much than steam workshop models like, i downloaded a model from workshop have like 8mb & when i decompile the same model to use on other character have 20+mb. How can i solve it? Thanks

robotboy655 commented 1 year ago

In order to look into the crash I will need a way to reproduce it, for which I would need your original model files, assuming we are talking about model compilation. Or at the very least I need the .dmp or .mdmp files that are created on crash, next to the compiler.

As for your 8MB/20MB issue, this is not the place to ask such questions. You can try asking for help with modding on our official Discord server (https://discord.gg/gmod), or anywhere else that is not here.

CazzyKazoo commented 1 year ago

Compiling with Crowbar 0.74: "C:\Users\cazac\Desktop\tvman_mecha_giant\tvman_mecha_giant.qc" ...

Compiling "tvman_mecha_giant.qc" ... Output from compiler "D:\Steamlibrary\steamapps\common\GarrysMod\bin\studiomdl.exe": qdir: "c:\users\cazac\desktop\tvman_mecha_giant\" gamedir: "D:\Steamlibrary\steamapps\common\GarrysMod\garrysmod\" g_path: "tvman_mecha_giant.qc" Building binary model files... Working on "tvman_mecha_giant.qc" SMD MODEL Pants.smd SMD MODEL body1_model0.smd SMD MODEL body2_model0.smd SMD MODEL body3_model0.smd SMD MODEL body4_model0.smd SMD MODEL body5_model0.smd SMD MODEL body6_model0.smd SMD MODEL body7_model0.smd SMD MODEL body8_model0.smd SMD MODEL body9_model0.smd SMD MODEL body10_model0.smd SMD MODEL tvman_mecha_giant_anims\idle.smd SMD MODEL tvman_mecha_giant_anims\jump.smd SMD MODEL tvman_mecha_giant_anims\Walk.smd SMD MODEL tvman_mecha_giant_anims\Run.smd SMD MODEL tvman_mecha_giant_anims\Attack 1.smd SMD MODEL tvman_mecha_giant_anims\Attack 2.smd SMD MODEL tvman_mecha_giant_anims\Attack 3.smd SMD MODEL tvman_mecha_giant_anims\Skill.smd SMD MODEL tvman_mecha_giant_anims\ragdoll.smd SMD MODEL tvman_mecha_giant_physics.smd Processing LOD for material: Shoes_d3 Processing LOD for material: srb Processing LOD for material: spk Processing LOD for material: bplast Processing LOD for material: membrane Processing LOD for material: pierscienczarn Processing LOD for material: darkgraymetal Processing LOD for material: darkwood Processing LOD for material: black Processing LOD for material: sil Processing LOD for material: gplast Processing LOD for material: gplast Processing LOD for material: gplast Processing LOD for material: gplast Processing LOD for material: gplast Processing LOD for material: naklejka Processing LOD for material: yellow Processing LOD for material: white Processing LOD for material: white Processing LOD for material: red Processing LOD for material: red Processing LOD for material: blue Processing LOD for material: green Processing LOD for material: Gloves_BM Processing LOD for material: shirt_d Processing LOD for material: shirt_d Processing LOD for material: WinterCoat_d Processing LOD for material: pants_d Processing LOD for material: membrane Processing LOD for material: pierscienczarn Processing jointed collision model ValveBiped.Bip01_Pelvis ( 29 verts, 1 convex elements) volume: 1634138.50 ValveBiped.Bip01_Spine2 ( 40 verts, 1 convex elements) volume: 3117067.75 ValveBiped.Bip01_Neck1 ( 91 verts, 1 convex elements) volume: 661385.81 ValveBiped.Bip01_R_Thigh ( 26 verts, 1 convex elements) volume: 1307409.50 ValveBiped.Bip01_R_Calf ( 27 verts, 1 convex elements) volume: 634684.75 ValveBiped.Bip01_R_Foot ( 12 verts, 1 convex elements) volume: 305166.19 ValveBiped.Bip01_L_Thigh ( 25 verts, 1 convex elements) volume: 1298017.50 ValveBiped.Bip01_L_Calf ( 27 verts, 1 convex elements) volume: 638031.44 ValveBiped.Bip01_L_Foot ( 12 verts, 1 convex elements) volume: 305166.81 ValveBiped.Bip01_L_UpperArm ( 21 verts, 1 convex elements) volume: 440388.78 ValveBiped.Bip01_L_Forearm ( 25 verts, 1 convex elements) volume: 227729.14 ValveBiped.Bip01_L_Hand ( 15 verts, 1 convex elements) volume: 137943.45 ValveBiped.Bip01_R_UpperArm ( 21 verts, 1 convex elements) volume: 447122.03 ValveBiped.Bip01_R_Forearm ( 25 verts, 1 convex elements) volume: 226472.53 ValveBiped.Bip01_R_Hand ( 15 verts, 1 convex elements) volume: 130705.97 Collision model completed.

writing D:\Steamlibrary\steamapps\common\GarrysMod\garrysmod\models/TVman_MECHA_GIANT.mdl: bones 19820 bytes (67) animation x y ips angle @idle 0.00 0.00 : 0.00 ( 0.00) 2.0 @jump 0.00 0.00 : 0.00 ( 0.00) 0.7 @Walk 0.00 0.00 : 0.00 ( 0.00) 0.6 @Run 0.00 0.00 : 0.00 ( 0.00) 0.6 @Attack 1 0.00 0.00 : 0.00 ( 0.00) 0.6 @Attack 2 0.00 0.00 : 0.00 ( 0.00) 0.6 @Attack 3 0.00 0.00 : 0.00 ( 0.00) 0.6 @Skill 0.00 0.00 : 0.00 ( 0.00) 3.7 @ragdoll 0.00 0.00 : 0.00 ( 0.00) 3.4 animations 35084 bytes (9 anims) (392 frames) [0:13] sequences 3172 bytes (9 seq) ik/pose 1804 bytes eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) eyeballs 0 bytes (0 eyeballs) flexes 0 bytes (0 flexes) textures 1568 bytes keyvalues 0 bytes bone transforms 9176 bytes bone flex driver 0 bytes Collision model volume 11511430.00 in^3 collision 0 bytes total 76312

writing D:\Steamlibrary\steamapps\common\GarrysMod\garrysmod\models/TVman_MECHA_GIANT.vvd: vertices 1572672 bytes (32764 vertices) vertices 2138688 bytes (44556 vertices) vertices 1572048 bytes (32751 vertices) vertices 1572528 bytes (32761 vertices) vertices 1572768 bytes (32766 vertices) vertices 1572768 bytes (32766 vertices) vertices 1571712 bytes (32744 vertices) vertices 1572768 bytes (32766 vertices) vertices 1572768 bytes (32766 vertices) vertices 294816 bytes (6142 vertices) vertices 1085808 bytes (22621 vertices) tangents 524224 bytes (32764 vertices) tangents 712896 bytes (44556 vertices) tangents 524016 bytes (32751 vertices) tangents 524176 bytes (32761 vertices) tangents 524256 bytes (32766 vertices) tangents 524256 bytes (32766 vertices) tangents 523904 bytes (32744 vertices) tangents 524256 bytes (32766 vertices) tangents 524256 bytes (32766 vertices) tangents 98272 bytes (6142 vertices) tangents 361936 bytes (22621 vertices) total 21465856 bytes

Generating optimized mesh "D:\Steamlibrary\steamapps\common\GarrysMod\garrysmod\models/TVman_MECHA_GIANT.sw.vtx": ERROR: 'EXCEPTION_ACCESS_VIOLATION' (assert: 1) ERROR: Aborted Processing on 'TVman_MECHA_GIANT.mdl' ... Compiling "tvman_mecha_giant.qc" finished. Check above for any errors.

... Compiling with Crowbar 0.74: "C:\Users\cazac\Desktop\tvman_mecha_giant\tvman_mecha_giant.qc" finished.

Here is the full log, and i want to mention, is the decompiled character and i didn't modified nothing on this i tried just to compile it again And i let on this link https://we.tl/t-qcjdozzJqW the model as an mdl and everything and the decompiled model.

robotboy655 commented 1 year ago

I have fixed that specific crash on Dev beta, but the generated model from your source files crashes the game with all of the bodygroups. I have not been able to identify why that happens.

CazzyKazoo commented 1 year ago

I have fixed that specific crash on Dev beta, but the generated model from your source files crashes the game with all of the bodygroups. I have not been able to identify why that happens.

But how did you compiled it & passed the error? How other compiled it? Its a downloaded NPC from workshop. i have it in game and works.