MultibyteDescription icon indicating copy to clipboard operation
MultibyteDescription copied to clipboard

po error.

Open Whirlwind opened this issue 12 years ago • 7 comments

(lldb) po ds (3454,0xac3fda28) malloc: *** mmap(size=566284288) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug (3454,0xac3fda28) malloc: *** mmap(size=377524224) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug $14 = 0x17660280 [no Objective-C description available]

the ds should be a array with NSDictionary, and dictionary's value is multibyte string.

Whirlwind avatar Jul 08 '13 06:07 Whirlwind

Thanks for feedback. But currently, I don't have good solution for this...

inamiy avatar Jul 09 '13 05:07 inamiy

Can you disable it if it is a array?

Whirlwind avatar Jul 09 '13 06:07 Whirlwind

No, it will then stop converting all of array string-values. I recommend to comment-out [MultibyteDescription install] when you debug with LLDB.

inamiy avatar Jul 09 '13 06:07 inamiy

The reason is that I use LLDB debugger?

Whirlwind avatar Jul 09 '13 06:07 Whirlwind

I think so. LLDB's print-object seems to convert multibyte-string successfully without using MultibyteDescription.

inamiy avatar Jul 09 '13 06:07 inamiy

I don't think so. I still get not multibyte-string successfully. I use LLDB at long ago...

Whirlwind avatar Jul 09 '13 06:07 Whirlwind

Demo app WITHOUT using MultibyteDescription:

(lldb) po arr
$1 = 0x0000000100114db0 <__NSArrayI 0x100114db0>(
あいうえお,
カキクケコ,
abcde,
<__NSArrayI 0x100114f90>(
らりるれろ,
らりるれろ
)
,
{
    English = hello;
    "\Ud55c\Uad6d\Uc5b4" = "\Uc548\Ub155\Ud558\Uc138\Uc694";
    "\U4e2d\U6587" = "\U4f60\U597d";
    "\U65e5\U672c\U8a9e" = "\U3053\U3093\U306b\U3061\U306f";
}
)

It seems multibyte string partially works in LLDB, but this will surely interfere with MultibyteDescription.

inamiy avatar Jul 09 '13 06:07 inamiy