#Random Crash

1 messages · Page 1 of 1 (latest)

inner cloak
#

I gotta go

#

So, try to scope down the issue.

tidal kettle
#

incredible start to the thread lol

inner cloak
#

And find the actual issue.

tidal kettle
#

but im from OS world where scoping down the issue is a fun thing where a seemingly not broken piece of code breaks literally everything else very subtly

#

so im scared to try anything

#

but i will

#

because i have backups ™️

#

after several hours of tests (not really), only the medium trees crash

#

good news

#

and bad

#

why tf is medium trees crashing

#

BUT

#

is it actually the trees

#

aaa

inner cloak
#

I though you said that every tree crashed ?

tidal kettle
#

i was misunderstanding mass place trees

#

i thought i only placed the trees you selected

#

but when i added the cube i figured out otherwise

inner cloak
#

It is a good news that you found the actual object. Now find the difference.

tidal kettle
#

i have a theory

#

might by LOD distance

#

maybe my billbaords are fucked

inner cloak
#

Remove the LOD then

#

(For Test purpose)

tidal kettle
#

@inner cloak ok yep

#

removing the LOD2 (billboard) stops the crashes

inner cloak
#

ez

#

now figure out how you can use billboard without crashing

tidal kettle
#

ok good news

#

or bad

#

its specifically the billboard

#

and it happens

#

on every tree if i have enough billboards rendering

#

so my billboard is crashing

#

but whyy

#

i did cut out a bit of the sahder maybe that broke it :/

#

but because it was erroring and i could not figure out how to make it work

woeful comet
#

What did you cut out?

#

What kind of shader is it anyway?

tidal kettle
#

um it was some code inside an ifdef but i removed it

#

i should probably put it back

tidal kettle
#

its opaque

#

and its a billboard shader

#

which i said earlier

woeful comet
tidal kettle
#

yeah i can restore the shader tho

woeful comet
#

So is it urp lit or billboard shader?

tidal kettle
#

both

woeful comet
#

Wdym..?

tidal kettle
#

its a custom billboard made by the asset creator

woeful comet
#

So it's not urp lit shader?

tidal kettle
#

it is

woeful comet
#

That's the name of the pass, not the shader

tidal kettle
#

oh you meant URP/Lit

#

no its a custom one

#

i was saying im using URP

#

and its a lit shader

woeful comet
tidal kettle
#

its a billboard its name is "CTI/URP Billboard"

#

not sure on the details im not an expert on text based shaders (or shadergraph for that matter i guess)

#

basically i was getting some error with shadow flags tho

#

let me restore the shader and i can tell you what the error was

#

wait maybe the author fixed their shaders

#

a little bit at least

#

nope

#

they made it weirder

#

it doesnt error anymore

#

very cool

#

but

#

it wont let me assign texture arrays

woeful comet
#

Where did texture arrays come from now?

tidal kettle
#

thats part of the regular trees

#

not the billboards

#

the billboards were the issue before

#

see

#

some of the trees have a texture

#

some dont

#

ok i THINK if i just dont use the array ones

#

it shoudl look ok

woeful comet
#

What part of the the regular trees is it? How is a texture array relevant to anything?

tidal kettle
#

the bark

#

this is the material

woeful comet
#

Ok, and you're setting the texture array via code?

tidal kettle
#

nope

#

its set in the material right there

#

and that results in the gray

woeful comet
#

Are you sure that tree has the texture assigned?

tidal kettle
#

material you mean?

#

yeah

#

i changed it to simple just now

#

because that one works

woeful comet
#

Okay

tidal kettle
#

ok now does it stop crashing

woeful comet
#

So does that fix your issue?

tidal kettle
#

nope

#

goddamnit

#

now i didnt even change anything

#

this is the clean version from the asset store

#

vrilliant

#

intersting new stack

#

wait for job group ID

woeful comet
#

What's the error though?

tidal kettle
#

same as before

woeful comet
#

Well, at this point it looks like an engine bug. Perhaps you should submit a bug report.

tidal kettle
#

how am i supposed to report this

woeful comet
#

Via the editor.

tidal kettle
#

no i mean

#

"my random asset trees that have no merit to not have buggy shaders crash my game when i close my custom built menu after i start my custom NGO instance with so many variables"

#

do they figure out what the problem is

#

its so complicated lol

woeful comet
#

Include the steps for reproducing the error, stack trace and error. They would probably ask you to upload your project or a test build to confirm the issue.

#

You don't know if it's a buggy shader.

#

Just provide the objective facts

tidal kettle
#

does it upload my project by default?

#

my project folder is in the list

#

im assuming crash bug applies to both editor and player right

woeful comet
tidal kettle
#

Alright

#

i guess while im developing until a problem is found i will just drop my medium size trees and add them back once the issue is resolved

#

what do i do if i just get "duplicate bug" like with my last report

#

maybe they send a link

#

whatever

woeful comet
#

If it's duplicate, then you just follow the progress of the other issue.

tidal kettle
#

thats what i meant

#

they send a link to it?

woeful comet
#

Probably.