I've made quite a few programs on here and the emulator will run those perfectly. Is it possible that a programs blocks can be so long that it will not load on the emulator? It's not completely loading the screen.
notes = Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.77.4 (KHTML, like Gecko) Version/7.0.5 Safari/537.77.4
foundIn = nb138
faultData = com.google.gwt.core.client.JavaScriptException: (AssertionError) stack: messagePattern: Assertion failed: Uninitialized block cannot be renderedDown. Call block.initSvg() line: 135 sourceURL: http://ai2.appinventor.mit.edu/blockly-all.js constructor: function (a, b) {b.unshift(a);goog.debug.Error.call(this,goog.string.subs.apply(null,b));b.shift();this.messagePattern=a;}: Assertion failed: Uninitialized block cannot be renderedDown. Call block.initSvg()
projectId = 4715761748672512
It's not loading my blocks now..
One of the following probably applies to your code (all may not apply to your code):
1) You have coding errors in your blocks. In the Blocks editor, look in the lower
left for the yellow and red triangle icons. If the red icon has a value larger than 0,
you have a serious coding error. Find the block in your code that has a red triangle and
fix it. Red triangles always inhibit creating an apk or running a project in the
emulator or possibly creating an aia file. Yellow triangles are more forgiving,
however, sometimes, these need to be fixed because they trip an internal warning and
you do not get a compile, so fix the yellow triangles too.
2) Your source file (the aia file) is larger than the 5Mb limit allowed in AI2 or you
put images or other resources in your Media (resources) that you do not use in the app.
All the images and sounds in resources count toward the 5Mb limit. You can program
apps larger than 5Mb in the browser, but they will not compile and might not run in the
emulator or the project may not save as an aia. If this is the case you need to reduce
the size of your image and/or sound files. Most image files can be made quite small
by resizing them using a photo manipulation program on your PC to less than 50Kb each.
3) You might have more than 10 Screens in your app. AI2 becomes unstable when more
than ten screens are used.
4) You might have set a Screen icon for your project that is too large. Use an image
sizeof 48x48 px or 96x96px instead and only use jpg or png images. *.ico files are not
supported.
5) You did not code the entire project using App Inventor 2. If you used one of the
third-party AI2 clones,you might not be able to load a Project into the AI2 compiler or
create an apk with the standard AI2.
6) If you incorrectly modified the project's Manifest files, you may have issues.
7) Sometimes, if you have LOTS of Layouts on a single screen, the apk might not
compile.
8) or the network you are using is overloaded (possibly a school network), or you have other applications running in the background, or your virus checker is doing a scan. Sometimes, just trying a few minutes later will give you a more favorable response.
9) if you have BlueStacks on your home PC. The emulator on AI2 cannot run unless BlueStacks is disabled and all of its processes are shut down.
You need to tell us more about your problem in order for us to help if none of the above conditions is what is causing your problem.
Be aware, the more images, layouts, components you have on a screen, the longer it takes for the emulator to render the graphical screen. How fast the emulator renders is partially a function of your hardware...how much ram you have, your cpu clock speed etc. Can you develop live using WIFI or using USB? These options almost always render faster than the emulator.
Were you able to export the aia? If not what did you try and what happened?
Well, I'm pretty sure the file has been corrupted or something. I can't even view the blocks any more, it pops up with an error saying it can't load the blocks screen correctly and that it will not be saved. I downloaded the .aia, it saved as 41.9 KB. I don't even know if it's saving correctly. My images are pretty small files they wouldn't be the reason for the oversize. I've tried opening it on different computers and I get the same error. I'm not using bluestacks either. I currently only have 1 screen in my app. I don't have any set icons. I've coded the whole project using AI2. I need to recover these blocks, it was very important and took quite a long time.
Sorry your issues. You mean you did not previously save an aia or save the Project with a different name on the MIT server (Projects > Save project as... ?
Can your project be recovered? Perhaps, perhaps not? The person who sometimes does recoveries is very busy right now on a new update to AI2. Also, it is the weekend and imagine he is enjoying his time off. Please post the name of your project here. I imagine someone will look at post here if they can recover your project; however it is best if you recover from a previous aia.
Be aware, you project might not be recoverable. What were you doing when you lost the project? Knowing what you were doing immediately before you seem to have corrupted your blocks will help MIT to try to provide safeguards, if possible, to prevent this issue on your and other user's projects.
Provide the name of the project. I will put a note to the developers there is another lost soul.
I did not previously save an .aia I was "in the zone". Although, I did click "Save" on the project. Before this whole thing happened. The projects name is saved as "hangman". I was connecting the emulator and trying to pull the app up, but the designer page was not downloading properly. So, I closed the emulator, saved the project, and then closed my web browser to open a new window to try again. When I got back on the website and opened the project it started giving me the error about the blocks not being able to load properly.
bump
Instant... "In the zone" is no excuse! Actually, "in the zone" means you're paying attention to all of the details...
If you have saved the project, most likely, the project MIT will get back for you is the one you've saved. If you know the exact date and time when the project was OK, that might help. See the tips below, especially the part about AIA files...
I was fully paying attention to all the details. That's exactly why I had remembered to save it. Don't gotta be all cynical. November 15th, around 2 A.M. is your answer.
Wasn't being cynical... was that the last time you saved it when it was OK? Any saves after that may negate the good one, although I'm not positive. Right now, the guy that can get it back is involved iin the next update to AI, and he probably won't jump on this for several days. Have you made a lot of changes to the project since it got corrupted?
I'll take a look into this early this afternoon. Hopefully I'll be able to repair any corruption so your project will load. I'll post an update here after I'm done.
I was able to download your blocks file and examine it. It contained numerous single character errors, which I was able to correct, at least to the point where the project will load.
HOWEVER. The errors are strongly indicative of memory errors on your computer. Whichever computer you last successfully saved the project on likely is the source of the corruption. Can you send us details about that computer, things like how old it is, the manufacturer and how much memory it has?
You should also run hardware diagnostic programs on it, particularly memory diagnostics.
Please also don't forget to tell us the Operating System you're using, how you're accessing the internet (wired/wireless) etc.
댓글 없음:
댓글 쓰기