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
-
Martin S. July 1st, 2013 @ 03:53 PM
- 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... -
Martin S. August 19th, 2013 @ 12:13 PM
- State changed from open to resolved
Thanks for reporting.
Fixed in git master.
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.
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