Android Select Option fail/crash


#1

I have a Android problem, if I tab on a select with options, then my app crash .
Android-Device: Samsung Galaxy S4 with Android 4.4.2
And lastes Ionic-Version (beta 11)

Here my Code

<label class="item item-input item-select">
<div class="input-label">
	Product
</div>
<select ng-model="productList" ng-init="productList = products[1]" ng-change="update(item)"
	ng-options="product as product.label for product in products">
</select>
</label>

#2

Really need Help. On iOS no Problems
PUSH


#3

Try to init your select when your app is ready because if you don’t have data in $scope.products, the problem may be that.


#4

the scope exists. Only on Android i have the problem on iOS i have no problems :S
And i have try without ng-init, but the problem stay :frowning:

And i try normal Select with option without Ionic or Angular. Same problem


#5

Have you tried it in this format?

<select ng-model="productList" ng-change="update(item)"
    <option ng-repeat"*whatever*">{{*what you want user to see*}} </option> 
</select>

This is what I’ve been doing

<select id="serialselect" ng-model="serialSelected" ng-change="gotoSerialInfo(serialSelected)">
    <option ng-repeat="serial in serials | filter:formData.snQuery" value="{{serial.applicator_serial_number}}">{{serial.applicator_serial_number}}</option>
</select>

#6

Dont work :S

On the phone from my friend dont crash the app (Nexus 4)

And i try a normal Select

<select>
    <option>test test</option>
</select>

#7

Can you describe when it crashes again?

I have an S4 running 4.4.2 as well and I have had no problems with my app crashing. Maybe it could be something other than the select. Any debug or crash reports?


#8

How i can see the crash report?

I tap on the select then the app crash immediately.
This is form the LogCat

D/AbsListView(18304): unregisterIRListener() is called 
W/ResourceType(18304): No package identifier when getting value for resource number 0x00000000
D/AndroidRuntime(18304): Shutting down VM
W/dalvikvm(18304): threadid=1: thread exiting with uncaught exception (group=0x418fada0)
E/AndroidRuntime(18304): FATAL EXCEPTION: main
E/AndroidRuntime(18304): Process: com.ionicframework.myappsolkane826419, PID: 18304
E/AndroidRuntime(18304): android.content.res.Resources$NotFoundException: Resource ID #0x0
E/AndroidRuntime(18304): 	at android.content.res.Resources.getValue(Resources.java:2009)
E/AndroidRuntime(18304): 	at android.content.res.Resources.loadXmlResourceParser(Resources.java:3226)
E/AndroidRuntime(18304): 	at android.content.res.Resources.getLayout(Resources.java:1825)
E/AndroidRuntime(18304): 	at android.content.res.XResources.getLayout(XResources.java:596)
E/AndroidRuntime(18304): 	at android.view.LayoutInflater.inflate(LayoutInflater.java)
E/AndroidRuntime(18304): 	at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java)
E/AndroidRuntime(18304): 	at android.widget.ArrayAdapter.getView(ArrayAdapter.java)
E/AndroidRuntime(18304): 	at com.android.org.chromium.content.browser.input.SelectPopupDialog$SelectPopupArrayAdapter.getView(SelectPopupDialog.java:80)
E/AndroidRuntime(18304): 	at android.widget.AbsListView.obtainView(AbsListView.java)
E/AndroidRuntime(18304): 	at android.widget.ListView.measureHeightOfChildren(ListView.java)
E/AndroidRuntime(18304): 	at android.widget.ListView.onMeasure(ListView.java)
E/AndroidRuntime(18304): 	at android.view.View.measure(View.java)
E/AndroidRuntime(18304): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
E/AndroidRuntime(18304): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java)
E/AndroidRuntime(18304): 	at android.view.View.measure(View.java)
E/AndroidRuntime(18304): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
E/AndroidRuntime(18304): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java)
E/AndroidRuntime(18304): 	at android.view.View.measure(View.java)
E/AndroidRuntime(18304): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
E/AndroidRuntime(18304): 	at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java)
E/AndroidRuntime(18304): 	at android.widget.LinearLayout.measureVertical(LinearLayout.java)
E/AndroidRuntime(18304): 	at android.widget.LinearLayout.onMeasure(LinearLayout.java)
E/AndroidRuntime(18304): 	at android.view.View.measure(View.java)
E/AndroidRuntime(18304): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
E/AndroidRuntime(18304): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java)
E/AndroidRuntime(18304): 	at android.view.View.measure(View.java)
E/AndroidRuntime(18304): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
E/AndroidRuntime(18304): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java)
E/AndroidRuntime(18304): 	at android.view.View.measure(View.java)
E/AndroidRuntime(18304): 	at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java)
E/AndroidRuntime(18304): 	at android.widget.FrameLayout.onMeasure(FrameLayout.java)
E/AndroidRuntime(18304): 	at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2533)
E/AndroidRuntime(18304): 	at android.view.View.measure(View.java)
E/AndroidRuntime(18304): 	at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java)
E/AndroidRuntime(18304): 	at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java)
E/AndroidRuntime(18304): 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java)
E/AndroidRuntime(18304): 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java)
E/AndroidRuntime(18304): 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java)
E/AndroidRuntime(18304): 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java)
E/AndroidRuntime(18304): 	at android.view.Choreographer.doCallbacks(Choreographer.java)
E/AndroidRuntime(18304): 	at android.view.Choreographer.doFrame(Choreographer.java)
E/AndroidRuntime(18304): 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java)
E/AndroidRuntime(18304): 	at android.os.Handler.handleCallback(Handler.java)
E/AndroidRuntime(18304): 	at android.os.Handler.dispatchMessage(Handler.java)
E/AndroidRuntime(18304): 	at android.os.Looper.loop(Looper.java)
E/AndroidRuntime(18304): 	at android.app.ActivityThread.main(ActivityThread.java:5356)
E/AndroidRuntime(18304): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18304): 	at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(18304): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
E/AndroidRuntime(18304): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
E/AndroidRuntime(18304): 	at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
E/AndroidRuntime(18304): 	at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 1035):   Force finishing activity com.ionicframework.myappsolkane826419/.myAppSolkane
W/ContextImpl( 1035): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1479 com.android.server.am.ActivityStack.startPausingLocked:1006 com.android.server.am.ActivityStack.finishActivityLocked:3162 com.android.server.am.ActivityStack.finishTopRunningActivityLocked:3005 com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked:3097 
D/CrashAnrDetector( 1035): processName: com.ionicframework.myappsolkane826419
D/CrashAnrDetector( 1035): broadcastEvent : com.ionicframework.myappsolkane826419 data_app_crash
W/ApplicationPackageManager( 1035): getCSCPackageItemText()
V/SmartFaceService - 3rd party pause( 1035): onReceive [android.intent.action.ACTIVITY_STATE/com.ionicframework.myappsolkane826419/pause]
W/ContextImpl( 1035): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1479 com.android.server.analytics.data.collection.application.CrashAnrDetector.broadcastEvent:296 com.android.server.analytics.data.collection.application.CrashAnrDetector.processDropBoxEntry:254 com.android.server.analytics.data.collection.application.CrashAnrDetector.access$100:60 com.android.server.analytics.data.collection.application.CrashAnrDetector$1.onReceive:102