Author Topic: Huge Slate editor bug  (Read 11122 times)

2015-10-18, 18:07:52

Guillermo Leal

  • Active Users
  • **
  • Posts: 52
    • View Profile
    • Evolucion Visual
I posted here this bug since its not corona related, but i have read many slate editor issues here and i don't think is corona related.

this problem has been bothering me for a long time, i finally had some time to try to replicate it so i can summit it to autodesk.
the slate material editor is practically impossible to use on heavy scenes which are what i use most of the times.

basically if you have a scene of let's say 15000 objects and you try to modify the material in the slate editor by adding lets say a noise map, it will be impossible to move around or edit anything in the material editor again until you restart max.

below i have provided the steps along with a script to reproduce it. even if you have more then 15000 objects/materials you can still modify them relatively fast until you try to add some maps or something else.
I have tried this on 3 renders (standard, vray and corona) they all do the same thing so its a max issue, there must be a memory leak in the slate editor.


1.- run the script attached to create 15,625 objects/materials
2.- open the slate editor
3.- open one of the materials and tweak anything, diffuse for example. it will be fast
3.- right click to add anything (noise map). max will freeze for a little while and after this step max is useless until you restart.

please let me know if anyone else can confirm this.

thanks,

2015-10-18, 18:48:54
Reply #1

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
3dsmax does not scale at all because there is significant internal message spam. If you change anything in the material editor, it will propagate through all objects in the scene, even though the material is not even used in the scene - which for 15k objects take ages.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-10-18, 18:54:39
Reply #2

racoonart

  • Active Users
  • **
  • Posts: 1446
    • View Profile
    • racoon-artworks
I'm not sure if it's exactly the same thing but things like that exists since Slate first shipped with 3dsmax (2012 if I remember correctly?). The problem was not Slate itself but the new material/map browser. I made a test back then having 10.000 objects with 1 single material applied to all of them - as soon as you tried to open the material/map browser (even in the compact editor) max froze for about 20 minutes.
The issue can be solved by simply activating the old browser again via ini setting -> instant response, even with 10th of thousands of objects. This obviously only helps if you're using the old compact mtl editor, slate is still using the new one, but hey, at least you can do some work :)
Any sufficiently advanced bug is indistinguishable from a feature.

2015-10-18, 19:01:27
Reply #3

Guillermo Leal

  • Active Users
  • **
  • Posts: 52
    • View Profile
    • Evolucion Visual
Ondra:
but why it does not happens in the compact material editor?

DeadClown:
i have always use the old browser, the new ones are useless too slow. 
on the slate editor i always have the material/map browser off, if its on then its super slow.  maybe i will have to come up with a script so i never call the browser as it seems that triggers the bug/leak starts.

2015-10-18, 21:11:42
Reply #4

Juraj

  • Active Users
  • **
  • Posts: 4763
    • View Profile
    • studio website
but the new material/map browser

It's this.

All my scenes are basically 10 000+ objects, and I imagine that holds true for most archviz companies. By the time I am finishing the project, I am dreading any final material tweaks because it's painful...accidental clicks on 'map' almost bring me heart attack.

3dsmax does not scale at all because there is significant internal message spam. If you change anything in the material editor, it will propagate through all objects in the scene, even though the material is not even used in the scene - which for 15k objects take ages.

Pretty epic :- )




« Last Edit: 2015-10-18, 21:17:24 by Juraj_Talcik »
Please follow my new Instagram for latest projects, tips&tricks, short video tutorials and free models
Behance  Probably best updated portfolio of my work
lysfaere.com Please check the new stuff!

2015-10-18, 21:17:58
Reply #5

PROH

  • Active Users
  • **
  • Posts: 1219
    • View Profile
Hi. This could be an explanation to some of the troubles I've had lately. So if anybody could tell me how to switch Max to use the old browser, I would be thankful :)

2015-10-18, 21:25:38
Reply #6

pokoy

  • Active Users
  • **
  • Posts: 1865
    • View Profile
I'm glad I'm not the only one seeing this issue. The new mat/map browser worked for me in 2012 but not in 2014 or 2016, it was just impossible to work with on scenes with high object count. I remember having reported this long ago already but the more of us do this the more likely it's going to get looked at... hopefully.

To switch to the old mat/map browser, locate the file 'SME.ini' in your local max settings folder:

 C:\Users\*UserAccount*\AppData\Local\Autodesk\3dsM ax\2016 - 64bit\ENU\plugcfg_ln

 look for this line

 UseOldMtlBrowser=0

 and change it to

 UseOldMtlBrowser=1

2015-10-18, 21:37:48
Reply #7

Bormax

  • Active Users
  • **
  • Posts: 568
    • View Profile
 
on the slate editor i always have the material/map browser off

The same here. Working with materials I always try to minimize the usage of material/map browser. But even if I have to use it I always have Scene Material unchecked in Material/Map Browser Options. To minimize the usage I just create all needed materials/maps by clicking right button on empty space of slate editor and choosing what I need from drop down menus, and after that I just connect them. Or I drag connector from material's/maps gray/green circles and again choose what I need from drop down menus. This way is much faster for me than click to the button None in Parameter Editor on the left side or in Compact Material Editor and wait when the material browser will appear.
I tried your script and it takes about 80 seconds to open Slate Editor first time and the same time after changes in materials even with opened on left side Material/Map Browser and about 65 seconds when it's switched off. All kind of operations with materials don't make any problems and don't take longer time than in small scenes.
I use Max 2014.
Hope this information can help you in your work.

2015-10-18, 21:43:10
Reply #8

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
I'm glad I'm not the only one seeing this issue. The new mat/map browser worked for me in 2012 but not in 2014 or 2016,

hypotetical example: Imagine you have a bug with a map not refreshing on scene objects. What is the simplest solution? Of course to iterate over all scene objects when any map is changed, find objects that have the map applied, and update them. Is it slow in big scenes? Yes, but it works! ;) Similar "fixes" are put to any sufficiently complex software all the time.
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-10-18, 21:50:22
Reply #9

pokoy

  • Active Users
  • **
  • Posts: 1865
    • View Profile
I'm glad I'm not the only one seeing this issue. The new mat/map browser worked for me in 2012 but not in 2014 or 2016,

hypotetical example: Imagine you have a bug with a map not refreshing on scene objects. What is the simplest solution? Of course to iterate over all scene objects when any map is changed, find objects that have the map applied, and update them. Is it slow in big scenes? Yes, but it works! ;) Similar "fixes" are put to any sufficiently complex software all the time.

Awful way to fix issues, probably a case of letting things slide through and hoping scenes are small and computers fast enough so nobody will notice. The thing that really bugs me is how long it takes to really fix this, it's there for at least 3 years now and should have produced lots of red lights within their reporting system, maybe just not red enough.

2015-10-18, 21:56:24
Reply #10

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
well from my experience in reporting bugs, certain companies have a policy "just being slow is never a bug"
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)

2015-10-19, 10:11:57
Reply #11

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8856
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Dunno if i doing something wrong or not but luckily i don't experience such problems with SME. I tried script by OP out of curiosity and everything seems fine. SME opens with significant delay for first time (10-20 sec), but after that i can work with materials without lag. Max2014 sp5, new material/map browser and it always open. So maybe there's something more in this issue. There can be not so much report about it at Autodesk, if not everybody experience it :]
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2015-10-19, 10:36:17
Reply #12

Ludvik Koutny

  • VIP
  • Active Users
  • ***
  • Posts: 2557
  • Just another user
    • View Profile
    • My Portfolio
I too never experience this, but that's probably because when you use slate (or at least when I do), I usually get entire project done without need to open material/map browser even once :)

2015-10-19, 11:15:47
Reply #13

PROH

  • Active Users
  • **
  • Posts: 1219
    • View Profile
@pokoy: Thank you for the explanation. I'll try it, and see if it helps :)

2015-10-19, 11:46:18
Reply #14

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12768
  • Marcin
    • View Profile
I can't recall experiencing this either, even in scenes reported by the customers. I think this would require some further investigation and my theory is that it could be connected with some 3rd party plugins.

Not happening when running the script from 1st post and performing all the steps either. Other than Max getting pretty laggy, there is nothing that would make working in it impossible, no freezes.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us