Ticket #318 (closed defect: fixed)

Opened 4 years ago

Last modified 17 months ago

GetPowerStatus doesn't work on gta01

Reported by: mrmoku Owned by: mrmoku
Priority: major Milestone:
Component: Frameworkd / FSO Version: SHR-unstable
Keywords: gta01 Cc:

Description (last modified by mrmoku) (diff)

ok... ophonekitd crashes no more... now we have to find out why GetPowerStatus? does not work on gta01

Attachments

frameworkd.log Download (208.7 KB) - added by mrmoku 4 years ago.
frameworkd.log of juri

Change History

Changed 4 years ago by mrmoku

frameworkd.log of juri

comment:1 Changed 4 years ago by Juri

for the record, this bug is describing ophonekitd crashing on my GTA01.

starting ophonekitd manually, i receive the following output:

root@om-gta01 /media/card $ ophonekitd
** (process:1209): DEBUG: Entering ecore loop
** (process:1209): DEBUG: Phonegui initiated
** (process:1209): DEBUG: Phonelog database initiated
** (process:1209): DEBUG: Entering glib main loop
** (process:1209): DEBUG: /org/shr/ophonekitd/Usage
** (process:1209): DEBUG: Trying to get the system bus
** (process:1209): DEBUG: Adding signals.
** (process:1209): DEBUG: Added sim AuthStatus.
** (process:1209): DEBUG: Added sim IncomingStoredMessage.
** (process:1209): DEBUG: Added call CallStatus.
** (process:1209): DEBUG: Added device Idle Notifier State.
** (process:1209): DEBUG: Added network IncomingUssd.
** (process:1209): DEBUG: Connected to the buses
** (process:1209): DEBUG: list_resources()
** (process:1209): DEBUG: list_resources_callback()
** (process:1209): DEBUG: Resource WiFi available
** (process:1209): DEBUG: Resource Display available
** (process:1209): DEBUG: Resource Bluetooth available
** (process:1209): DEBUG: Resource TEST available
** (process:1209): DEBUG: Resource GSM available
** (process:1209): DEBUG: Request GSM resource
** (process:1209): DEBUG: Initiated elementary
** (process:1209): DEBUG: Initiated etk
** (process:1209): DEBUG: request_resource_callback()
** (process:1209): DEBUG: call ogsmd_device_set_antenna_power()
** (process:1209): DEBUG: power_up_antenna_callback()
** Message: SIM card not present.
** (process:1209): DEBUG: instance_manager_add: type=2, id=2, window=399104
** (process:1209): DEBUG: malloc'ed
** (process:1209): DEBUG: add window: 0
** (process:1209): DEBUG: done
** (process:1209): DEBUG: event_callback()
** (process:1209): DEBUG: window_init(win=399104)
** (process:1209): DEBUG: window_view_show()
** (process:1209): DEBUG: window_view_hide()
** (process:1209): DEBUG: idle notifier state handler called, id 0
** (process:1209): DEBUG: window_view_hide()
** (process:1209): DEBUG: calling exit_cb()
** (process:1209): DEBUG: exit_callback()
** (process:1209): DEBUG: idle notifier state handler called, id 1
** (process:1209): DEBUG: idle notifier state handler called, id 2
** (process:1209): DEBUG: idle notifier state handler called, id 3
** (process:1209): DEBUG: idle notifier state handler called, id 4
** (process:1209): DEBUG: idle notifier state handler called, id 5
Unknown internal dbus error: Method "GetPowerStatus" with signature "" on interface "org.freesmartphone.Device.PowerSupply" doesn't exist
, 77 (dbus-glib-error-quark), code 19

to state the obvious assumptions, yes, i launched this from a usb connected ssh prompt for debugging purposes, no, its not related to the fact that my unit sometimes sees its sim, and sometimes does not, and yes, i tapped the screen once to make the 'no sim' notification go away.

I can keep it awake by tapping on the screen regularly, and can receive and send phone calls, when its functioning properly, and sees my sim.

comment:2 Changed 4 years ago by Juri

Heres a log from the 20090216 image, with my sim working.

demo@stephost:~$ ssh root@192.168.0.202
root@192.168.0.202's password:
root@om-gta01 ~ $ export DISPLAY=:0
root@om-gta01 ~ $ ps ax | grep ophonekitd

1579 pts/1 S+ 0:00 grep ophonekitd

root@om-gta01 ~ $ ophonekitd
(process:1580): DEBUG: Entering ecore loop
(process:1580): DEBUG: Phonegui initiated
(process:1580): DEBUG: Phonelog database initiated
(process:1580): DEBUG: Entering glib main loop
(process:1580): DEBUG: /org/shr/ophonekitd/Usage
(process:1580): DEBUG: Trying to get the system bus
(process:1580): DEBUG: Adding signals.
(process:1580): DEBUG: Added sim AuthStatus?.
(process:1580): DEBUG: Added sim ReadyStatus?.
(process:1580): DEBUG: Added sim IncomingStoredMessage?.
(process:1580): DEBUG: Added call CallStatus?.
(process:1580): DEBUG: Added device Idle Notifier State.
(process:1580): DEBUG: Added network IncomingUssd?.
(process:1580): DEBUG: Connected to the buses
(process:1580): DEBUG: list_resources()
(process:1580): DEBUG: Initiated elementary
(process:1580): DEBUG: list_resources_callback()
(process:1580): DEBUG: Resource WiFi? available
(process:1580): DEBUG: Resource Display available
(process:1580): DEBUG: Resource Bluetooth available
(process:1580): DEBUG: Resource TEST available
(process:1580): DEBUG: Resource GSM available
(process:1580): DEBUG: Request GSM resource
(process:1580): DEBUG: Initiated etk
(process:1580): DEBUG: request_resource_callback()
(process:1580): DEBUG: call ogsmd_device_set_antenna_power()
(process:1580): DEBUG: sim_ready_status_callback(status=0)
(process:1580): DEBUG: ophonekitd_sim_ready_status_handler()
(process:1580): DEBUG: power_up_antenna_callback()
(process:1580): DEBUG: ophonekitd_sim_auth_status_handler()
(process:1580): DEBUG: sim auth ready
(process:1580): DEBUG: ophonekitd_sim_ready_status_handler()
(process:1580): DEBUG: sim ready
(process:1580): DEBUG: register_to_network_callback()
(process:1580): DEBUG: get_messagebook_info_callback()
(process:1580): DEBUG: messagebook info: first: 1, last 30, used: 13, total 30
(process:1580): DEBUG: ogsmd_sim_retrieve_phonebook_callback()
(process:1580): DEBUG: cache_phonebook_callback called
(process:1580): DEBUG: creating contact_cache
(process:1580): DEBUG: idle notifier state handler called, id 0
(process:1580): DEBUG: idle notifier state handler called, id 1
(process:1580): DEBUG: idle notifier state handler called, id 2
(process:1580): DEBUG: idle notifier state handler called, id 3
(process:1580): DEBUG: idle notifier state handler called, id 4
(process:1580): DEBUG: idle notifier state handler called, id 5
Unknown internal dbus error: Method "GetPowerStatus?" with signature "" on interface "org.freesmartphone.Device.PowerSupply?" doesn't exist
, 80 (dbus-glib-error-quark), code 19
root@om-gta01 ~ $

comment:3 Changed 4 years ago by Juri

and, another run, this time inside of GDB.

root@om-gta01 ~ $ gdb /usr/bin/ophonekitd
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-angstrom-linux-gnueabi"...
(no debugging symbols found)
(gdb) break exit
Breakpoint 1 at 0x9a88
(gdb) break _exit
Function "_exit" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 2 (_exit) pending.
(gdb) break abort
Breakpoint 3 at 0x96f8
(gdb) run
Starting program: /usr/bin/ophonekitd 
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
---Type <return> to continue, or q <return> to quit---
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
** (process:1621): DEBUG: Entering ecore loop
** (process:1621): DEBUG: Phonegui initiated
[New LWP 1624]
(no debugging symbols found)
** (process:1621): DEBUG: Phonelog database initiated
** (process:1621): DEBUG: Entering glib main loop
** (process:1621): DEBUG: /org/shr/ophonekitd/Usage
** (process:1621): DEBUG: Trying to get the system bus
** (process:1621): DEBUG: Adding signals.
** (process:1621): DEBUG: Added sim AuthStatus.
** (process:1621): DEBUG: Added sim ReadyStatus.
** (process:1621): DEBUG: Added sim IncomingStoredMessage.
(no debugging symbols found)
** (process:1621): DEBUG: Added call CallStatus.
** (process:1621): DEBUG: Added device Idle Notifier State.
** (process:1621): DEBUG: Added network IncomingUssd.
** (process:1621): DEBUG: Connected to the buses
** (process:1621): DEBUG: list_resources()
** (process:1621): DEBUG: list_resources_callback()
** (process:1621): DEBUG: Resource WiFi available
** (process:1621): DEBUG: Resource Display available
** (process:1621): DEBUG: Resource Bluetooth available
** (process:1621): DEBUG: Resource TEST available
** (process:1621): DEBUG: Resource GSM available
** (process:1621): DEBUG: Request GSM resource
(no debugging symbols found)
** (process:1621): DEBUG: Initiated elementary
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
** (process:1621): DEBUG: Initiated etk
(no debugging symbols found)
** (process:1621): DEBUG: request_resource_callback()
** (process:1621): DEBUG: call ogsmd_device_set_antenna_power()
** (process:1621): DEBUG: sim_ready_status_callback(status=0)
** (process:1621): DEBUG: ophonekitd_sim_ready_status_handler()
** (process:1621): DEBUG: power_up_antenna_callback()
** (process:1621): DEBUG: ophonekitd_sim_auth_status_handler()
** (process:1621): DEBUG: sim auth ready
** (process:1621): DEBUG: register_to_network_callback()
** (process:1621): DEBUG: ophonekitd_sim_ready_status_handler()
** (process:1621): DEBUG: sim ready
** (process:1621): DEBUG: get_messagebook_info_callback()
** (process:1621): DEBUG: messagebook info: first: 1, last 30, used: 13, total 30
** (process:1621): DEBUG: ogsmd_sim_retrieve_phonebook_callback()
** (process:1621): DEBUG: cache_phonebook_callback called
** (process:1621): DEBUG: creating contact_cache
** (process:1621): DEBUG: idle notifier state handler called, id 0
** (process:1621): DEBUG: idle notifier state handler called, id 1
** (process:1621): DEBUG: idle notifier state handler called, id 2
** (process:1621): DEBUG: idle notifier state handler called, id 3
** (process:1621): DEBUG: idle notifier state handler called, id 4
** (process:1621): DEBUG: idle notifier state handler called, id 5
Unknown internal dbus error: Method "GetPowerStatus" with signature "" on interface "org.freesmartphone.Device.PowerSupply" doesn't exist
, 80 (dbus-glib-error-quark), code 19
[New LWP 1621]

Breakpoint 1, 0x402656ec in exit () from /lib/libc.so.6
(gdb) bt
#0  0x402656ec in exit () from /lib/libc.so.6
#1  0x40191890 in lose () from /usr/lib/libframeworkd-glib.so.0
#2  0x401918e0 in lose_gerror () from /usr/lib/libframeworkd-glib.so.0
#3  0x40191e30 in dbus_handle_internal_errors () from /usr/lib/libframeworkd-glib.so.0
#4  0x4019a53c in odeviced_power_supply_get_power_status_callback () from /usr/lib/libframeworkd-glib.so.0
#5  0x4019a23c in ?? () from /usr/lib/libframeworkd-glib.so.0
Cannot access memory at address 0x0
(gdb) bt full
#0  0x402656ec in exit () from /lib/libc.so.6
No symbol table info available.
#1  0x40191890 in lose () from /usr/lib/libframeworkd-glib.so.0
No symbol table info available.
#2  0x401918e0 in lose_gerror () from /usr/lib/libframeworkd-glib.so.0
No symbol table info available.
#3  0x40191e30 in dbus_handle_internal_errors () from /usr/lib/libframeworkd-glib.so.0
No symbol table info available.
#4  0x4019a53c in odeviced_power_supply_get_power_status_callback () from /usr/lib/libframeworkd-glib.so.0
No symbol table info available.
#5  0x4019a23c in ?? () from /usr/lib/libframeworkd-glib.so.0
No symbol table info available.
(gdb) 

comment:4 Changed 4 years ago by mrmoku

  • Description modified (diff)

comment:5 Changed 4 years ago by ainulindale

  • Owner changed from ainulindale to mrmoku
  • Status changed from new to assigned

Dbus object path is different between GTA01/02. This has to be taken into account for lfg.

comment:6 Changed 4 years ago by dos

  • Summary changed from ophonekitd crashes on gta01 because of GetPowerStatus to GetPowerStatus doesn't work on gta01
  • Component changed from ophonekitd to libframeworkd-glib
  • Milestone set to MS1

comment:7 Changed 4 years ago by mrmoku

libframeworkd-glib is using /org/freesmartphone/Device/PowerSupply/battery as dbus path. What would that be for gta01 then? And how to differentiate between gta01 and gta02 in the lib?

comment:8 Changed 4 years ago by TAsn

I'm closing this if we won't get an answer :|
Neither of us own a GTA01... We can't test it, really, sorry, but we can't.
Without proper response we can't do nothing about gta01 bugs.

comment:9 Changed 4 years ago by mrmoku

problem seems to be different dbus paths for gta01 and gta02.

Probably the best fix is to finally switch to fsodeviced which does not have that problem...

comment:10 Changed 4 years ago by TAsn

  • Component changed from libframeworkd-glib to frameworkd / FSO

I think that's something to do *after* the next unstable (unless it'll take more than two days to get that, and in that case we should probably move now).

Anyhow, I'm leaving this one open as a reminder, though it seems the bug is "fixed" or at least upstream.

comment:11 Changed 3 years ago by spaetz

  • Milestone changed from MS1 to MS2

Please check if this is still the case with fsodeviced. If yes, we should file an upstream bug against that. In any case this is not going to hold Milestone1.

comment:12 Changed 3 years ago by TAsn

  • Status changed from assigned to closed
  • Resolution set to fixed

No reply for 2 months, must be fixed. (No GTA01 here, can't verify)

comment:13 Changed 17 months ago by morphis

  • Milestone MS2 deleted

Milestone MS2 deleted

Note: See TracTickets for help on using tickets.