Closed hejunbinlan closed 10 years ago
我想使用橡皮擦的功能,设置命令如下:mViewHelper.setCommand("erase");,然后视图在绘制的图形中擦擦,一触摸就报错了,能看到的错误如下: 05-25 22:27:01.990: W/dalvikvm(5651): JNI WARNING: JNI function NewLocalRef called with exception pending 05-25 22:27:01.990: W/dalvikvm(5651): in Lrhcad/touchvg/core/touchvgJNI;.GiCoreView_onGesture__SWIG_0:(JLrhcad/touchvg/core/GiCoreView;JLrhcad/touchvg/core/GiView;IIFFZ)Z (NewLocalRef) 05-25 22:27:01.990: W/dalvikvm(5651): Pending exception is: 05-25 22:27:02.000: E/dalvikvm(5651): VM aborting 05-25 22:27:02.000: Abc(5651): Fatal signal 6 (SIGABRT) at 0x00001613 (code=-6), thread 5651 (nheng.yixueeben) 请问有人用过此功能吗?应该怎么解决?是不是我使用的方式有问题?
仅从这几行日志上无法看出是什么问题,我这没这个问题。使用方式问题需要知道你调用的代码。你在线程(nheng.yixueeben)中调用onGesture了吗?
我想使用橡皮擦的功能,设置命令如下:mViewHelper.setCommand("erase");,然后视图在绘制的图形中擦擦,一触摸就报错了,能看到的错误如下: 05-25 22:27:01.990: W/dalvikvm(5651): JNI WARNING: JNI function NewLocalRef called with exception pending 05-25 22:27:01.990: W/dalvikvm(5651): in Lrhcad/touchvg/core/touchvgJNI;.GiCoreView_onGesture__SWIG_0:(JLrhcad/touchvg/core/GiCoreView;JLrhcad/touchvg/core/GiView;IIFFZ)Z (NewLocalRef) 05-25 22:27:01.990: W/dalvikvm(5651): Pending exception is: 05-25 22:27:02.000: E/dalvikvm(5651): VM aborting 05-25 22:27:02.000: Abc(5651): Fatal signal 6 (SIGABRT) at 0x00001613 (code=-6), thread 5651 (nheng.yixueeben) 请问有人用过此功能吗?应该怎么解决?是不是我使用的方式有问题?