deleytos

unread,
Aug 19, 2015, 11:07:54 AM8/19/15
to mitappinv...@googlegroups.com
Buenas tardes,
Todo esto paso de un día a otro, y no se modifico nada del código.
Al compilar falla la aplicación y no muestra los margenes. Ademas me muestra el error de que la aplicación se ha detenido

un saludo, gracias,

Italo

unread,
Aug 19, 2015, 11:12:07 AM8/19/15
to MIT App Inventor Forum
Hay muchos usuarios que tienen el mismo problema. Ya usaste el buscador de este foro?
There's a lot of people going thru the same problem, did you search in this forum firsts?

Italo

unread,
Aug 19, 2015, 11:28:17 AM8/19/15
to MIT App Inventor Forum
User replied by email:

Gracias por responder tan pronto,
La verdad es que ando bastante perdido, me podrías ayudar para poder encontrar una solución.
Muchas gracias de ante mano

Italo

unread,
Aug 19, 2015, 11:32:00 AM8/19/15
to MIT App Inventor Forum
El problema que mas se presenta en los casos similares al tuyo es el tamaño de las imagenes, por favor chquea primero que tus imagenes no son demasiado grandes. O que no tienes muchas pantallas (screens). Si tienes mas de 10, AI2 se vuelve inestable y ocasiona errores.

Most of the people reporting problems like yours is due to the large size of the images uploaded to their app or the amount of these images. Also some of them have more than 10 screens, which turns AI2 unstable.

deleytos

unread,
Aug 19, 2015, 11:32:08 AM8/19/15
to MIT App Inventor Forum
Perdona Italo por responder por Mail, es que ando un poco perdido y ademas me juego mucho porque estoy diseñando mi proyecto fin de carrera con esta aplicación.
Agradecería cualquier ayuda.

Muchas gracias,

Italo

unread,
Aug 19, 2015, 11:45:15 AM8/19/15
to MIT App Inventor Forum
No hay problema, para empezar chequea el tamaños de tus imagenes y la cantidad de pantallas de tu app. O sube tu archivo aia para que pueda verlo.
No problem. Please check first the size of your images and the amount of screens you have in your app. Or upload your aia file to take a look at it.

Ismael Acien

unread,
Aug 19, 2015, 12:06:57 PM8/19/15
to MIT App Inventor Forum
Este problema lo tengo desde ayer y no he modificado nada. La apk no supera los 4mb pero leyendo lo que aquí se dice, he reducido las imágenes y sigue igual. Por multiples pantallas no hay error ya que tengo aplicaciones con mas de 20 y no dan problemas. He descubierto que si la aplicación empieza bien, al guardar en base de datos se vuelve inestable y ya no hay manera de recuperar la app y hay que desinstalarla.

Viendo que es fallo de muchos y reciente, me inclino a pensar que proviene de la ultima actualización de app inventor 2, espero se arregle.

Italo

unread,
Aug 19, 2015, 12:31:43 PM8/19/15
to MIT App Inventor Forum
Estan trabajando para solucionar el problema, pero hay algunas cosas que se pueden hacer para prevenir este y futuros errores.
Si viste la advertencia al agregar mas pantallas despues de la decima, dice que no se recomienda agregar mas de 10. Los programadores la pusieron porque saben que va a causar problemas a largo o corto plazo tener tantas.
El problema es que la nueva version de AI2, incluye mas codigo, y ese codigo ocupa mas memoria de tu telefono/tableta y esta vez la actualizacion fue bastante grande.
Si tienes varias apps corriendo al mismo tiempo en tu telefono/tableta que siempre estan en memoria aunque no las estes usando, te daras cuenta de que pronto llegaras al limite de tu dispositivo y el error se produce.
Cada pantalla cuenta como una app separada, es por eso que ocupan tanta memoria y porque se recomienda no tener mas de 10.

The developers are working to fix these issues, but there's some things we can do to avoid this and future errors like this one.
If you saw the warning on the dialog box when you added your 11th screen, you must remember that it says that it's not recommended to have more than 10. The developers warned you for a reason that in short or long term will cause your app to cause errors.
The problem with the new release is that it includes more code in your app and that extra code uses memory. And this time the update was big.
So, you always have several apps running on your device, even if you are not using them. All of them using memory too. That's how you quickly reach the limit of your device and errors start to show up.
Each screen of your AI2 app counts as a separate app, that's why it's not recommended to have more than 10.

Ismael Acien

unread,
Aug 19, 2015, 12:43:00 PM8/19/15
to MIT App Inventor Forum
Espero se solucione y que haya sido un mal sueño, a esperar. Gracias por la pronta respuesta.

Ismael Acien

unread,
Aug 19, 2015, 4:11:33 PM8/19/15
to MIT App Inventor Forum
Este ejemplo ya da fallo.

fallo.png

Italo

unread,
Aug 19, 2015, 6:26:11 PM8/19/15
to MIT App Inventor Forum
Podrias enviar el archivo aia por favor. Los bloques se ven bien, pero seria mejor poder ver todo.
Can you please send the aia file. The blocks look good but it will be better to see the whole thing.

Ismael Acien

unread,
Aug 19, 2015, 6:35:17 PM8/19/15
to MIT App Inventor Forum
Espero descubras algo.
UndoRedo2.aia

Italo

unread,
Aug 19, 2015, 6:54:31 PM8/19/15
to MIT App Inventor Forum
Probe tu app y creo que hace lo que se supone que debe hacer. En el canvas con una imagen de fondo, aparecen circulos rojos cuando lo toco. Si presiono SAVE, se graba la pantalla. sigo dibujando. Si presiono IMAGEN SAVE, reaparece la ultima pantalla que grabe con SAVE.
Lo hice muchas veces y no dio ningun error.
¿Cuando aparece el error? O sea ¿haciendo que?

I tried your app and I believe it does what's supposed to do. On the canvas, you set a background image, and when I touch on it, red circles appear. If I press SAVE, the screen is saved. I keep adding circles and if I press IMAGEN SAVE, the last screen I saved appears. I did it many times and there wasn't any errors.
When did the error happened? Doing what?

Ismael Acien

unread,
Aug 19, 2015, 6:59:12 PM8/19/15
to MIT App Inventor Forum
Sal de la aplicacion y entra de nuevo, el fallo salta clicando en recuperar la imagen guardada y cuando aparece el mensaje la app entra en fallo continuo.

Ismael Acien

unread,
Aug 19, 2015, 7:06:30 PM8/19/15
to MIT App Inventor Forum
Clica varias veces en recuperar imagen.

Ismael Acien

unread,
Aug 19, 2015, 7:37:54 PM8/19/15
to MIT App Inventor Forum
Screenshot_2015-08-20-01-31-25.png

Italo

unread,
Aug 19, 2015, 7:54:41 PM8/19/15
to mitappinv...@googlegroups.com
Mira, cerré la aplicacion, la abri nuevamente varias veces y toco "IMAGEN SAVE" y la ultima pantalla aparece, sin ningun error.
Tu lo estas haciendo con el Companion o con el APK? Lo probaste en otro telefono/tablet? Chequea cuanta memoria libre tiene tu telefono y cuanto espacio disponible en el SD card te queda.

Look, I closed the app, I opened it back many times and when I click "IMAGEN SAVE" the last screen saved appears without any errors.
Are you doing it on the Companion app or in the apk? Did you try a different device? Check how much free memory you have and how much space you have left on your storage/sd card.

Ismael Acien

unread,
Aug 19, 2015, 8:04:32 PM8/19/15
to mitappinv...@googlegroups.com
Cargo el apk al movil mediante usb, tambien via wifi.

Tengo 7.5G libres de 16 y memoria
En el adjunto se ve. Nunca me ha pasado esto desde esta actualizacion.
Screenshot_2015-08-20-01-59-25.png

Ismael Acien

unread,
Aug 20, 2015, 2:49:53 AM8/20/15
to MIT App Inventor Forum
El ejemplo es sencillo, no es una app de multiples pantallas ni con imágenes grandes y no tendría que dar fallo como se está diciendo, posiblemente en tablets no de fallo. Cuando me la baje un día de app inventor 2 y no se produzca fallo sabré que el problema esta resuelto.

Ismael Acien

unread,
Aug 20, 2015, 5:16:36 AM8/20/15
to MIT App Inventor Forum
Haciendo pruebas he conseguido que no de fallos y es colocando en el botón de recuperar la imagen, el alto y el ancho original de la imagen. Pero vamos, si ha de ser así para que no de error sera complicado trabajar con imágenes.

Italo

unread,
Aug 20, 2015, 11:42:29 AM8/20/15
to MIT App Inventor Forum
Se esta trabajando para solucionar estos problemas. Por favor pruebalo en otro dispositivo. En el mio no dio error en ningun momento.

Developers are working to fix these problems. Please test it on a different device. On my device, it didn't have any error.

Italo

unread,
Aug 20, 2015, 4:04:57 PM8/20/15
to MIT App Inventor Forum
Por favor chequea este post. Hay una version de prueba que ha sido mejorada para solucionar el problema de memoria. Puede o no funcionar, no es final todavia.
Please check this post. There's a test version that addresses the memory problem. It may or my not work, it's not final.


https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/mitappinventortest/cmkJ1rtPg8s/HC8_l7D_DQAJ

Ismael Acien

unread,
Aug 20, 2015, 5:22:54 PM8/20/15
to mitappinv...@googlegroups.com

"He probado la cámara y tampoco da fallo, y ya que estamos de pruebas, tengo un reloj que no va lo rápido que iva, tengo el Timeinterval a 10."

Lo he probado y en un principio no me ha dado fallo aunque el comportamiento de las imagen en canvas que una vez guardado, en el rescate de la imagen varia su dimensión, pero supongo que se puede corregir, hay que poner el alto y el ancho de la imagen original a recuperar, es preferible esto a lo otro. Enhorabuena.
Reply all
Reply to author
Forward
0 new messages