Ticket #232 (closed defect: fixed)
ophonekitd crashes: "antenna powered off or SIM not unlocked"
| Reported by: | hiciu | Owned by: | ainulindale |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | ophonekitd | Version: | |
| Keywords: | SIM error code 32 | Cc: |
Description
root@om-gta02 ~ $ ophonekitd ** (process:1228): DEBUG: Entering ecore loop ** (process:1228): DEBUG: Phonegui initiated ** (process:1228): DEBUG: Phonelog database initiated ** (process:1228): DEBUG: Entering glib main loop ** (process:1228): DEBUG: /org/shr/ophonekitd/Usage ** (process:1228): DEBUG: Trying to get the system bus ** (process:1228): DEBUG: Adding signals. ** (process:1228): DEBUG: Added sim AuthStatus. ** (process:1228): DEBUG: Added sim IncomingStoredMessage. ** (process:1228): DEBUG: Added call CallStatus. ** (process:1228): DEBUG: Added device Idle Notifier State. ** (process:1228): DEBUG: Added network IncomingUssd. ** (process:1228): DEBUG: Connected to the buses ** (process:1228): DEBUG: list_resources() ** (process:1228): DEBUG: Initiated elementary ** (process:1228): DEBUG: Initiated etk ** (process:1228): DEBUG: idle notifier state handler called, id 1 ** (process:1228): DEBUG: list_resources_callback() ** (process:1228): DEBUG: GSM not available, try again in 5s ** (process:1228): DEBUG: idle notifier state handler called, id 0 ** (process:1228): DEBUG: list_resources() ** (process:1228): DEBUG: list_resources_callback() ** (process:1228): DEBUG: Resource Bluetooth available ** (process:1228): DEBUG: Resource GSM available ** (process:1228): DEBUG: Request GSM resource ** (process:1228): DEBUG: request_resource_callback() ** (process:1228): DEBUG: call ogsmd_device_set_antenna_power() ** (process:1228): DEBUG: idle notifier state handler called, id 1 ** (process:1228): DEBUG: ophonekitd_sim_auth_status_handler() ** (process:1228): DEBUG: sim ready ** (process:1228): DEBUG: power_up_antenna_callback() ** (process:1228): DEBUG: register_to_network_callback() ** (process:1228): DEBUG: get_messagebook_info_callback() ** (process:1228): DEBUG: ogsmd_sim_retrieve_phonebook_callback() Unknown SIM error: Antenna powered off or SIM not unlocked yet, 77 (dbus-glib-error-quark), code 32
On unstable image. Restarting ophonekitd / frameworkd / gsm0710muxd does not help. My pin authentication is turned off.
Change History
comment:2 Changed 3 years ago by hiciu
So far: if I put 'sleep(10);' in ophonekitd-main.c in ophonekitd_sim_auth_status_handler():
diff --git a/ophonekitd/src/ophonekitd-main.c b/ophonekitd/src/ophonekitd-main.c
index 9f695b8..89c2d55 100644
--- a/ophonekitd/src/ophonekitd-main.c
+++ b/ophonekitd/src/ophonekitd-main.c
@@ -259,6 +259,7 @@ void ophonekitd_sim_auth_status_handler(const int status) {
sim_auth_active = FALSE;
phonegui_sim_auth_hide(status);
}
+ sleep(10);
ogsmd_network_register(register_to_network_callback, NULL);
ogsmd_sim_get_messagebook_info(get_messagebook_info_callback, NULL);
ogsmd_sim_retrieve_phonebook("contacts", cache_phonebook_callback, NULL
it works. I will try to find better solution..
comment:3 Changed 3 years ago by mywave
Would be nice to get the actual error the SIM card gives. It probaby isn't ready yet to spew out the phonebook. Retrying 5 times, with 2-3 seconds interval perhaps would have solved this issue?
Does ophonekitd abort on this error btw?
Note: See
TracTickets for help on using
tickets.

With new image (from 6 Jan 2009) I still have this issue (but I'm able to make phone calls etc., with zhone [on shr]).