UI and CANVAS

I have just started to make my new game and strangely , I got an error. I can play in editor normally but can’t play when I build and if I disable canvas everything works great. I have just started so I have only canvas, camera and Eventsystem in hyerarchy. Here is error log …(I will really be happy for any answer that helps me and thx for answers)

2510949–173861–output_log.txt (16.5 KB)
2510949–173862–error.log.txt (36.3 KB)

I haven’t figured out yet …

That error…means that a sector of memory, can not be ‘Read from’ or ‘Written to’…

Do you have real time anti-virus active? Is Unity let through your firewall?

Only a guess…( win 10 /AV loves to lock the graphics.dll)…but it happened in the editor as well , so…

P

but I cant understand that when I remove the canvas game is working just with a solid color that I added to camera. I think if I had a problem like you said , I won’t be able to run the game with canvas or without it ??! and thank you for your answer

The canvas depends on graphics.dll to udpdate and batch sprites…but it is still an I/O error…if we can figure out what actually belongs to that sector…worst case, boot to dos, run a ram sector test?..sometimes sectors of memory go bad…rarely…but…plausible.

Thanks for your interest , I have questions. What is the I/O error and if I copy everything and build another pc as I understand it can be work, right ? So this issue about pc. One more question , I haven’t run across this problem in my other games with canvas , why ? Sorry for my ignorance and again thanks a lot

Well…the error just says that…I think it is your pc security settings…But that would happen in the editor as well, so something is happening once your project is compiled…at this point, I am out of plausible scenarios.

If it happens on build, unity can not move the required components for canvas, because: a). It can not find them b). It does not have read write access to it… Like a UI material : assign default sprite material . default UI/Font material to all UI elements…

Most Likely your solution…(link above)
–>>> I searched this: unity 3d Access Violation (0xc0000005)

Patrick

This is just amazing . Problem solved. Edit > Project > Graphics and Always Included Shaders → Add UI/Default and UI/Default Font

Patrick I don’t how to thank to you. Thanks a lot