Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

webinspector_receive_with_timeout returns WEBINSPECTOR_E_PLIST_ERROR if message too long

#336

libimobiledevice 1.1.5
libplist 1.10
usbmuxd 1.0.8

I successfully use webinspector service with mobile safari. But I think, that there is a bug, when I try to receive bigger message.

For instance if I send:
{id":183,"method":"CSS.getMatchedStylesForNode","params":{"nodeId":26,"includeInherited":true,"includePseudo

And now I want to read:
webinspector_error_t res = webinspector_receive_with_timeout(client, &plist, timeout_ms);

The result is WEBINSPECTOR_E_PLIST_ERROR in this case. I think, that the problem is, that the massage is too big.

My software also works with iOS Simulator. I use different communication mechanism with Simulator and I don't have such problems.
I'm attaching output of what I'm getting from iOS Simulator, which should be the same (or similar) as from device.

iossim.plist is expected result. This specific response I'm getting from iOS Simulator.
iossim.json is json decoded from previous plist.

Thanks,
Jan

Reported by Jan Becicka · June 19th, 2013 @ 01:45 PM

State: resolved
Milestone: 1.2.0 Release
Assigned to: Martin S. Martin S.

Activity

  1. Martin S.
    Martin S.
    • State changed from new to open
    • Tag set to libimobiledevice, webinspector
    • Milestone set to 1.2.0 Release

    Reason is probably the missing support for "partial messages" in the protocol implementation.
    Needs fixing...

    July 1st, 2013 @ 03:53 PM

  2. Martin S.
    Martin S.
    • Assigned user set to Martin S.

    WIP.

    August 13th, 2013 @ 10:00 PM

  3. Martin S.
    Martin S.
    • State changed from open to resolved

    Thanks for reporting.
    Fixed in git master.

    August 19th, 2013 @ 12:13 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.