How to get verbose log output on Android?

Hi, I am trying to redirect verbose log output from gstreamer to logcat, but encount crash while using gst_debug_set_default_threshold(GST_LEVEL_LOG);

Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x7300000000 in tid 23384 (queue_source:sr), pid 23331 (streamerandroid)

can someone give me some advice? thanks!

backtrace:

base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000) (gst_debug_log_valist+96)
base.apk!libgstreamer_android.so (offset 0x28e8000) (gst_debug_log+20)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000) (gst_pad_push+168)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000) (gst_pad_push+168)
base.apk!libgstreamer_android.so (offset 0x28e8000) (gst_base_parse_push_frame+1148)
base.apk!libgstreamer_android.so (offset 0x28e8000) (gst_base_parse_finish_frame+788)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000) (gst_pad_push+168)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000) (gst_pad_push+168)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)
base.apk!libgstreamer_android.so (offset 0x28e8000)

My pipeline is simple: rtspsrc location=%s ! queue ! rtph264depay ! h264parse ! mppvideodec ! glimagesink;
I am working on gstreamer tag 1.22.2, works great without
setting gst_debug_set_default_threshold(GST_LEVEL_LOG).