derrell / App-Inventor-Gallery

App Inventor Gallery
20 stars 17 forks source link

BUG - App Hangs When Trying to Upload New Application #183

Open cpuwhiz11 opened 13 years ago

cpuwhiz11 commented 13 years ago

Summary: Application hangs when trying to upload a new application, having failed to provide a .zip or .apk.

Test System: Windows 7 / Ubuntu 11.04 Firefox 8.0

Steps to Replicate:

  1. Go to the "My Stuff" tab.
  2. Click "Add Application"
  3. Provide a name, description, picture, and category, do not upload a .zip or .apk.
  4. Click "ok".

Expected Result: Application will pop an alert that no .zip or .apk has been provided.

Actual Result: Application seems to hang, only indication is a hourglass or such indicating the system is busy. On Windows the application seems to remain stuck in this state (clicking cancel will not work and the page must be restarted). On Ubuntu after some time an error alert will popup:

"Async (undefined) exception : Local error 1 : Local time out expired for addOrEditApp"

After clicking to acknowledge alert "Add Application Window" can be canceled out of.

Bug Severity: P3: Moderate Affect to User Experience

derrell commented 13 years ago

@paulsena since you have the emulator set up, would you test this in both the in-browser simulator and with the App Engine emulator to see if the results differ. It should give an error if no source zip file is provided. (The apk file is optional.)

paulsena commented 13 years ago

Tested this in the appengine emulator and on the appspot.com site. I received the expected msgbox stating the source file is missing (also states apk is required, which is incorrect). However I have received the same application window hang described here before. I can't currently reproduce it, but I believe it was after uploading an image. The image upload seemed to fail as the thumbnail preview didn't display after selecting the image, and the add application form was hanging.

Test System: OSX Lion Firefox 8.0, Chrome 15

Screenshot of expected msgbox behavior: http://i43.tinypic.com/1z1saj8.png

paulsena commented 13 years ago

I am now able to reproduce this consistently.
This occurs when testing the site from the local filesystem. After selecting an image, the thumbnail is never displayed, and the dialog window hangs, unable to click anything. I am only experiencing this in Chrome and not Firefox, on OSX 10.7 Lion.

@cpuwhiz11 , can you please verify if you were testing from your local filesystem and not the app-inventor-gallery.appspot.com site? Also, what browser were you using, and is it consistently reproducible for you as well?

Thanks