ArgumentException:GetLocalizedString etc error ... help appreciated!

Hi!

We’re on the latest unity build.

So we have this problem where we load a “map” (scene) from a very basic menu with networking functionality … here’s the error :

ArgumentException:GetLocalizedString can only be called
from the main thread. Constructors and field initializers will be executed from the loading thread when loading a scene. Don’t use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function. TreeEditor.TreeGroupLeaf…cctor () Rethrow as TypeInitializationException: An exception was thrown by the type initializer for TreeEditor.TreeGroupLeaf

So whenever i apply trees to my map, I get that problem until i eradicate the trees. To be noted that if i drop one or two trees and try to launch the map via the menu, it might work, if I put more, it won’t, and if I keep tinkering with the few trees that once worked, they might stop at any moment (as in, from now on trigger that error when i try to launch via the menu, to be noted that if i launch directly the scene i never have any problem, it’s menu/loading related).

I searched the internet for an answer that might apply to me … in vain, so I turn to you guys in hope for a customized answer.

To be noted that I have tried with old packs, free packs, standard assets (which are up to date), it seemingly is not a question of “old trees assets not compatible”.

So we don’t have a clue on why we get this … any help is welcome.

Ps : I’m not the progr so you will have to apologize any excess of noobiness :S please

I just encountered the same problem.

Alone in the dark we are :frowning:

Yep, same problem here.

Up :frowning:

Did you find a solution to this? Several of the tree packs I own cause that error to get thrown when I do Application.LoadLevel into a level containing trees. It is annoying as hell.

Has anyone filed a bug report on it yet?

I filed a bug report yesterday.

2 Likes

Same problem here. Hopefully your report helps.

Got Same bug

Still happening for me. My scene has a terrain that contains trees. Any scene without the terrain works okay. I don’t want to delete them :frowning: lol

Any fix yet?

I’m not even sure if a fix will ever come for this seeing as the unity trees were deprecated. I hope there will be but I’m not holding my breath.

Wait Unity trees are depricated? What is being used instead of the current tree system? We need some LOD system for terrain, right?

2 Likes

Iiiiinteresting thanks

I had same problem. My solution: add terrain as prefab, remove it from scene and add from prefab. Magic :slight_smile:

3 Likes

It not works only for the first time

Yep. It only works once. After I hit play a second time it breaks it again.

You can solve putting a Tree prefab as GameObject in the scene.

Look if there are these in the photo.

2432881--166773--Cattura.PNG2432881--166756--Cattura.PNG

But when you restart unity the problem returns :frowning:

I wrote support about this (including a link to this thread) and got a ridiculous, cookie cutter response pointing me back to the forum to find help. Apparently we’re supposed to solve Unity’s bugs ourselves.