Coşkun Kozakbaş

unread,
Aug 5, 2016, 2:29:59 AM8/5/16
to MIT App Inventor Forum
Hello guys,


      Runtime Error
width and height must be > 0

I see this error I don't know why. All blocks was disabled but nothing changed. Do you guys have idea about it? Where do I have to change?

Thanks,
Coskun.

Peter Mathijssen

unread,
Aug 5, 2016, 2:46:47 AM8/5/16
to mitappinv...@googlegroups.com
Hi,

I had this yesterday also. Was playing with images and canvas. I got the error when i wanted to save an invisible canvas and then share the image, because when i made it visible again the error didn't show. Just tested it again and the same error appears in the companion app. 

So saving an invisible canvas gives the error and saving a visible canvas not.

I attached a small test .aia file. in the designer you have to make the canvas invisible and visible for the error to show.




testerror.aia

Coşkun Kozakbaş

unread,
Aug 5, 2016, 3:41:20 AM8/5/16
to MIT App Inventor Forum
I have solved!

On the Design Screen: Canvas Visible
On the Blocks Screen I just made the blocks on the picture. In my opinion it's a smart hack :) Hope it works on your app.

Peter Mathijssen

unread,
Aug 5, 2016, 3:55:06 AM8/5/16
to MIT App Inventor Forum
Good work, thought about that but didn't test it. 
Somewhere in my mind i think i read about it in this forum. But still to me it's a bug if you have to do this to resolve it.


Peter Mathijssen

unread,
Aug 5, 2016, 4:16:33 AM8/5/16
to MIT App Inventor Forum

Valerio C

unread,
Jul 26, 2019, 5:48:55 AM7/26/19
to MIT App Inventor Forum
sorry if it's an answer to an old post, but this saved me! thanks :)
Reply all
Reply to author
Forward
0 new messages