Hello.
I'm trying to get BT working on CM7 ROM on Galaxy Note.
I compared logcat logs captured on BT startup on stock rom and my port - and it seems bluetooth starting without any problem.
But system just crashes after bluetooth icon appears with the following message:
Code:
/PanController( 2975): Cannot start PAN services - Bluetooth not running
W/dalvikvm( 2997): threadid=9: thread exiting with uncaught exception (group=0x4001e560)
I/bluetooth_ScoSocket.cpp( 3197): Listening SCO socket...
E/AndroidRuntime( 2997): *** FATAL EXCEPTION IN SYSTEM PROCESS: android.server.ServerThread
E/AndroidRuntime( 2997): java.lang.RuntimeException: Error receiving broadcast Intent { act=android.bluetooth.adapter.action.STATE_CHANGED flg=0x10000000 (has extras) } in [email protected]
E/AndroidRuntime( 2997): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:722)
E/AndroidRuntime( 2997): at android.os.Handler.handleCallback(Handler.java:587)
E/AndroidRuntime( 2997): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 2997): at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2997): at com.android.server.ServerThread.run(SystemServer.java:630)
E/AndroidRuntime( 2997): Caused by: java.lang.IllegalStateException: Error communicating to native daemon to start pan
E/AndroidRuntime( 2997): at com.android.server.NetworkManagementService.startPan(NetworkManagementService.java:803)
E/AndroidRuntime( 2997): at android.server.BluetoothNetworkService.onBluetoothEnable(BluetoothNetworkService.java:128)
E/AndroidRuntime( 2997): at android.server.BluetoothNetworkService.access$100(BluetoothNetworkService.java:42)
E/AndroidRuntime( 2997): at android.server.BluetoothNetworkService$2.onReceive(BluetoothNetworkService.java:89)
E/AndroidRuntime( 2997): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:709)
E/AndroidRuntime( 2997): ... 4 more
E/AndroidRuntime( 2997): Caused by: com.android.server.NativeDaemonConnectorException: Cmd {pan start} failed with code 400 : {Pan operation failed (No such device)}
E/AndroidRuntime( 2997): at com.android.server.NativeDaemonConnector.doCommand(NativeDaemonConnector.java:259)
E/AndroidRuntime( 2997): at com.android.server.NetworkManagementService.startPan(NetworkManagementService.java:800)
E/AndroidRuntime( 2997): ... 8 more
Could someone give me a hint where should I look to fix this problem?
Thanks a lot.
Related
Hi,
I'm modifying phone.apk on android 1.6 for research activities.
First I added following lines to call_card.xml and everything worked fine
<ImageView
android:src="@drawable/unknowncaller"
android:layout_width="320sp"
android:layout_height="320sp"
></ImageView>
Then I modified the ImageView and added an id:
<ImageView
android:id="@+id/callscreen_test_test"
android:src="@drawable/unknowncaller"
android:layout_width="320sp"
android:layout_height="320sp"
></ImageView>
Since then I get the following exception:
E/AndroidRuntime( 961): Uncaught handler: thread main exiting due to uncaught exception
E/AndroidRuntime( 961): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.phone/com.android.phone.InCallScreen}: java.lang.ClassCastException: android.widget.EditText
E/AndroidRuntime( 961): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2401)
E/AndroidRuntime( 961): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2417)
E/AndroidRuntime( 961): at android.app.ActivityThread.access $2100(ActivityThread.java:116)
E/AndroidRuntime( 961): at android.app.ActivityThread $H.handleMessage(ActivityThread.java:1794)
E/AndroidRuntime( 961): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 961): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 961): at android.app.ActivityThread.main(ActivityThread.java:4203)
E/AndroidRuntime( 961): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 961): at java.lang.reflect.Method.invoke(Method.java:521)
E/AndroidRuntime( 961): at com.android.internal.os.ZygoteInit $MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime( 961): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime( 961): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 961): Caused by: java.lang.ClassCastException: android.widget.EditText
E/AndroidRuntime( 961): at com.android.phone.InCallScreen.onCreate(InCallScreen.java:462)
E/AndroidRuntime( 961): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1123)
E/AndroidRuntime( 961): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2364)
E/AndroidRuntime( 961): ... 11 more
I don't think that's a bug in the syntax (or I'm blind?), I think that's a bug in compiling and some R.id.* were not updated or so... I compile phone.apk with "mmm packages/apps/Phone".
Please help me.
Thanks
No idea?
Does anyone knows an opensource implementation from an modified phone.apk where I can have a look at?
Thanks
Hello all,
I'm trying to debug a crash I have when after I have ported a rom, here's the output:
Code:
E/AndroidRuntime( 1327): FATAL EXCEPTION: main
E/AndroidRuntime( 1327): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.NullPointerException
E/AndroidRuntime( 1327): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2386)
E/AndroidRuntime( 1327): at android.app.ActivityThread.access$1600(ActivityThread.java:132)
E/AndroidRuntime( 1327): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1211)
E/AndroidRuntime( 1327): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1327): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1327): at android.app.ActivityThread.main(ActivityThread.java:4575)
E/AndroidRuntime( 1327): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1327): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1327): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
E/AndroidRuntime( 1327): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
E/AndroidRuntime( 1327): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1327): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 1327): at android.app.ProfileManager.getNotificationGroupForPackage(ProfileManager.java:223)
E/AndroidRuntime( 1327): at android.app.ProfileManager.getActiveProfileGroup(ProfileManager.java:242)
E/AndroidRuntime( 1327): at android.media.AudioManager.shouldVibrate(AudioManager.java:784)
E/AndroidRuntime( 1327): at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.updateVolume(PhoneStatusBarPolicy.java:254)
E/AndroidRuntime( 1327): at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.<init>(PhoneStatusBarPolicy.java:195)
E/AndroidRuntime( 1327): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:311)
E/AndroidRuntime( 1327): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:97)
E/AndroidRuntime( 1327): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2376)
E/AndroidRuntime( 1327): ... 10 more
Is there anyway to get
Code:
[b]E/AndroidRuntime( 1327): ... 10 more[/b]
to actually show the other 10 lines so I can do a complete trace?
Thank you for any help you can offer,
Pax
paxChristos said:
Hello all,
I'm trying to debug a crash I have when after I have ported a rom, here's the output:
Code:
E/AndroidRuntime( 1327): FATAL EXCEPTION: main
E/AndroidRuntime( 1327): java.lang.RuntimeException: Unable to create service com.android.systemui.SystemUIService: java.lang.NullPointerException
E/AndroidRuntime( 1327): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2386)
E/AndroidRuntime( 1327): at android.app.ActivityThread.access$1600(ActivityThread.java:132)
E/AndroidRuntime( 1327): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1211)
E/AndroidRuntime( 1327): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 1327): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 1327): at android.app.ActivityThread.main(ActivityThread.java:4575)
E/AndroidRuntime( 1327): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 1327): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 1327): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
E/AndroidRuntime( 1327): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
E/AndroidRuntime( 1327): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1327): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 1327): at android.app.ProfileManager.getNotificationGroupForPackage(ProfileManager.java:223)
E/AndroidRuntime( 1327): at android.app.ProfileManager.getActiveProfileGroup(ProfileManager.java:242)
E/AndroidRuntime( 1327): at android.media.AudioManager.shouldVibrate(AudioManager.java:784)
E/AndroidRuntime( 1327): at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.updateVolume(PhoneStatusBarPolicy.java:254)
E/AndroidRuntime( 1327): at com.android.systemui.statusbar.phone.PhoneStatusBarPolicy.<init>(PhoneStatusBarPolicy.java:195)
E/AndroidRuntime( 1327): at com.android.systemui.statusbar.phone.PhoneStatusBar.start(PhoneStatusBar.java:311)
E/AndroidRuntime( 1327): at com.android.systemui.SystemUIService.onCreate(SystemUIService.java:97)
E/AndroidRuntime( 1327): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2376)
E/AndroidRuntime( 1327): ... 10 more
Is there anyway to get
Code:
[b]E/AndroidRuntime( 1327): ... 10 more[/b]
to actually show the other 10 lines so I can do a complete trace?
Thank you for any help you can offer,
Pax
Click to expand...
Click to collapse
This might not help you with the query you asked, but you should be able to debug your crash in the immediate line after E/AndroidRuntime( 1327): Caused by: java.lang.NullPointerException. Looks like there is a NullPointerException in line 223 of ProfileManager.java in the method android.app.ProfileManager.getNotificationGroupForPackage.
Hope that helps.
superatmos said:
This might not help you with the query you asked, but you should be able to debug your crash in the immediate line after E/AndroidRuntime( 1327): Caused by: java.lang.NullPointerException. Looks like there is a NullPointerException in line 223 of ProfileManager.java in the method android.app.ProfileManager.getNotificationGroupForPackage.
Hope that helps.
Click to expand...
Click to collapse
Thanks, I'm trying to fix that by throwing an
Code:
if (object != null)[code] around party of that method.
Sent from my R800x using Tapatalk 2
sorry for bad english
Found a strange problem! Pairing tablet via bluetooth with any phone, then choosing pair settings on tablet and in this mometn Settings menu is closing and we see working table with error "error in Settings program". Same thing with choosing mobile network settings. I've got a log of this problem (listed below), anybody can help with this bug?
Code:
D/BluetoothAdapterStateMachine( 1841): BluetoothOn process message: 1
W/BluetoothAdapterStateMachine( 1841): BluetoothOn received: 1
D/BluetoothEnabler( 4541): HW DETECTABILITY DEFAULT is 0
D/LocalBluetoothManager( 4541): setting foreground activity to non-null context
D/BluetoothInputDevice( 4541): getConnectedDevices()
D/BluetoothInputDevice( 4541): getPriority(D8:2A:7E:D1:D1:A2)
D/AndroidRuntime( 4541): Shutting down VM
W/dalvikvm( 4541): threadid=1: thread exiting with uncaught exception (group=0x40a7e1f8)
E/AndroidRuntime( 4541): FATAL EXCEPTION: main
E/AndroidRuntime( 4541): java.lang.NullPointerException
E/AndroidRuntime( 4541): at com.android.settings.bluetooth.HeadsetProfile.isPreferred(HeadsetProfile.java:144)
E/AndroidRuntime( 4541): at com.android.settings.bluetooth.CachedBluetoothDevice.connectWithoutResettingTimer(CachedBluetoothDevice.java:238)
E/AndroidRuntime( 4541): at com.android.settings.bluetooth.CachedBluetoothDevice.connect(CachedBluetoothDevice.java:209)
E/AndroidRuntime( 4541): at com.android.settings.bluetooth.BluetoothDevicePreference.onClicked(BluetoothDevicePreference.java:201)
E/AndroidRuntime( 4541): at com.android.settings.bluetooth.DeviceListPreferenceFragment.onDevicePreferenceClick(DeviceListPreferenceFragment.java:192)
E/AndroidRuntime( 4541): at com.android.settings.bluetooth.BluetoothSettings.onDevicePreferenceClick(BluetoothSettings.java:369)
E/AndroidRuntime( 4541): at com.android.settings.bluetooth.DeviceListPreferenceFragment.onPreferenceTreeClick(DeviceListPreferenceFragment.java:184)
E/AndroidRuntime( 4541): at android.preference.Preference.performClick(Preference.java:949)
E/AndroidRuntime( 4541): at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:202)
E/AndroidRuntime( 4541): at android.widget.AdapterView.performItemClick(AdapterView.java:292)
E/AndroidRuntime( 4541): at android.widget.AbsListView.performItemClick(AbsListView.java:1068)
E/AndroidRuntime( 4541): at android.widget.AbsListView$PerformClick.run(AbsListView.java:2524)
E/AndroidRuntime( 4541): at android.widget.AbsListView$1.run(AbsListView.java:3193)
E/AndroidRuntime( 4541): at android.os.Handler.handleCallback(Handler.java:605)
E/AndroidRuntime( 4541): at android.os.Handler.dispatchMessage(Handler.java:92)
E/AndroidRuntime( 4541): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 4541): at android.app.ActivityThread.main(ActivityThread.java:4521)
E/AndroidRuntime( 4541): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 4541): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 4541): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:762)
E/AndroidRuntime( 4541): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:529)
E/AndroidRuntime( 4541): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager( 1841): Force finishing activity com.android.settings/.Settings
D/OppNotification( 2613): Stopping notification thread: NotificationUpdateThread-1356435222415
W/ActivityManager( 1841): Activity pause timeout for ActivityRecord{41595320 com.android.settings/.Settings}
E/dalvikvm( 4801): GC_CONCURRENT freed 1373K, 13% free 11484K/13191K, paused 2ms+15ms
I/Process ( 4541): Sending signal. PID: 4541 SIG: 9
D/Settings( 2052): getAllInstallLangId().length43
D/Settings( 2052): getAllInstallLangId().length43
I/WindowManager( 1841): WIN DEATH: Window{417b2068 com.android.settings/com.android.settings.Settings paused=false}
I/ActivityManager( 1841): Process com.android.settings (pid 4541) has died.
W/ActivityManager( 1841): Activity destroy timeout for ActivityRecord{41595320 com.android.settings/.Settings}
So, I am trying to theme my OmniRom Settings.apk in Holo Light style, using styles.xml.
All works perfectly, exept for one thing:
When tapping "Quick Launch Shortcuts", I get a force close.
Got a log here:
Code:
D/SubSettings( 2133): Launching fragment org.omnirom.omnigears.interfacesettings.NavRing
D/AndroidRuntime( 2133): Shutting down VM
W/dalvikvm( 2133): threadid=1: thread exiting with uncaught exception (group=0x4178fba8)
E/AndroidRuntime( 2133): FATAL EXCEPTION: main
E/AndroidRuntime( 2133): Process: com.android.settings, PID: 2133
E/AndroidRuntime( 2133): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: android.view.InflateException: Binary XML file line #7: Error inflating class com.android.internal.widget.multiwaveview.GlowPadView
E/AndroidRuntime( 2133): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
E/AndroidRuntime( 2133): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
E/AndroidRuntime( 2133): at android.app.ActivityThread.access$800(ActivityThread.java:135)
E/AndroidRuntime( 2133): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
E/AndroidRuntime( 2133): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime( 2133): at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime( 2133): at android.app.ActivityThread.main(ActivityThread.java:5001)
E/AndroidRuntime( 2133): at java.lang.reflect.Method.invokeNative(NativeMethod)
E/AndroidRuntime( 2133): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 2133): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
E/AndroidRuntime( 2133): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
E/AndroidRuntime( 2133): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2133): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class com.android.internal.widget.multiwaveview.GlowPadView
E/AndroidRuntime( 2133): at android.view.LayoutInflater.createView(LayoutInflater.java:620)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:696)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.rInflate(LayoutInflater.java:755)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
E/AndroidRuntime( 2133): at org.omnirom.omnigears.interfacesettings.NavRing.onCreateView(NavRing.java:108)
E/AndroidRuntime( 2133): at android.app.Fragment.performCreateView(Fragment.java:1700)
E/AndroidRuntime( 2133): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:890)
E/AndroidRuntime( 2133): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1062)
E/AndroidRuntime( 2133): at android.app.BackStackRecord.run(BackStackRecord.java:684)
E/AndroidRuntime( 2133): at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1447)
E/AndroidRuntime( 2133): at android.app.Activity.performStart(Activity.java:5240)
E/AndroidRuntime( 2133): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2157)
E/AndroidRuntime( 2133): ... 11 more
E/AndroidRuntime( 2133): Caused by: java.lang.reflect.InvocationTargetException
E/AndroidRuntime( 2133): at java.lang.reflect.Constructor.constructNative(Native Method)
E/AndroidRuntime( 2133): at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
E/AndroidRuntime( 2133): at android.view.LayoutInflater.createView(LayoutInflater.java:594)
E/AndroidRuntime( 2133): ... 23 more
E/AndroidRuntime( 2133): Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x10
E/AndroidRuntime( 2133): at android.content.res.TypedArray.getDimension(TypedArray.java:399)
E/AndroidRuntime( 2133): at com.android.internal.widget.multiwaveview.GlowPadView.<init>(GlowPadView.java:242)
E/AndroidRuntime( 2133): ... 26 more
W/ActivityManager( 799): Force finishing activity com.android.settings/.SubSettings
W/ActivityManager( 799): Force finishing activity com.android.settings/.SubSettings
The issue only appears with light themed settings, so it must be caused by one of my changes in styles.xml.
Any help would be greatly appreciated.
Thanks in advance.
Solved by copying the related xmls from unmodified apk over to modified one.
Hi, I installed my rom, and it crashes like this:
E/AndroidRuntime( 2414): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.graphics.drawable.Drawable.setColorFilter(int, android.graphics.PorterDuff$Mode)' on a null object reference
E/AndroidRuntime( 2414): at com.android.settings.cyanogenmod.qs.QSTiles.buildQSTile(QSTiles.java:226)
E/AndroidRuntime( 2414): at com.android.settings.cyanogenmod.qs.QSTiles.onActivityCreated(QSTiles.java:76)
E/AndroidRuntime( 2414): at android.app.Fragment.performActivityCreated(Fragment.java:2061)
E/AndroidRuntime( 2414): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:912)
E/AndroidRuntime( 2414): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1067)
E/AndroidRuntime( 2414): at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1049)
E/AndroidRuntime( 2414): at android.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:1869)
E/AndroidRuntime( 2414): at android.app.Activity.performCreateCommon(Activity.java:6856)
E/AndroidRuntime( 2414): at android.app.Activity.performCreate(Activity.java:6863)
E/AndroidRuntime( 2414): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/AndroidRuntime( 2414): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2306)
E/AndroidRuntime( 2414): ... 10 more
Just crash when I trying to get in. I tried to google it, but only same log in pastebin, I can't fine any solutions or something lie that. Any ideas?