Image segmentation demo is not working in ProMax 12 simulator.
Opened this issue · 1 comments
The app compiled properly, but when press 'segment', below error and crashes.
libc++abi.dylib: terminating with uncaught exception of type c10::Error: isTuple()INTERNAL ASSERT FAILED at "/Users/distiller/project/aten/src/ATen/core/ivalue_inl.h":1400, please report a bug to PyTorch. Expected Tuple but got String
Exception raised from toTuple at /Users/distiller/project/aten/src/ATen/core/ivalue_inl.h:1400 (most recent call first):
frame #0: _ZN3c105ErrorC1ENS_14SourceLocationENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE + 75 (0x10aef4113 in ImageSegmentation)
frame #1: _ZN3c106detail14torchCheckFailEPKcS2_jRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE + 106 (0x10aef2cf5 in ImageSegmentation)
frame #2: _ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE + 63 (0x10aef2e97 in ImageSegmentation)
frame #3: _ZNKR3c106IValue7toTupleEv + 135 (0x109994307 in ImageSegmentation)
frame #4: _ZN5torch3jit28ConcreteSourceRangeUnpickler8unpickleEv + 368 (0x10ac2c4ac in ImageSegmentation)
frame #5: _ZN5torch3jit28ConcreteSourceRangeUnpickler28findSourceRangeThatGeneratedERKNS0_11SourceRangeE + 27 (0x10ac2c78d in ImageSegmentation)
frame #6: ZNK5torch3jit11SourceRange9highlightERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE + 53 (0x1099e65c5 in ImageSegmentation)
frame #7: ZNK5torch3jit11ErrorReport4whatEv + 320 (0x1099d2138 in ImageSegmentation)
frame #8: -[TorchModule + + (0x10ae8d525 in ImageSegmentation)
frame #9: $sSo11TorchModuleC10fileAtPathABSgSS_tcfcTO + 44 (0x10ae9ba5c in ImageSegmentation)
frame #10: $sSo11TorchModuleC10fileAtPathABSgSS_tcfC + 50 (0x10ae9ba22 in ImageSegmentation)
frame #11: $s17ImageSegmentation14ViewControllerC6module33_FBCB8EDF0C0E0F8ABFB0887BEEC9D7FCLLSo11TorchModuleCvgAGyXEfU + 540 (0x10ae9b91c in ImageSegmentation)
frame #12: $s17ImageSegmentation14ViewControllerC6module33_FBCB8EDF0C0E0F8ABFB0887BEEC9D7FCLLSo11TorchModuleCvg + 222 (0x10ae98a5e in ImageSegmentation)
frame #13: $s17ImageSegmentation14ViewControllerC7doInferyyypFyycfU + 288 (0x10ae99ab0 in ImageSegmentation)
frame #14: $sIeg_IeyB_TR + 48 (0x10ae9a5d0 in ImageSegmentation)
frame #15: _dispatch_call_block_and_release + 12 (0x10f2b87ec in libdispatch.dylib)
frame #16: _dispatch_client_callout + 8 (0x10f2b99c8 in libdispatch.dylib)
frame #17: _dispatch_queue_override_invoke + 1032 (0x10f2bbe46 in libdispatch.dylib)
frame #18: _dispatch_root_queue_drain + 351 (0x10f2cb508 in libdispatch.dylib)
frame #19: _dispatch_worker_thread2 + 135 (0x10f2cbe6d in libdispatch.dylib)
frame #20: _pthread_wqthread + 220 (0x10f7689f7 in libsystem_pthread.dylib)
frame #21: start_wqthread + 15 (0x10f767b77 in libsystem_pthread.dylib)
terminating with uncaught exception of type c10::Error: isTuple()INTERNAL ASSERT FAILED at "/Users/distiller/project/aten/src/ATen/core/ivalue_inl.h":1400, please report a bug to PyTorch. Expected Tuple but got String
Exception raised from toTuple at /Users/distiller/project/aten/src/ATen/core/ivalue_inl.h:1400 (most recent call first):
frame #0: _ZN3c105ErrorC1ENS_14SourceLocationENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE + 75 (0x10aef4113 in ImageSegmentation)
frame #1: _ZN3c106detail14torchCheckFailEPKcS2_jRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE + 106 (0x10aef2cf5 in ImageSegmentation)
frame #2: _ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE + 63 (0x10aef2e97 in ImageSegmentation)
frame #3: _ZNKR3c106IValue7toTupleEv + 135 (0x109994307 in ImageSegmentation)
frame #4: _ZN5torch3jit28ConcreteSourceRangeUnpickler8unpickleEv + 368 (0x10ac2c4ac in ImageSegmentation)
frame #5: _ZN5torch3jit28ConcreteSourceRangeUnpickler28findSourceRangeThatGeneratedERKNS0_11SourceRangeE + 27 (0x10ac2c78d in ImageSegmentation)
frame #6: ZNK5torch3jit11SourceRange9highlightERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE + 53 (0x1099e65c5 in ImageSegmentation)
frame #7: ZNK5torch3jit11ErrorReport4whatEv + 320 (0x1099d2138 in ImageSegmentation)
frame #8: -[TorchModule + + (0x10ae8d525 in ImageSegmentation)
frame #9: $sSo11TorchModuleC10fileAtPathABSgSS_tcfcTO + 44 (0x10ae9ba5c in ImageSegmentation)
frame #10: $sSo11TorchModuleC10fileAtPathABSgSS_tcfC + 50 (0x10ae9ba22 in ImageSegmentation)
frame #11: $s17ImageSegmentation14ViewControllerC6module33_FBCB8EDF0C0E0F8ABFB0887BEEC9D7FCLLSo11TorchModuleCvgAGyXEfU + 540 (0x10ae9b91c in ImageSegmentation)
frame #12: $s17ImageSegmentation14ViewControllerC6module33_FBCB8EDF0C0E0F8ABFB0887BEEC9D7FCLLSo11TorchModuleCvg + 222 (0x10ae98a5e in ImageSegmentation)
frame #13: $s17ImageSegmentation14ViewControllerC7doInferyyypFyycfU + 288 (0x10ae99ab0 in ImageSegmentation)
frame #14: $sIeg_IeyB_TR + 48 (0x10ae9a5d0 in ImageSegmentation)
frame #15: _dispatch_call_block_and_release + 12 (0x10f2b87ec in libdispatch.dylib)
frame #16: _dispatch_client_callout + 8 (0x10f2b99c8 in libdispatch.dylib)
frame #17: _dispatch_queue_override_invoke + 1032 (0x10f2bbe46 in libdispatch.dylib)
frame #18: _dispatch_root_queue_drain + 351 (0x10f2cb508 in libdispatch.dylib)
frame #19: _dispatch_worker_thread2 + 135 (0x10f2cbe6d in libdispatch.dylib)
frame #20: _pthread_wqthread + 220 (0x10f7689f7 in libsystem_pthread.dylib)
frame #21: start_wqthread + 15 (0x10f767b77 in libsystem_pthread.dylib)
CoreSimulator 732.18.6 - Device: iPhone 12 Pro Max (0032164F-A26D-44C2-9F39-C7417C3E8F86) - Runtime: iOS 14.4 (18D46) - DeviceType: iPhone 12 Pro Max
(lldb)
@jmdetloff I'm also getting the same error in the Image segmentation demo.
terminating with uncaught exception of type c10::Error: isTuple()INTERNAL ASSERT FAILED at "/Users/distiller/project/aten/src/ATen/core/ivalue_inl.h":1400, please report a bug to PyTorch. Expected Tuple but got String
Exception raised from toTuple at /Users/distiller/project/aten/src/ATen/core/ivalue_inl.h:1400 (most recent call first):
frame #0: _ZN3c105ErrorC1ENS_14SourceLocationENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE + 75 (0x10d888ac3 in ImageSegmentation)
frame #1: _ZN3c106detail14torchCheckFailEPKcS2_jRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE + 106 (0x10d8876c5 in ImageSegmentation)
frame #2: _ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE + 63 (0x10d887867 in ImageSegmentation)
frame #3: _ZNKR3c106IValue7toTupleEv + 135 (0x10c32fb27 in ImageSegmentation)
frame #4: _ZN5torch3jit28ConcreteSourceRangeUnpickler8unpickleEv + 368 (0x10d5c3aac in ImageSegmentation)
frame #5: _ZN5torch3jit28ConcreteSourceRangeUnpickler28findSourceRangeThatGeneratedERKNS0_11SourceRangeE + 27 (0x10d5c3d8d in ImageSegmentation)
frame #6: ZNK5torch3jit11SourceRange9highlightERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE + 53 (0x10c381c35 in ImageSegmentation)
frame #7: ZNK5torch3jit11ErrorReport4whatEv + 320 (0x10c36d858 in ImageSegmentation)
frame #8: -[TorchModule + + (0x10d8244f6 in ImageSegmentation)
frame #9: $sSo11TorchModuleC10fileAtPathABSgSS_tcfcTO + 44 (0x10d830d9c in ImageSegmentation)
frame #10: $sSo11TorchModuleC10fileAtPathABSgSS_tcfC + 58 (0x10d830d5a in ImageSegmentation)
frame #11: $s17ImageSegmentation14ViewControllerC6module33_FBCB8EDF0C0E0F8ABFB0887BEEC9D7FCLLSo11TorchModuleCvgAGyXEfU + 474 (0x10d830c4a in ImageSegmentation)
frame #12: $s17ImageSegmentation14ViewControllerC6module33_FBCB8EDF0C0E0F8ABFB0887BEEC9D7FCLLSo11TorchModuleCvg + 191 (0x10d82e71f in ImageSegmentation)
frame #13: $s17ImageSegmentation14ViewControllerC7doInferyyypFyycfU + 255 (0x10d82f56f in ImageSegmentation)
frame #14: $sIeg_IeyB_TR + 40 (0x10d82feb8 in ImageSegmentation)
frame #15: _dispatch_call_block_and_release + 12 (0x111313d18 in libdispatch.dylib)
frame #16: _dispatch_client_callout + 8 (0x111314f5b in libdispatch.dylib)
frame #17: _dispatch_queue_override_invoke + 1488 (0x111317a28 in libdispatch.dylib)
frame #18: _dispatch_root_queue_drain + 414 (0x111329e77 in libdispatch.dylib)
frame #19: _dispatch_worker_thread2 + 278 (0x11132ab17 in libdispatch.dylib)
frame #20: _pthread_wqthread + 256 (0x7ff836172c9d in libsystem_pthread.dylib)
frame #21: start_wqthread + 15 (0x7ff836171c67 in libsystem_pthread.dylib)
CoreSimulator 857.14 - Device: iPhone 11 (3869C1D6-668E-48BB-900A-8BBA717783CE) - Runtime: iOS 16.2 (20C52) - DeviceType: iPhone 11