Hello,

I'm having an issue when trying to import an item that has at least 2 mask layers (such as Detail and Diffuse / Fresnel). After importing the assets, the game will continuously try to recompile them because of what looks like a circular dependency, grinding the game to a halt (about 1 FPS on my machine) and leading to a lot of display issues, such as seeing the object as wireframe.

The problem goes away if I only use Color, Normal and at most one mask texture. As soon as I add the second mask texture, it comes back. I've looked at the auto-generated mask textures (I'm importing from a Source 1 format) and they look fine. I've been googling for hours to find anyone with a similar issue but had no such luck. This is the first time I'm using the new Workshop tools so I don't know if it's a recent issue.

Here's a screenshot of how the issue looks when previewing the item (in-game it looks exactly like that as well):

Screenshot 2015-10-03 20.29.32.png

And here's part of the console output that shows the infinite recompiling:

Code:
[   AssetSystem            ]: Reloading Resource [1/6]: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat
[   AssetSystem            ]: Reloading Resource [2/6]: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_normal_tga_40f5ddfc.vtex
[   AssetSystem            ]: Reloading Resource [3/6]: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_color_tga_bc6a706a.vtex
[   AssetSystem            ]: Reloading Resource [4/6]: materials/models/heroes/sven/sven_diffusewarp_psd_30cf60b.vtex
[   AssetSystem            ]: Reloading Resource [5/6]: materials/default/default_detail2_tga_70788555.vtex
[   AssetSystem            ]: Reloading Resource [6/6]: materials/default/default_fresnelwarprim_tga_d9279d65.vtex
[   AssetSystem            ]: On-demand recompile of asset materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat
[   AssetSystem            ]:  -> reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: Recompiling resource asset: 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat'
[   ResourceCompilerSystem ]: - dota_addons\workshop_testbed\materials\models\items\ogre_magi\ogremagitribal_head_test1\ogremagitribal_head_test1.vmat
[ W AssetSystem            ]: WARNING: AssetSystem preventing resource 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat' (compile state 1) from loading due to on-demand-compile problem. Still not compiled for reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: On-demand recompile of asset materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat
[   AssetSystem            ]:  -> On behalf of child: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_normal_tga_40f5ddfc.vtex
[   AssetSystem            ]:  -> reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: Recompiling resource asset: 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat'
[   ResourceCompilerSystem ]: - dota_addons\workshop_testbed\materials\models\items\ogre_magi\ogremagitribal_head_test1\ogremagitribal_head_test1.vmat
[ W AssetSystem            ]: WARNING: AssetSystem preventing resource 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_normal_tga_40f5ddfc.vtex' (compile state 1) from loading due to on-demand-compile problem. Still not compiled for reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: On-demand recompile of asset materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat
[   AssetSystem            ]:  -> On behalf of child: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_color_tga_bc6a706a.vtex
[   AssetSystem            ]:  -> reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: Recompiling resource asset: 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat'
[   ResourceCompilerSystem ]: - dota_addons\workshop_testbed\materials\models\items\ogre_magi\ogremagitribal_head_test1\ogremagitribal_head_test1.vmat
[ W AssetSystem            ]: WARNING: AssetSystem preventing resource 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_color_tga_bc6a706a.vtex' (compile state 1) from loading due to on-demand-compile problem. Still not compiled for reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: On-demand recompile of asset materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat
[   AssetSystem            ]:  -> On behalf of child: materials/models/heroes/sven/sven_diffusewarp_psd_30cf60b.vtex
[   AssetSystem            ]:  -> reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: Recompiling resource asset: 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat'
[   ResourceCompilerSystem ]: - dota_addons\workshop_testbed\materials\models\items\ogre_magi\ogremagitribal_head_test1\ogremagitribal_head_test1.vmat
[ W AssetSystem            ]: WARNING: AssetSystem preventing resource 'materials/models/heroes/sven/sven_diffusewarp_psd_30cf60b.vtex' (compile state 1) from loading due to on-demand-compile problem. Still not compiled for reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: On-demand recompile of asset materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat
[   AssetSystem            ]:  -> On behalf of child: materials/default/default_detail2_tga_70788555.vtex
[   AssetSystem            ]:  -> reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: Recompiling resource asset: 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat'
[   ResourceCompilerSystem ]: - dota_addons\workshop_testbed\materials\models\items\ogre_magi\ogremagitribal_head_test1\ogremagitribal_head_test1.vmat
[ W AssetSystem            ]: WARNING: AssetSystem preventing resource 'materials/default/default_detail2_tga_70788555.vtex' (compile state 1) from loading due to on-demand-compile problem. Still not compiled for reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: On-demand recompile of asset materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat
[   AssetSystem            ]:  -> On behalf of child: materials/default/default_fresnelwarprim_tga_d9279d65.vtex
[   AssetSystem            ]:  -> reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: Recompiling resource asset: 'materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat'
[   ResourceCompilerSystem ]: - dota_addons\workshop_testbed\materials\models\items\ogre_magi\ogremagitribal_head_test1\ogremagitribal_head_test1.vmat
[ W AssetSystem            ]: WARNING: AssetSystem preventing resource 'materials/default/default_fresnelwarprim_tga_d9279d65.vtex' (compile state 1) from loading due to on-demand-compile problem. Still not compiled for reason: At least one out-of-date dependency: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_rimmask.tga (file existence changed)
[   AssetSystem            ]: Reloading Resource [1/6]: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1.vmat
[   AssetSystem            ]: Reloading Resource [2/6]: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_normal_tga_40f5ddfc.vtex
[   AssetSystem            ]: Reloading Resource [3/6]: materials/models/items/ogre_magi/ogremagitribal_head_test1/ogremagitribal_head_test1_color_tga_bc6a706a.vtex
[   AssetSystem            ]: Reloading Resource [4/6]: materials/models/heroes/sven/sven_diffusewarp_psd_30cf60b.vtex
[   AssetSystem            ]: Reloading Resource [5/6]: materials/default/default_detail2_tga_70788555.vtex
[   AssetSystem            ]: Reloading Resource [6/6]: materials/default/default_fresnelwarprim_tga_d9279d65.vtex
I can also attach the .smd and texture files if that helps.

Please help,
TokPhobia