Segfault when getting/setting configuration values

Asked by Amit Nayar on 2015-07-01

Hi again,

I am trying to set/get the threshold and timeout values for the rotate gesture using:

    int timeout = 1000; // 1s timeout
    status = geis_set_configuration( // **** segfault on this call ****
        geisObject,
        GEIS_CONFIG_ROTATE_TIMEOUT,
        &timeout);

    float threshold = 0.05; // 5cm thresh
    status = geis_set_configuration(
        geisObject,
        GEIS_CONFIG_ROTATE_THRESHOLD,
        &threshold);

My geis_new is called like this:

    m_geisObject = geis_new(
        GEIS_INIT_TRACK_DEVICES, // Report input devices
        GEIS_INIT_TRACK_GESTURE_CLASSES, // Send gesture class events
        GEIS_INIT_NO_ATOMIC_GESTURES, // Disable geis v1 style atomic gestures
        GEIS_INIT_SYNCHRONOUS_START, // We want to wait for geis to init so we can
                                            // set up gesture filters here
        NULL);

Any ideas why I would be getting a segfault when setting these config values?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Geis Edit question
Assignee:
No assignee Edit question
Solved by:
Amit Nayar
Solved:
2015-07-02
Last query:
2015-07-02
Last reply:
Amit Nayar (amit-nyr) said : #1

Ah I'm an idiot. I need to use the geis_subscription_set_configuration instead of geis_set_configuration here.