nuno / TiCollectionView

UICollectionView / GridView for Appcelerator Titanium
MIT License
111 stars 43 forks source link

Example crashes on Android 6.0.1 #62

Closed amigoni closed 7 years ago

amigoni commented 8 years ago
[INFO] :   {"sections":[{"bubbleParent":true,"items":[{"properties":{"height":360,"width":150,"id":"__alloyId13","backgroundColor":"red"},"es_info":{"text":"Manzana"},"info":{"text":"Apple"}},{"properties":{"height":360,"width":150,"id":"__alloyId14","backgroundColor":"green"},"es_info":{"text":"Banana"},"info":{"text":"Banana"}},{"properties":{"height":360,"width":150,"id":"__alloyId15","backgroundColor":"yellow"},"es_info":{"text":"Manzana"},"info":{"text":"Apple"}},{"properties":{"height":360,"width":150,"id":"__alloyId16","backgroundColor":"blue"},"es_info":{"text":"Banana"},"info":{"text":"Banana"}},{"properties":{"height":360,"width":150,"id":"__alloyId17","backgroundColor":"red"},"es_info":{"text":"Manzana"},"info":{"text":"Apple"}},{"properties":{"height":360,"width":150,"id":"__alloyId18","backgroundColor":"green"},"es_info":{"text":"Banana"},"info":{"text":"Banana"}},{"properties":{"height":360,"width":150,"id":"__alloyId19","backgroundColor":"yellow"},"es_info":{"text":"Manzana"},"info":{"text":"Apple"}},{"properties":{"height":360,"width":150,"id":"__alloyId20","backgroundColor":"blue"},"es_info":{"text":"Banana"},"info":{"text":"Banana"}},{"properties":{"height":360,"width":150,"id":"__alloyId21","backgroundColor":"red"},"es_info":{"text":"Manzana"},"info":{"text":"Apple"}},{"properties":{"height":360,"width":150,"id":"__alloyId22","backgroundColor":"green"},"es_info":{"text":"Banana"},"info":{"text":"Banana"}},{"properties":{"height":360,"width":150,"id":"__alloyId23","backgroundColor":"yellow"},"es_info":{"text":"Manzana"},"info":{"text":"Apple"}},{"properties":{"height":360,"width":150,"id":"__alloyId24","backgroundColor":"blue"},"es_info":{"text":"Banana"},"info":{"text":"Banana"}},{"properties":{"height":360,"width":150,"id":"__alloyId25","backgroundColor":"red"},"es_info":{"text":"Manzana"},"info":{"text":"Apple"}}],"footerTitle":null,"footerView":{"bubbleParent":true,"backgroundColor":"#EEE","enabled":true,"backgroundRepeat":false,"height":"size","children":[{"bubbleParent":true,"font":{"fontSize":12},"color":"#000","enabled":true,"backgroundRepeat":false,"height":"size","text":"Hello Footer","children":[],"rect":{"height":0,"width":0,"y":0,"x":0},"visible":true,"width":"size","size":{"height":0,"width":0,"y":0,"x":0},"keepScreenOn":false,"apiName":"Ti.UI.Label","id":"__alloyId28"}],"rect":{"height":0,"width":0,"y":0,"x":0},"visible":true,"size":{"height":0,"width":0,"y":0,"x":0},"keepScreenOn":false,"apiName":"Ti.UI.View","id":"__alloyId27","_children":[{"bubbleParent":true,"font":{"fontSize":12},"color":"#000","enabled":true,"backgroundRepeat":false,"height":"size","text":"Hello Footer","children":[],"rect":{"height":0,"width":0,"y":0,"x":0},"visible":true,"width":"size","size":{"height":0,"width":0,"y":0,"x":0},"keepScreenOn":false,"apiName":"Ti.UI.Label","id":"__alloyId28"}]},"headerTitle":null,"children":[],"rect":{"height":0,"width":0,"y":0,"x":0},"size":{"height":0,"width":0,"y":0,"x":0},"keepScreenOn":false,"headerView":{"bubbleParent":true,"backgroundColor"
[ERROR] :  TiApplication: (main) [288,288] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fluidshare.fluid/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Unable to convert null; Titanium 5.2.0,2016/02/20 08:05,384775e
[ERROR] :  TiApplication: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.fluidshare.fluid/org.appcelerator.titanium.TiActivity}: java.lang.NumberFormatException: Unable to convert null
[ERROR] :  TiApplication:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
[ERROR] :  TiApplication:   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
[ERROR] :  TiApplication:   at android.app.ActivityThread.-wrap11(ActivityThread.java)
[ERROR] :  TiApplication:   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
[ERROR] :  TiApplication:   at android.os.Handler.dispatchMessage(Handler.java:102)
[ERROR] :  TiApplication:   at android.os.Looper.loop(Looper.java:148)
[ERROR] :  TiApplication:   at android.app.ActivityThread.main(ActivityThread.java:5422)
[ERROR] :  TiApplication:   at java.lang.reflect.Method.invoke(Native Method)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
[ERROR] :  TiApplication:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
[ERROR] :  TiApplication: Caused by: java.lang.NumberFormatException: Unable to convert null
[ERROR] :  TiApplication:   at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:412)
[ERROR] :  TiApplication:   at de.marcelpociot.collectionview.CollectionView.<init>(CollectionView.java:345)
[ERROR] :  TiApplication:   at de.marcelpociot.collectionview.CollectionViewProxy.createView(CollectionViewProxy.java:62)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:492)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:516)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:500)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:478)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.handleAdd(TiViewProxy.java:679)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:573)
[ERROR] :  TiApplication:   at ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:253)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:524)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:638)
[ERROR] :  TiApplication:   at org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:18)
[ERROR] :  TiApplication:   at android.app.Activity.performCreate(Activity.java:6251)
[ERROR] :  TiApplication:   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
[ERROR] :  TiApplication:   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
[ERROR] :  TiApplication:   ... 9 more
hansemannn commented 7 years ago

@nuno related lines:

[ERROR] :  TiApplication:   at org.appcelerator.titanium.util.TiConvert.toInt(TiConvert.java:412)
[ERROR] :  TiApplication:   at de.marcelpociot.collectionview.CollectionView.<init>(CollectionView.java:345)
[ERROR] :  TiApplication:   at de.marcelpociot.collectionview.CollectionViewProxy.createView(CollectionViewProxy.java:62)

Probably some missing default (integer) value.

nuno commented 7 years ago

wondering if @AppWerft want join us on this module refactor :) @hansemannn

AppWerft commented 7 years ago

What do you think?

nuno commented 7 years ago

I do think android will need some features that @hansemannn just implemented today, I do like have your help if you have time and motivation of course.

AppWerft commented 7 years ago

Currently I'm in stress to finish other projects

Am 19.04.17 um 18:07 schrieb Nuno Costa:

I do think android will need some features that @hansemannn https://github.com/hansemannn just implemented today, I do like have your help if you have time and motivation of course.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nuno/TiCollectionView/issues/62#issuecomment-295325455, or mute the thread https://github.com/notifications/unsubscribe-auth/AC24DZKrVO54ylCDjZMDUl6ZNU-vSBFiks5rxjE3gaJpZM4I33Re.

-- Dipl.-Ing. Rainer Schleevoigt Certified TYPO3 Integrator Certified Titanium App Developer

Novalisweg 10

22303 Hamburg ℡ 040 60812460 |Ust-ID: DE239491976|||||||

MahmoudElmoghazy commented 7 years ago

@amigoni Sorry i wont to ask where is the module for Android 6.0.1 can u help plz :)

nuno commented 7 years ago

Not sure if someone already build one for sdk 6+ . Sorry

MahmoudElmoghazy commented 7 years ago

@nuno Is there any updates for fixing this issue and new module for android 6 plz i need to use but i can't can u help plz :)