Skip to content

Падение с 'NSInvalidArgumentException', reason: '-[__NSCFString appendString:]: nil argument' #33

@evgeny-sureev

Description

@evgeny-sureev

В нативное приложение встраиваем модуль на Флаттере, который использует карты.
Сам модуль открывается, но при переходе к экрану с картой происходит падение с вот такой ошибкой:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString appendString:]: nil argument'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001804f71d0 __exceptionPreprocess + 172
	1   libobjc.A.dylib                     0x000000018009c094 objc_exception_throw + 72
	2   CoreFoundation                      0x0000000180577488 -[__NSCFString characterAtIndex:].cold.1 + 0
	3   CoreFoundation                      0x0000000180426bdc -[__NSCFString insertString:atIndex:] + 0
	4   CoreFoundation                      0x0000000180426c7c -[__NSCFString deleteCharactersInRange:] + 0
	5   test2.debug.dylib                   0x0000000109714948 _ZZN6yandex4maps7runtime6device12_GLOBAL__N_116DeviceInfoHolderC1EvENKUlvE_clEv + 592
	6   test2.debug.dylib                   0x000000010970dec0 _ZN6yandex4maps7runtime19platform_dispatcher8internal15runPlatformTaskERKNSt3__18functionIFvvEEE + 44
	7   test2.debug.dylib                   0x0000000109714418 _ZN6yandex4maps7runtime6device12_GLOBAL__N_116DeviceInfoHolderC1Ev + 112
	8   test2.debug.dylib                   0x0000000109714208 _ZN6yandex4maps7runtime9singletonINS1_6device12_GLOBAL__N_116DeviceInfoHolderEEERT_v + 80
	9   test2.debug.dylib                   0x00000001097141ac _ZN6yandex4maps7runtime6device14pixelsPerPointEv + 12
	10  test2.debug.dylib                   0x000000010a2ec338 _ZN6yandex4maps6mapkit8internal14MapKitLiteImplC2Ev + 236
	11  test2.debug.dylib                   0x000000010a2df464 _ZN6yandex4maps6mapkit8internal14MapKitFullImplC2Ev + 56
	12  test2.debug.dylib                   0x000000010a2e5474 _ZNSt3__120__shared_ptr_emplaceIN6yandex4maps6mapkit8internal14MapKitFullImplENS_9allocatorIS5_EEEC2B8ne180100IJES7_Li0EEES7_DpOT_ + 36
	13  test2.debug.dylib                   0x000000010a2e5424 _ZNSt3__115allocate_sharedB8ne180100IN6yandex4maps6mapkit8internal14MapKitFullImplENS_9allocatorIS5_EEJEvEENS_10shared_ptrIT_EERKT0_DpOT1_ + 32
	14  test2.debug.dylib                   0x000000010a2e5370 _ZN6yandex4maps7runtime22makeWeakPlatformObjectINS0_6mapkit8internal14MapKitFullImplES5_JEEENSt3__110shared_ptrIT0_EEDpOT1_ + 28
	15  test2.debug.dylib                   0x000000010a2e5270 _ZN6yandex4maps6mapkit8internal12MapKitHolderC2Ev + 36
	16  test2.debug.dylib                   0x000000010a2e51f4 _ZN6yandex4maps7runtime9singletonINS0_6mapkit8internal12MapKitHolderEEERT_v + 80
	17  test2.debug.dylib                   0x000000010a2e518c _ZN6yandex4maps6mapkit8internal9getMapKitEv + 12
	18  test2.debug.dylib                   0x000000010a820a44 _ZN6yandex4maps6mapkit9transport8internal13TransportImplC2Ev + 72
	19  test2.debug.dylib                   0x000000010a822430 _ZNSt3__120__shared_ptr_emplaceIN6yandex4maps6mapkit9transport8internal13TransportImplENS_9allocatorIS6_EEEC2B8ne180100IJES8_Li0EEES8_DpOT_ + 36
	20  test2.debug.dylib                   0x000000010a8223e0 _ZNSt3__115allocate_sharedB8ne180100IN6yandex4maps6mapkit9transport8internal13TransportImplENS_9allocatorIS6_EEJEvEENS_10shared_ptrIT_EERKT0_DpOT1_ + 32
	21  test2.debug.dylib                   0x000000010a82232c _ZN6yandex4maps7runtime22makeWeakPlatformObjectINS0_6mapkit9transport8internal13TransportImplES6_JEEENSt3__110shared_ptrIT0_EEDpOT1_ + 28
	22  test2.debug.dylib                   0x000000010a820894 _ZN6yandex4maps6mapkit9transport15TransportHolderC2Ev + 32
	23  test2.debug.dylib                   0x000000010a8209bc _ZN6yandex4maps7runtime9singletonINS0_6mapkit9transport15TransportHolderEEERT_v + 80
	24  test2.debug.dylib                   0x000000010a820960 _ZN6yandex4maps6mapkit9transport8instanceEv + 12
	25  test2.debug.dylib                   0x000000010a820388 yandex_flutter_transport_TransportFactory_get_instance + 12
	26  ???                                 0x000000013579d934 0x0 + 5192145204
	27  ???                                 0x000000013579cf2c 0x0 + 5192142636
	28  ???                                 0x000000013579cde8 0x0 + 5192142312
	29  ???                                 0x000000013579c8e0 0x0 + 5192141024
	30  ???                                 0x000000013579c6bc 0x0 + 5192140476
	31  ???                                 0x0000000135799208 0x0 + 5192126984
	32  ???                                 0x0000000135798b54 0x0 + 5192125268
	33  ???                                 0x0000000134f7601c 0x0 + 5183594524
	34  ???                                 0x0000000132aa2718 0x0 + 5144979224
	35  ???                                 0x0000000132aa1ee8 0x0 + 5144977128
	36  ???                                 0x0000000132a9eed4 0x0 + 5144964820
	37  ???                                 0x0000000132a9b148 0x0 + 5144949064
	38  ???                                 0x0000000132a9a178 0x0 + 5144945016
	39  ???                                 0x0000000132aa40b8 0x0 + 5144985784
	40  ???                                 0x0000000132aa2718 0x0 + 5144979224
	41  ???                                 0x0000000132aa1ee8 0x0 + 5144977128
	42  ???                                 0x0000000132a9eed4 0x0 + 5144964820
	43  ???                                 0x0000000132d85794 0x0 + 5148006292
	44  ???                                 0x0000000132a9b148 0x0 + 5144949064
	45  ???                                 0x0000000132a9a178 0x0 + 5144945016
	46  ???                                 0x0000000132aa40b8 0x0 + 5144985784
	47  ???                                 0x0000000132aa2718 0x0 + 5144979224
	48  ???                                 0x0000000132aa1ee8 0x0 + 5144977128
	49  ???                                 0x0000000132a9eed4 0x0 + 5144964820
	50  ???                                 0x0000000132d82dac 0x0 + 5147995564
	51  ???                                 0x0000000132a9b148 0x0 + 5144949064
	52  ???                                 0x0000000132a9a178 0x0 + 5144945016
	53  ???                                 0x0000000132aa40b8 0x0 + 5144985784
	54  ???                                 0x0000000132aa2718 0x0 + 5144979224
	55  ???                                 0x0000000132aa1ee8 0x0 + 5144977128
	56  ???                                 0x0000000132a9eed4 0x0 + 5144964820
	57  ???                                 0x0000000132a9b148 0x0 + 5144949064
	58  ???                                 0x0000000132a9a178 0x0 + 5144945016
	59  ???                                 0x0000000132aa40b8 0x0 + 5144985784
	60  ???                                 0x0000000132aa2718 0x0 + 5144979224
	61  ???                                 0x0000000132aa1ee8 0x0 + 5144977128
	62  ???                                 0x0000000132a9eed4 0x0 + 5144964820
	63  ???                                 0x0000000132a9b148 0x0 + 5144949064
	64  ???                                 0x0000000132a9a178 0x0 + 5144945016
	65  ???                                 0x0000000134074d10 0x0 + 5167861008
	66  ???                                 0x0000000132a9b148 0x0 + 5144949064
	67  ???                                 0x0000000132a9a178 0x0 + 5144945016
	68  ???                                 0x0000000132aa40b8 0x0 + 5144985784
	69  ???                                 0x0000000132aa2718 0x0 + 5144979224
	70  ???                                 0x0000000132aa1ee8 0x0 + 5144977128
	71  ???                                 0x0000000132a9eed4 0x0 + 5144964820
	72  ???                                 0x0000000132a9b148 0x0 + 5144949064
	73  ???                                 0x0000000132a9a178 0x0 + 5144945016
	74  ???                                 0x0000000134074d10 0x0 + 5167861008
	75  ???                                 0x0000000132a9b148 0x0 + 5144949064
	76  ???                                 0x0000000132a9a178 0x0 + 5144945016
	77  ???                                 0x0000000134074d10 0x0 + 5167861008
	78  ???                                 0x0000000132a9b148 0x0 + 5144949064
	79  ???                                 0x0000000132a9a178 0x0 + 5144945016
	80  ???                                 0x0000000132aa40b8 0x0 + 5144985784
	81  ???                                 0x0000000132aa37a4 0x0 + 5144983460
	82  ???                                 0x0000000132aa2718 0x0 + 5144979224
	83  ???                   
libc++abi: terminating due to uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString appendString:]: nil argument'
terminating due to uncaught exception of type NSException
CoreSimulator 1051.9.4 - Device: iPhone 17 Pro (54E731B9-937B-4E9A-9616-86B0DC27B5B3) - Runtime: iOS 26.1 (23B80) - DeviceType: iPhone 17 Pro

Подскажите, пожалуйста, что поправить.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions