image_downloader icon indicating copy to clipboard operation
image_downloader copied to clipboard

iOS: Error thrown while downloading webp image.

Open amitm29 opened this issue 2 years ago • 3 comments

I'm getting following error when downloading webp images on iOS. The functionality is working fine in Android.

[Runner] findWriterForTypeAndAlternateType:119: unsupported file format 'org.webmproject.webp' Unsupported value: Error Domain=PHPhotosErrorDomain Code=3302 "(null)" of type NSError *** Assertion failure in -[FlutterStandardWriter writeValue:], FlutterStandardCodec.mm:338 [xpc.exceptions] <NSXPCConnection: 0x2820d1220> connection to service with pid 3821 named com.apple.photos.service: Exception caught during invocation of reply block to message 'applyChangesRequest:reply:'.

Exception: Unsupported value for standard codec ( 0 CoreFoundation 0x000000018147e110 E2F84645-2905-31EF-8EC7-3CC19C3CDDB3 + 626960 1 libobjc.A.dylib 0x0000000199cced64 objc_exception_throw + 60 2 Foundation 0x0000000182d3a39c 925A43CD-EAF2-3161-9378-3ED87468301D + 1246108 3 Flutter 0x000000010563d0a4 -[FlutterStandardWriter writeValue:] + 1324 4 Flutter 0x000000010563d804 -[FlutterStandardMethodCodec encodeErrorEnvelope:] + 196 5 Flutter 0x000000010563a7f4 __45-[FlutterMethodChannel setMethodCallHandler:]block_invoke_2 + 136 6 image_downloader 0x0000000102b70938 $syXlSgIeyBy_ypSgIegn_TR + 220 7 image_downloader 0x0000000102b75b8c $s16image_downloader26SwiftImageDownloaderPluginC04saveD033_055A23EAE8999497637EB0A0A2513C79LL_6resulty10Foundation4DataV_yypSgctFySb_s5Error_pSgtcfU0 + 1972 8 image_downloader 0x0000000102b75c98 $sSbs5Error_pSgIegyg_SbSo7NSErrorCSgIeyByy_TR + 132 9 Photos 0x0000000194c2a718 E2EA16AE-84B7-3D43-9063-01F112BDE98A + 198424 10 Photos 0x0000000194c3460c E2EA16AE-84B7-3D43-9063-01F112BDE98A + 239116 11 Photos 0x0000000194d296c8 E2EA16AE-84B7-3D43-9063-01F112BDE98A + 1242824 12 Photos 0x0000000194c5a07c E2EA16AE-84B7-3D43-9063-01F112BDE98A + 393340 13 CoreFoundation 0x00000001814073a4 E2F84645-2905-31EF-8EC7-3CC19C3CDDB3 + 140196 14 CoreFoundation 0x0000000181424b74 E2F84645-2905-31EF-8EC7-3CC19C3CDDB3 + 260980 15 Foundation 0x0000000182c3ef80 925A43CD-EAF2-3161-9378-3ED87468301D + 216960 16 Foundation 0x0000000182c5ff34 925A43CD-EAF2-3161-9378-3ED87468301D + 352052 17 Foundation 0x0000000182c3ab04 925A43CD-EAF2-3161-9378-3ED87468301D + 199428 18 libxpc.dylib 0x00000001f0d2532c BE856344-9276-3110-837A-A7438AF829E8 + 115500 19 libxpc.dylib 0x00000001f0d1885c BE856344-9276-3110-837A-A7438AF829E8 + 63580 20 libdispatch.dylib 0x00000001810f06f0 BD02A625-8475-3FD6-8DC3-8AED25D1573B + 18160 21 libdispatch.dylib 0x000000018110ded8 BD02A625-8475-3FD6-8DC3-8AED25D1573B + 138968 22 libdispatch.dylib 0x00000001810f7ccc BD02A625-8475-3FD6-8DC3-8AED25D1573B + 48332 23 libdispatch.dylib 0x00000001810f899c BD02A625-8475-3FD6-8DC3-8AED25D1573B + 51612 24 libdispatch.dylib 0x00000001811031b8 BD02A625-8475-3FD6-8DC3-8AED25D1573B + 94648 25 libsystem_pthread.dylib 0x00000001f0cef0f4 _pthread_wqthread + 288 26 libsystem_pthread.dylib 0x00000001f0ceee94 start_wqthread + 8 ) *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unsupported value for standard codec' *** First throw call stack: (0x18147e0fc 0x199cced64 0x182d3a39c 0x10563d0a4 0x10563d804 0x10563a7f4 0x102b70938 0x102b75b8c 0x102b75c98 0x194c2a718 0x194c3460c 0x194d296c8 0x194c5a07c 0x1814073a4 0x181424b74 0x182c3ef80 0x182c5ff34 0x182c3ab04 0x1f0d2532c 0x1f0d1885c 0x1810f06f0 0x18110ded8 0x1810f7ccc 0x1810f899c 0x1811031b8 0x1f0cef0f4 0x1f0ceee94) libc++abi: terminating with uncaught exception of type NSException

  • thread #34, queue = 'com.apple.NSXPCConnection.m-user.com.apple.photos.service', stop reason = signal SIGABRT frame #0: 0x00000001b7dd8964 libsystem_kernel.dylib__pthread_kill + 8 libsystem_kernel.dylib__pthread_kill: -> 0x1b7dd8964 <+8>: b.lo 0x1b7dd8984 ; <+40> 0x1b7dd8968 <+12>: pacibsp 0x1b7dd896c <+16>: stp x29, x30, [sp, #-0x10]! 0x1b7dd8970 <+20>: mov x29, sp Target 0: (Runner) stopped.

amitm29 avatar Mar 20 '22 04:03 amitm29

Similar error:

[Runner] findWriterForTypeAndAlternateType:119: unsupported file format 'org.webmproject.webp'
Unsupported value: Error Domain=PHPhotosErrorDomain Code=3302 "(null)" of type NSError
*** Assertion failure in -[FlutterStandardWriter writeValue:], FlutterStandardCodec.mm:338
[xpc.exceptions] <NSXPCConnection: 0x280fb8a00> connection to service with pid 233 named com.apple.photos.service: Exception caught during invocation of reply block to message 'applyChangesRequest:reply:'.
Exception: Unsupported value for standard codec
(
	0   CoreFoundation                      0x00000001d96f2254 42C5C917-0447-3995-B50F-DE4D132C2435 + 41556
	1   libobjc.A.dylib                     0x00000001d2ab7a68 objc_exception_throw + 60
	2   Foundation                          0x00000001d407681c AA92CD58-561A-3414-92F4-B4120298B39A + 5531676
	3   Flutter                             0x00000001069ec740 -[FlutterStandardMethodCodec encodeErrorEnvelope:] + 196
	4   Flutter                             0x00000001069e96e0 __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke_2 + 136
	5   image_downloader                    0x0000000103e61800 $syXlSgIeyBy_ypSgIegn_TR + 200
	6   image_downloader                    0x0000000103e6376c $s16image_downloader26SwiftImageDownloaderPluginC04saveD033_055A23EAE8999497637EB0A0A2513C79LL_6resulty10Foundation4DataV_yypSgctFySb_s5Error_pSgtcfU0_ + 944
	7   image_downloader                    0x0000000103e639dc $sSbs5Error_pSgIegyg_SbSo7NSErrorCSgIeyByy_TR + 68
	8   Photos                              0x00000001edf34140 FE7FF9BF-2EB8-38D1-A329-563EC9385296 + 229696
	9   Photos                              0x00000001edf36c5c FE7FF9BF-2EB8-38D1-A329-563EC9385296 + 240732
	10  Photos                              0x00000001ee00499c FE7FF9BF-2EB8-38D1-A329-563EC9385296 + 1083804
	11  Photos                              0x00000001edf47b94 FE7FF9BF-2EB8-38D1-A329-563EC9385296 + 310164
	12  CoreFoundation                      0x00000001d975ca14 42C5C917-0447-3995-B50F-DE4D132C2435 + 477716
	13  CoreFoundation                      0x00000001d9708f2c 42C5C917-0447-3995-B50F-DE4D132C2435 + 134956
	14  Foundation                          0x00000001d3bd0d38 AA92CD58-561A-3414-92F4-B4120298B39A + 658744
	15  Foundation                          0x00000001d3ba22fc AA92CD58-561A-3414-92F4-B4120298B39A + 467708
	16  Foundation                          0x00000001d417cf44 AA92CD58-561A-3414-92F4-B4120298B39A + 6606660
	17  libxpc.dylib                        0x00000002260713e4 BE45E2E7-648C-3A60-9C57-E63229B6CFE0 + 119780
	18  libxpc.dylib                        0x0000000226064580 BE45E2E7-648C-3A60-9C57-E63229B6CFE0 + 66944
	19  libdispatch.dylib                   0x00000001e0b6e05c C663D847-B94F-3FB0-9254-32EDBC55315E + 16476
	20  libdispatch.dylib                   0x00000001e0b8bf58 C663D847-B94F-3FB0-9254-32EDBC55315E + 139096
	21  libdispatch.dylib                   0x00000001e0b7556c C663D847-B94F-3FB0-9254-32EDBC55315E + 46444
	22  libdispatch.dylib                   0x00000001e0b76214 C663D847-B94F-3FB0-9254-32EDBC55315E + 49684
	23  libdispatch.dylib                   0x00000001e0b80e10 C663D847-B94F-3FB0-9254-32EDBC55315E + 93712
	24  libsystem_pthread.dylib             0x0000000226010df8 _pthread_wqthread + 288
	25  libsystem_pthread.dylib             0x0000000226010b98 start_wqthread + 8
)
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unsupported value for standard codec'
*** First throw call stack:
(0x1d96f2248 0x1d2ab7a68 0x1d407681c 0x1069ec740 0x1069e96e0 0x103e61800 0x103e6376c 0x103e639dc 0x1edf34140 0x1edf36c5c 0x1ee00499c 0x1edf47b94 0x1d975ca14 0x1d9708f2c 0x1d3bd0d38 0x1d3ba22fc 0x1d417cf44 0x2260713e4 0x226064580 0x1e0b6e05c 0x1e0b8bf58 0x1e0b7556c 0x1e0b76214 0x1e0b80e10 0x226010df8 0x226010b98)
libc++abi: terminating with uncaught exception of type NSException
* thread #3, queue = 'com.apple.NSXPCConnection.m-user.com.apple.photos.service', stop reason = signal SIGABRT
    frame #0: 0x0000000215dda200 libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
->  0x215dda200 <+8>:  b.lo   0x215dda220               ; <+40>
    0x215dda204 <+12>: pacibsp
    0x215dda208 <+16>: stp    x29, x30, [sp, #-0x10]!
    0x215dda20c <+20>: mov    x29, sp
Target 0: (Runner) stopped.
Lost connection to device.
Exited

asendia avatar Oct 18 '22 20:10 asendia

Experiencing the same error. Has there been an update?

EricZeiberg avatar Dec 27 '22 02:12 EricZeiberg

Experiencing the same error. Has there been an update?

I switched library to https://pub.dev/packages/image_gallery_saver

asendia avatar Jan 12 '23 06:01 asendia