[SOLVED] Game Stopped Working

Hey all, I have a weird question. I have been working on a game but I wanted to export it to a different url. So I bought an organization account and transferred ownership. I don’t think I’ve changed anything else. Now when I hit play on the game to try and debug/change some things, the game gets stuck on my AR loading screen with the console saying this:

TypeError: Attempted to assign to readonly property.
Image Dimensions larger than max supported texture size of 4096. Resizing from 4096, 8192 to 2048, 4096.

Not sure why this is happening. It says the type error is coming from playcanvas-stable.dbg.js:50109

Anyone got any ideas? It doesn’t cause this error when I publish the game.

When you publish the game, some logs from the engine are suppressed which is why you don’t see it.

Could you give one of the PlayCanvas team read only access to the project please? My username is ‘yaustar’

I sent it. Just to be clear, whatever error that locks up the game from working only appears when I am trying to play the game by hitting the play error in the editor. The game does not lock up whenever I publish it or bring the game to a different url. I have no idea why. Thanks so much for the help.

Oh, and it only works on a smartphone. Should’ve mentioned that my bad.

How do you reproduce the error? When I try to run it, I just get a spinning circle?

That is the error. And then I get what I listed above in the console log over and over and over. But in the published version (which is the same code) doesn’t get that error. Here is the published one for comparison. https://playcanv.as/p/CPn46wKU/

Hmm… That’s interesting. We did just release a big change to the engine that could of affected this :thinking:

For the moment (so you can carry on development) use the following URL which uses the same engine build as the published version and I will take a look in the morning: https://launch.playcanvas.com/931257?use_local_engine=https://code.playcanvas.com/playcanvas-1.29.0.min.js

This is very strange. So it works with a minified release1.29.0 engine but not the unminified release 1.29.0 engine. It would be good to know if mobile safari is emitting any JS console warnings/errors when it hangs. (I have a PC so I can’t check that)

This PR will fix this issue: https://github.com/playcanvas/engine/pull/2205

Thank yall so much for the help. Yall’s responsiveness on these forums is really impressive. Keep it up.

2 Likes

A post was split to a new topic: My game is not working