[OnePlus 3 & 3T Cross Device Development] webore:
deskclock crash when I do this :

1.set random music as the ringtone .

2.Open deskclock and click random music again .

If you don't do step 2, it doesn't crash for now but crashes when the alarm is going to ring .

The log is here :

3C Toolbox Pro (logcat)

======================

D/19:00:46.314 ActivityManager( 1263)

cleanUpApplicationRecord -- 6097

I/19:00:46.313 ActivityManager( 1263)

Killing 6097:org.omnirom.deskclock/u0a56 (adj 199): crash

E/19:00:45.371 AndroidRuntime( 6097)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

E/19:00:45.371 AndroidRuntime( 6097)

at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)

E/19:00:45.371 AndroidRuntime( 6097)

at java.lang.reflect.Method.invoke(Native Method)

E/19:00:45.371 AndroidRuntime( 6097)

at android.app.ActivityThread.main(ActivityThread.java:6119)

E/19:00:45.371 AndroidRuntime( 6097)

at android.os.Looper.loop(Looper.java:154)

E/19:00:45.371 AndroidRuntime( 6097)

at android.os.Handler.dispatchMessage(Handler.java:95)

E/19:00:45.371 AndroidRuntime( 6097)

at android.os.Handler.handleCallback(Handler.java:751)

E/19:00:45.371 AndroidRuntime( 6097)

at android.app.FragmentManagerImpl$1.run(FragmentManager.java:483)

E/19:00:45.371 AndroidRuntime( 6097)

at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1578)

E/19:00:45.371 AndroidRuntime( 6097)

at android.app.BackStackRecord.run(BackStackRecord.java:816)

E/19:00:45.371 AndroidRuntime( 6097)

at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1171)

E/19:00:45.371 AndroidRuntime( 6097)

at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:995)

E/19:00:45.371 AndroidRuntime( 6097)

at android.app.DialogFragment.getLayoutInflater(DialogFragment.java:406)

E/19:00:45.371 AndroidRuntime( 6097)

at org.omnirom.deskclock.AlarmRingtoneDialog.onCreateDialog(AlarmRingtoneDialog.java:162)

E/19:00:45.371 AndroidRuntime( 6097)

at org.omnirom.deskclock.provider.Alarm.getRingtoneName(Alarm.java:604)

E/19:00:45.371 AndroidRuntime( 6097)

java.lang.ArrayIndexOutOfBoundsException: length=1; index=1

E/19:00:45.371 AndroidRuntime( 6097)

Process: org.omnirom.deskclock, PID: 6097

E/19:00:45.371 AndroidRuntime( 6097)

FATAL EXCEPTION: main

D/19:00:45.370 AndroidRuntime( 6097)

Shutting down VM

V/19:00:42.664 TimerReceiver( 6097)

Received intent Intent { act=notif_in_use_cancel flg=0x10 cmp=org.omnirom.deskclock/.timer.TimerReceiver }

D/19:00:42.587 OpenGLRenderer( 6097)

Swap behavior 1

I/19:00:42.587 OpenGLRenderer( 6097)

Initialized EGL, version 1.4

I/19:00:42.582 Adreno ( 6097)

Reconstruct Branch :

I/19:00:42.582 Adreno ( 6097)

Remote Branch :

I/19:00:42.582 Adreno ( 6097)

Remote Branch :

I/19:00:42.582 Adreno ( 6097)

Local Branch :

I/19:00:42.582 Adreno ( 6097)

OpenGL ES Shader Compiler Version: XE031.09.00.03

I/19:00:42.582 Adreno ( 6097)

Build Date : 10/26/16

I/19:00:42.582 Adreno ( 6097)

QUALCOMM build : d57aba2, Ic27b94dfce

I/19:00:42.375 HAL ( 6097)

loaded HAL id=gralloc path=/system/lib64/hw/gralloc.msm8996.so hmi=0x7ff8d1b760 handle=0xf4039322bbdb9c85

W/19:00:42.293 System ( 6097)

ClassLoader referenced unknown path: /system/app/OmniClockOSS/lib/arm64

I/19:00:42.243 ActivityManager( 1263)

Start proc 6097:org.omnirom.deskclock/u0a56 for activity org.omnirom.deskclock/.DeskClock