#336 ✓resolved
Jan Becicka

webinspector_receive_with_timeout returns WEBINSPECTOR_E_PLIST_ERROR if message too long

Reported by Jan Becicka | June 19th, 2013 @ 01:45 PM | in 1.2.0 Release

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

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A project around supporting the iPhone in Linux.

See http://libimobiledevice.org

People watching this ticket

Attachments

Pages