abbyy / ocrsdk.com

ABBYY Cloud OCR SDK
http://ocrsdk.com/github
Apache License 2.0
504 stars 484 forks source link

Business card image process Cloud OCR SDK below get error #71

Open anilsutariya opened 5 years ago

anilsutariya commented 5 years ago

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: task.ID' First throw call stack: (0x185a1f164 0x184c68528 0x185a1f038 0x1863b97f4 0x1003e4930 0x18641b2e4 0x1859c777c 0x1859c76fc 0x1859c6f84 0x1859c4b5c 0x1858e4c58 0x187790f84 0x18f03d5c4 0x1003e6374 0x18540456c) libc++abi.dylib: terminating with uncaught exception of type NSException

Dmitry-Me commented 5 years ago

What's the response from the service?

anilsutariya commented 5 years ago

@Dmitry-Me My problem solved. i did not give parsing format..xml

Dmitry-Me commented 5 years ago

How would that cause this behavior?

anilsutariya commented 5 years ago

@Dmitry-Me By default iOS SDK give txt format for so we need to change XML

Dmitry-Me commented 5 years ago

Why would using "txt" cause that behavior then?

anilsutariya commented 5 years ago

@Dmitry-Me I need to scan business card and i want to response in XML format if response type is txt then it crashed.

Dmitry-Me commented 5 years ago

Why would it crash when response was in "txt" format?

anilsutariya commented 5 years ago

@Dmitry-Me txt format give only string there is no xml format so we can not parse. response have no valid format then it crash.

Dmitry-Me commented 5 years ago

This makes sense, but how would it trigger that specific assertion mentioned in the defect description?

anilsutariya commented 5 years ago

@Dmitry-Me SDK throw error if we selected wrong format. In starting i have problem to indentify issue.