OK, I’m stumped. I had a game with a canvas, a stage, and a bunch of sprites. Everything looked good. Then suddenly the stage stopped appearing. I tried deleting and reinstalling Thunkable Live.
I added a new canvas. That one shows up fine. I painstakingly copied parameters from the new working one to the old broken one. Still not working. I added a new stage in the broken canvas. Still broken.
A border on the canvas shows up (and is correctly sized), but a background/frame on the stage does not. It’s like the stage isn’t loading??
Any hints or debug suggestions? If I delete the broken canvas, will I lose the sprites?
Updated: When I try to delete the canvas, my browser screen goes blank. ARGH.
OK, further weirdness: It also loads if I preview as responsive webapp.
Thought it was maybe my phone, so I tried on my iPad. Nope.
Made a minimalist project (screen with background, one sprite) - doesn’t appear on ipad or iphone, latest thunkable live.
I think this bug May have to do with the screen being scrollable, but I get the same behavior in my app without the screen being scrollable, so there must be a second bug.
I’m closing my thunkable windows for the day. I was really happy with where I’d gotten to, and now it looks like I’m doing a total rebuild. Luckily, most of the work was graphic design stuff, but I’m going to have to re-enter a huge pile of sprite locations and sizes.
@catsarisky and I have been discussing this on Intercom. I couldn’t see this behavior (ie the Stage looked normal to me) on my staff account, but I can see this behavior (ie cannot see the Stage) on my non-staff account.
I tried an asset fix on this project, and now I can see the Stage background even on my non-staff account.
@jane , I checked all eight copies of this broken app (because I wasn’t certain which one you were viewing) and all are still broken for me. Have sent you a link to a specific one (wondering if you fixed a copy link?) - hoping that’ll get it!
So my app is still broken (all copies, but just my app), but while trying to reproduce the bug, I found a new bug.
To reproduce:
Add a canvas. Set the screen to landscape. Load an image for the stage background. Mine is 2732 px wide and 1054 high. (This may or may not be relevant.)
Test (Live test, I’m using older iPhone and iPad.) Canvas/stage appears, but pretty small.
Change to 600, 1500. Test. Looks great on both. Oh but wait, newer phones have more pixels than my devices do.
Change to 800, 2000. Test. Both of my devices now show a white screen.
Back to 600, 1500. Looks great.
Would a few folks be willing to test this? I’m interested to know:
What you’re testing on
Do you see the same breakage with the stage set to 800px high and 2000px wide?
What does 600px high and 1500 px wide look like on your device? Is the stage image using the full screen width?
Since we’re discussing this on Intercom, I won’t carry out a whole parallel conversation here!
This behavior seems to affect the whole Canvas, not just certain background images. Unlike lukehoogenboom0i, I can’t even set the background color of a Stage in your project and see that background color when I test your project on a device.
I know it’s not a general issue with the Canvas, because I can build apps with a Canvas on staff and non-staff accounts and they behave as expected. If all of the projects you have shared so far are copies of each other, then this behavior may be project-level, but the bug is being copied over to each version of the project.
If you build a brand new project with a Canvas, and let me know if you can see that Canvas, that would help us identify if the issue is with the original project or if it’s on a larger scale. As I mentioned on Intercom, a Canvas with one Stage, with a background color, no assets and no blocks, would be a good minimal app to test this out.
To anyone else reading this, if you think you are seeing the same behavior (Stage does not appear at all, not even the background color, not even the background picture), please leave a comment!
Jane, if you see my post from yesterday, I’ve got a bug in a fresh build, although only muneer reports trying it and it doesn’t reproduce on Android.
I’ve now rebuilt the project that seemed bugged and it is working ok. It didn’t seem like we were going to get a fast resolution on it. I’m being more careful about making backups, in case it happens again!
I can see that you made a fresh build with the same background image. I would be interested in seeing if you can view the Canvas of a project where you have only set the background color of a Stage, with no assets uploaded to the project, and no blocks in the project.
If you were able to rebuild a project then the issue isn’t account-level. This is great! Could you send me the URL of the original project with a Canvas that didn’t display for you? I still want to see if we can identify the root cause, but I want to make sure I’m not looking at a copy. Thanks!
That’s what I get, too, @muneer. The 5s and SE (2016) are the same shape/pixels, so that doesn’t surprise me. Interested to see what folks with something big (X?) get.