在集成了imobile for android 后,按照集成文档的步骤安装完apk后,点击打开场景,出现了屏幕闪屏一下白色覆盖画面,如下图1,是点击了打开场景后画面闪了一下出现的现象;图2为点击前的状态
图1
图2
1,版本是10.1.2
2,初始化的时候也会出现该现象,点击打开场景会闪一下,opne的返回值是false;
请问是什么原因导致open的结果是false,
代码如下:
boolean initialization = Environment.initialization(this); Log.i(HEAD,"initialization >> " + initialization);
// 获取Scene com.supermap.realspace.Scene scene = mControl.getScene(); // 根据url,通过已知的场景名称打开场景 boolean open = scene.open(url, sceneName); Log.i(HEAD,"open scene result >> " + open);
initialization 的结果为true , open的结果为 false
其中url是
http://192.168.102.103:50300/iserver/services/{场景名称}/rest/realspace
sceneName 是{场景名称}
直接在浏览器访问url的界面如下
非常感谢,刚才发现是sceneName传错了,现在open 返回了true , 但是 crash 了,下面是相关日志,好像是挂到c++层里面了,请问这个大概是啥原因导致的
2021-08-13 15:33:56.217 7436-7436/com.aiwinn.map3d I/MainActivity: open scene result >> true 2021-08-13 15:33:56.220 7436-7469/com.aiwinn.map3d D/OpenGLRenderer: ProgramCache.generateProgram: 103084458052 2021-08-13 15:33:56.301 7436-7468/com.aiwinn.map3d D/MALI: gles_state_set_error_internal:75: [MALI] GLES ctx: 0xd5180008, error code:0x500 2021-08-13 15:33:56.301 7436-7468/com.aiwinn.map3d D/MALI: gles_state_set_error_internal:76: [MALI] GLES error info: <format> is not an accepted value 2021-08-13 15:33:56.301 7436-7468/com.aiwinn.map3d I/OGRE: Texture: 4110226908_cf25c800_4_OSGB: Loading 1 faces(PF_DXT5,256x128x1) with 0 custom mipmaps from Image. Internal format is PF_FLOAT16_R,256x128x1.
2021-08-13 15:33:56.301 7436-7468/com.aiwinn.map3d E/OGRE: OGRE EXCEPTION(9:UnimplementedException): This method can not be used to compress or decompress images in PixelUtil::bulkPixelConversion at /run/media/root/988a9695-129a-4f6c-8fb9-04f13bc0968e/df/map/software/SourceCode/Android64/jni/LibShared/OGRE1.9_ES3/OgreMain/src/OgrePixelFormat.cpp (line 712)
2021-08-13 15:33:56.303 7436-7468/com.aiwinn.map3d A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 7468 (Thread-3)