2 aind 0 Aind_0 于 2016.02.26 22:02 提问

【又是10个字】求前辈看看这个memtrack是个啥子问题?

这是用as做的一个仿how old 应用,向服务器发送请求又不能返回数据,日志中有一行说responseCode是400,不知道是不是就是没有数据的问题,还出现这么一大堆什么不能加载什么模块的error,求高手指点~~

02-26 08:33:22.999 29602-29602/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-26 08:33:22.999 29602-29602/? E/android.os.Debug: failed to load memtrack module: -2
02-26 08:33:24.119 29624-29624/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-26 08:33:24.119 29624-29624/? E/android.os.Debug: failed to load memtrack module: -2
02-26 08:33:24.611 29634-29634/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from GradienCache
02-26 08:33:24.611 29634-29634/? E/OpenGLRenderer: MAX_TEXTURE_SIZE: 8192
02-26 08:33:24.623 29634-29634/? E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
02-26 08:33:24.623 29634-29634/? E/OpenGLRenderer: MAX_TEXTURE_SIZE: 8192
02-26 08:47:14.225 9534-9534/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-26 08:47:14.225 9534-9534/? E/android.os.Debug: failed to load memtrack module: -2
02-26 08:47:14.441 536-568/system_process E/InputDispatcher: channel '529a8d94 aind.myapplication/aind.myapplication.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
02-26 08:47:15.601 9578-9578/? E/memtrack: Couldn't load memtrack module (No such file or directory)
02-26 08:47:15.601 9578-9578/? E/android.os.Debug: failed to load memtrack module: -2
02-26 08:47:16.493 9588-9588/aind.myapplication E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from GradienCache
02-26 08:47:16.493 9588-9588/aind.myapplication E/OpenGLRenderer: MAX_TEXTURE_SIZE: 8192
02-26 08:47:16.501 9588-9588/aind.myapplication E/OpenGLRenderer: Getting MAX_TEXTURE_SIZE from Caches::initConstraints()
02-26 08:47:16.509 9588-9588/aind.myapplication E/OpenGLRenderer: MAX_TEXTURE_SIZE: 8192

另附上请求json数据的代码:

 try {
                    /***
                     * 将传入的bitmap转换为二进制数组,并通过PostParameters进行压缩
                     * 然后通过HttpRequests的detectionDetect()方法得到返回的JSONObject
                     */
                    HttpRequests requests = new HttpRequests(constant.KEY,
                            constant.SECRET, true, true);
                    Bitmap bmSmall = Bitmap.createBitmap(bm, 0, 0,
                            bm.getWidth(), bm.getHeight());
                    ByteArrayOutputStream stream = new ByteArrayOutputStream();
                    bmSmall.compress(Bitmap.CompressFormat.JPEG, 100, stream);
                    byte[] arrays = stream.toByteArray();
                    PostParameters prameter = new PostParameters();
                    prameter.setImg(arrays);
                    JSONObject jsonObject = requests.detectionDetect();
                    //将JSONObject数据toString后打印日志
                    Log.e("TAG", jsonObject.toString());

                    if (callback != null) {
                        callback.success(jsonObject);
                    }

                } catch (FaceppParseException e) {
                    e.printStackTrace();
                    if (callback != null) {
                        callback.error(e);
                    }
                }

1个回答

devmiao
devmiao   Ds   Rxr 2016.02.28 07:08

Couldn't load memtrack module (No such file or directory)
检查下路径的问题文件没找到

Aind_0
Aind_0 姐姐~~(我很乖的,先叫姐姐),你所说的“路径的问题”意思是我请求数据的url地址有问题吗?
接近 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!