Spinner Crash

tufanv

Expert
Licensed User
Longtime User
Hello,

I have a strange problem. My spinner was working perfectly till yesterday, now each time i click on the spinner to see the items, the app crashes ( as soon as i click the orange button press color stands still and than the screens resoultion is changing or zooming into app what looks awful and than it says the app stopped working)

The strange thing is i did not change any code , i was just testing my app on myphone.

Any ideas ?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
See the Logs tab:
SS-2013-07-16_09.18.10.png
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
It gives an "Out of Memory " error. There is no complicated codes and it used to work without anyproblem. I cant understand why it gives out of memory now :(

B4X:
GC_CONCURRENT freed 398K, 14% free 12238K/14151K, paused 9ms+3ms, total 36ms
Installing file.
GC_CONCURRENT freed 380K, 14% free 12253K/14151K, paused 15ms+7ms, total 64ms
GC_CONCURRENT freed 386K, 14% free 12253K/14151K, paused 12ms+2ms, total 28ms
GC_CONCURRENT freed 394K, 14% free 12253K/14151K, paused 7ms+3ms, total 56ms
GC_CONCURRENT freed 402K, 14% free 12253K/14151K, paused 18ms+3ms, total 73ms
GC_CONCURRENT freed 386K, 14% free 12253K/14151K, paused 12ms+1ms, total 22ms
GC_CONCURRENT freed 395K, 14% free 12245K/14151K, paused 10ms+3ms, total 45ms
GC_CONCURRENT freed 394K, 14% free 12253K/14151K, paused 13ms+3ms, total 36ms
GC_CONCURRENT freed 410K, 14% free 12253K/14151K, paused 14ms+6ms, total 58ms
GC_CONCURRENT freed 402K, 14% free 12245K/14151K, paused 15ms+4ms, total 50ms
GC_CONCURRENT freed 386K, 14% free 12253K/14151K, paused 18ms+2ms, total 45ms
PackageAdded: package:ct.airlineboss
** Activity (main) Create, isFirst = true **
Downsampling image due to lack of memory.
Downsampling image due to lack of memory: 4
** Activity (main) Resume **
main_table1_cellclick (B4A line: 261)
Msgbox("hello","hi")
[B]java.lang.OutOfMemoryError[/B]
   at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
   at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:623)
   at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:476)
   at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:781)
   at android.content.res.Resources.loadDrawable(Resources.java:1963)
   at android.content.res.Resources.getDrawable(Resources.java:672)
   at android.view.View.setBackgroundResource(View.java:14488)
   at com.android.internal.app.AlertController.setBackground(AlertController.java:685)
   at com.android.internal.app.AlertController.setupView(AlertController.java:430)
   at com.android.internal.app.AlertController.installContent(AlertController.java:242)
   at android.app.AlertDialog.onCreate(AlertDialog.java:336)
   at android.app.Dialog.dispatchOnCreate(Dialog.java:351)
   at android.app.Dialog.show(Dialog.java:256)
   at anywheresoftware.b4a.Msgbox.msgbox(Msgbox.java:135)
   at anywheresoftware.b4a.keywords.Common.Msgbox2(Common.java:429)
   at anywheresoftware.b4a.keywords.Common.Msgbox(Common.java:396)
   at ct.airlineboss.main._table1_cellclick(main.java:1248)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
   at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:834)
   at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:799)
   at ct.airlineboss.table._cell_click(table.java:177)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
   at anywheresoftware.b4a.BA.raiseEvent(BA.java:153)
   at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:63)
   at android.view.View.performClick(View.java:4223)
   at android.view.View$PerformClick.run(View.java:17275)
   at android.os.Handler.handleCallback(Handler.java:615)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:137)
   at android.app.ActivityThread.main(ActivityThread.java:4898)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
   at dalvik.system.NativeStart.main(Native Method)
GC_CONCURRENT freed 395K, 14% free 12242K/14151K, paused 13ms+2ms, total 58ms
 
Upvote 0
Top