Libosso API: osso_state_write failed

Bug #175816 reported by yanglei
4
Affects Status Importance Assigned to Milestone
Moblin UI Framework
Won't Fix
Medium
Bob Spencer

Bug Description

the osso_state_write return OSSO_ERROR:
-----------------------------------------------------------------------------
static char* s = "this is the state";
    guint32 len = strlen(s)+1;
    osso_context = osso_initialize("osso_init", "0.0.1", TRUE, NULL);

    if (osso_context == NULL) {
        return OSSO_ERROR;
    }

    state.state_size = len;
    state.state_data = (gpointer)s;
    result = osso_state_write(osso_context, &state);
    if(result != OSSO_OK) {
        if(result == OSSO_ERROR)
                g_print("ERROR: osso_state_write return OSSO_ERROR\n");
        else if(result == OSSO_INVALID)
                g_print("ERROR: osso_state_write return OSSO_INVALID\n");
        else
                g_print("ERROR: osso_state_write return UNKNOWN\n");
        return -1;
    }
--------------------------------------------------------------------------

yanglei (lei-a-yang)
Changed in moblin-ui-framework:
assignee: nobody → bob-spencer
importance: Undecided → Medium
Revision history for this message
yanglei (lei-a-yang) wrote :

This bug is same as the bug Todd reported #145951
He describe the root cause:
--------------------------------------------------------------------------------------------
The problem is that libosso expects the env var STATESAVEDIR
to exist and point to a valid directory where state data
for the resident application can be saved/restored. This var
is not set by the hildon-control-panel install or by the
controlpanel process. Without it libosso defaults to
/tmp/state/controlpanel/0.1 and since this dir usually won't
exist without someone manually creating it, the error occurs.

The solution is to have the conrtolpanel process create this
variable and directory on startup.
---------------------------------------------------------------------------------------------
From Control Panel's perspective, I think it is OK to close the bug #145951.
But for API osso_state_write and osso_state_read, returning OSSO_ERROR is existed yet.
Keep tracking the APIs use in this bug.

Horace (horace-li)
Changed in moblin-ui-framework:
status: New → Triaged
Revision history for this message
yanglei (lei-a-yang) wrote :

assign milestone - M9

Changed in moblin-ui-framework:
milestone: none → m9
Margie (margie-foster)
Changed in moblin-ui-framework:
milestone: m9 → m10
Revision history for this message
Mauri Whalen (mauri-whalen) wrote :

This is low impact to the customer and might be fixed in later versions of Hildon.

Changed in moblin-ui-framework:
milestone: m10 → fix-later
Revision history for this message
yanglei (lei-a-yang) wrote :

talk with developer:
libosso related bug, won't fix

Changed in moblin-ui-framework:
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.