NSDictionary 키의 값을 가져올 수 없습니다. 오류가 발생했습니다. 프로세스가 식 평가 전 상태로 돌아 왔습니다.

Bolerovt

어떤 시체가이 버그에서 나를 도울 수 있습니까? NSDictionary 얻을 수 hiinIdPair있지만 tmpId값을 얻으려고 할 때 hiinIdPair다음 오류가 발생합니다.

error: Execution was interrupted, reason: signal SIGABRT.

아래는 lldb 정보를 따릅니다.

(lldb) po hiinIdPair["tmpId"]
iV_Starter(371,0x198ebb310) malloc: *** error for object 0x10a7ddbb0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
error: Execution was interrupted, reason: signal SIGABRT.
The process has been returned to the state before expression evaluation.
(lldb) po hiinIdPair
{
    mongoId = 5521ae815730c6051476f8b1;
    tmpId = "#h20150405a215200a506705";
}

이 변수를 사용하고있는 코드 :

var hiinIdPair = idPkg["hiin"] as NSDictionary
  if hiinPkg_7.tmpId == hiinIdPair["tmpId"]   as String {
    hiinPkg_7.hiin.id = hiinIdPair["mongoId"] as String
    ...
  }
Bolerovt

코드의 다른 부분에서 버그 인 것 같습니다. 코드는 버그로 종료됩니다.

어쨌든 도움을 주셔서 감사합니다!

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

Related 관련 기사

뜨겁다태그

보관