Can't recognize plugins

Subforum for discussion and help with ScummVM's Android port

Moderator: ScummVM Team

Thurisaz
Posts: 4
Joined: Mon Feb 17, 2014 7:06 pm

Can't recognize plugins

Post by Thurisaz »

My phone is Xiaomi Red Rice and I've tried with ScummVM 1.5 and 1.6 (1.7 dev version can't install for some reason). ScummVM installs and runs fine, but can't find any plugins, even though I've installed (and reinstalled) them numerous times from the same package I got ScummVM from. I've put correct path to the plugins in the ScummVM options. Somehow any available engines simply do not appear.

Could it be because of the operating system (MIUI), which is CyanoGen based, and possibly somehow incompatible with some versions of ScummVM?

ScummVM SDL recognizes plugins fine - it even runs the games - but the app's keyboard seems somehow bugged and doesn't either work or turn off no matter what I do.
LoWang
Posts: 6
Joined: Mon Aug 30, 2010 9:08 pm

Post by LoWang »

I have the same problem on my Xiaomi mi2s! It worked once but I have no idea why. Then it stopped but I don't know what changed. Maybe the problem is that plug-ins are by default in system area data/data and you cannot view this in file manager unless it has root rights, so maybe scumm cannot see there as well? I tried moving one plugin folder onto internal storage and changed path in scumm settings to point there but still it does not load it.
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

We have fixed some minor issues recently, so I would suggest using the latest v1.7.0 daily build from:
http://buildbot.scummvm.org/snapshots/m ... latest.zip

You need to remove all currently installed ScummVM versions and plugins before you install a daily build and enable installation from third party sources. See here for full instructions:
http://wiki.scummvm.org/index.php/Andro ... ily_Builds

If this still doesn't fix immediately, if you could look at the relevant section of the Android Debug Log using alogcat or adb, this will likely have some relevant information on whether plugins are being detected and loaded, so if you can link a pastebin or similar here of the relevant log, we can look at this:
http://wiki.scummvm.org/index.php/Debug ... VM#Android
LoWang
Posts: 6
Joined: Mon Aug 30, 2010 9:08 pm

Post by LoWang »

Can't install the newer version. If I open the scummvm.apk file it says it will replace currently installed scummvm 1.5 and if I wish to continue. I click yes and install and then after a second it says application is not installed. Should I manually replace the current apk file of scummvm 1.5?
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

LoWang: Please try _READING_ the links I sent you!
This is covered in the first line of http://wiki.scummvm.org/index.php/Andro ... ily_Builds :

"You will need to uninstall all currently installed ScummVM versions including all plugins, as you can not install a daily build alongside the stable release."
User avatar
criezy
ScummVM Developer
Posts: 949
Joined: Sat Sep 23, 2006 10:41 am
Location: West Sussex, UK

Post by criezy »

LoWang wrote:Can't install the newer version. If I open the scummvm.apk file it says it will replace currently installed scummvm 1.5 and if I wish to continue. I click yes and install and then after a second it says application is not installed. Should I manually replace the current apk file of scummvm 1.5?
It seems to me this part of the previous message answers your question:
digitall wrote:You need to remove all currently installed ScummVM versions and plugins before you install a daily build and enable installation from third party sources. See here for full instructions:
http://wiki.scummvm.org/index.php/Andro ... ily_Builds
LoWang
Posts: 6
Joined: Mon Aug 30, 2010 9:08 pm

Post by LoWang »

Oh I only uninstalled the app itself and it did not work. It did not cross my mind that plugins may cause this. So I have it installed and also some plugins but unfortunately they still cannot be loaded, so I guess I will try that debugging if possible...
Timiditas
Posts: 28
Joined: Thu Oct 18, 2012 8:37 pm

Post by Timiditas »

if you can for whatever reason not get the logs, download this from the playstore
https://play.google.com/store/apps/deta ... gcat&hl=de
it can record log events, does NOT need a rooted phone (except on jelly bean) to work and sports a nice widget. this made this real easy for me.
just install it, put the widget next to your scummvm app symbol. (<- this is optional but convenient)

Now click the widget, it will request a filename. just click ok/record/next whatever appears for you to continue. it will say something like 'recording now'
then start scummvm and try to add a game. then quit scummvm and click the widget of catlog again. recording will stop and you will be presented with the recorded log. just push your home button and move the log from your phone to your pc to post it somewhere on the net.
the logs will be in /mnt/sdcard/catlog/saved_logs
It is advisable to rename the log after you recorded it, so you know what is what. Or just give it a proper name directly when it asks for a filename.
Thurisaz
Posts: 4
Joined: Mon Feb 17, 2014 7:06 pm

Post by Thurisaz »

I tried removing all traces of ScummVM & plugins, then installing the 1.7. build scummvm.apk and then scummvm-engine-scumm.apk . Then I went to ScummVM, tried to use it and failed, after which I corrected the plugin directory to where the scummvm-engine-scumm.apk is. Nothing happens. It still finds no engines whatsoever.

Here's the log:
  • 04-20 20:07:47.078 I/ScummVM (22390): Starting next activity with intent Intent { flg=0x1000000 cmp=org.scummvm.scummvm/.ScummVMActivity (has extras) }
    04-20 20:07:47.379 D/ScummVM (22390): Hover available: true
    04-20 20:07:47.380 D/ScummVM (22390): onStart
    04-20 20:07:47.380 D/ScummVM (22390): onResume
    04-20 20:07:47.383 I/ScummVM (22390): Using 16384 bytes buffer for 44100Hz audio
    04-20 20:07:47.426 D/ScummVM (22390): surfaceCreated
    04-20 20:07:47.426 D/ScummVM (22390): surfaceChanged: 1280x720 (4)
    04-20 20:07:47.443 D/ScummVM (22390): EGL configs:
    04-20 20:07:47.448 D/ScummVM (22390): [1] RGBA8888 D24 S8 W P (9982)
    04-20 20:07:47.448 D/ScummVM (22390): [2] RGBA8888 W P (10034)
    04-20 20:07:47.449 D/ScummVM (22390): [3] RGBA8888 D24 S8 MSAAx4 W P (9582)
    04-20 20:07:47.450 D/ScummVM (22390): [4] RGB888 D24 S8 W P (10000)
    04-20 20:07:47.454 D/ScummVM (22390): [5] RGB888 W P (10052)
    04-20 20:07:47.455 D/ScummVM (22390): [6] RGB888 D24 S8 MSAAx4 W P (9600)
    04-20 20:07:47.456 D/ScummVM (22390): [7] RGB565 D24 S8 W P (10008)
    04-20 20:07:47.456 D/ScummVM (22390): [8] RGB565 W P (10060)
    04-20 20:07:47.461 D/ScummVM (22390): [9] RGB565 D24 S8 MSAAx4 W P (9608)
    04-20 20:07:47.463 D/ScummVM (22390): [14] RGBA8888 D24 S8 W P (9982)
    04-20 20:07:47.463 D/ScummVM (22390): [15] RGBA8888 W P (10034)
    04-20 20:07:47.464 D/ScummVM (22390): [16] RGBA8888 D24 S8 MSAAx4 W (9582)
    04-20 20:07:47.465 D/ScummVM (22390): [17] RGB888 D24 S8 W P (10000)
    04-20 20:07:47.465 D/ScummVM (22390): [18] RGB888 W P (10052)
    04-20 20:07:47.466 D/ScummVM (22390): [19] RGB888 D24 S8 MSAAx4 W (9600)
    04-20 20:07:47.467 D/ScummVM (22390): [20] RGB565 D24 S8 W P (10008)
    04-20 20:07:47.467 D/ScummVM (22390): [21] RGB565 W P (10060)
    04-20 20:07:47.468 D/ScummVM (22390): [22] RGB565 D24 S8 MSAAx4 W (9608)
    04-20 20:07:47.468 D/ScummVM (22390): Chosen EGL config: [8] RGB565 W P
    04-20 20:07:47.480 I/ScummVM (22390): ScummVM 1.7.0git6367-ge76a890 (Apr 20 2014 05:18:29)
    04-20 20:07:47.480 I/ScummVM (22390): Running on: [Xiaomi] [2013023] [Xiaomi] [Xiaomi/2013023/HM2013023:4.2.2/HM2013023/JHBCNAL5.0:user/release-keys] [JHBCNAL5.0] SDK:17 ABI:armeabi-v7a
    04-20 20:07:47.480 I/ScummVM (22390): Entering scummvm_main with 4 args
    04-20 20:07:47.482 D/ScummVM (22390): Using configuration file: /data/data/org.scummvm.scummvm/files/scummvmrc
    04-20 20:07:47.486 W/ScummVM (22390): WARNING: Failed loading symbol 'PLUGIN_getVersion' from plugin '/data/data/org.scummvm.scummvm/cache/libscummvm.so' (Symbol not found: load_library(linker.cpp:745): library "libPVROCL.so" not found)!
    04-20 20:07:47.488 D/ScummVM (22390): initializing surface
    04-20 20:07:47.523 I/ScummVM (22390): Using EGL 1.4 Android META-EGL (Android); GL OpenGL ES-CM 1.1/PowerVR SGX 544MP (Imagination Technologies)
    04-20 20:07:47.523 I/ScummVM (22390): Extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_OES_egl_sync GL_IMG_vertex_array_object GL_APPLE_texture_2D_limited_npot
    04-20 20:07:47.523 D/ScummVM (22390): initializing viewport
    04-20 20:07:47.524 I/ScummVM (22390): overlay size is 640x360
    04-20 20:08:11.507 I/ScummVM (22390): scummvm_main exited with code 0
    04-20 20:08:11.545 D/ScummVM (22390): Destroying texture 100271
    04-20 20:08:11.546 D/ScummVM (22390): Destroying texture 315638026
    04-20 20:08:11.548 D/ScummVM (22390): Destroying texture 534244737
    04-20 20:08:11.550 D/ScummVM (22390): deinitializing surface
    04-20 20:08:19.306 E/ActivityThread(21514): Failed to find provider info for com.xiaomi.gamecenter.miui.recommend
    04-20 20:08:22.912 D/libc-netbsd(126): getaddrinfo: safebrowsing.google.com NO result from proxy
    04-20 20:08:22.913 D/libc-netbsd(126): res_queryN name = safebrowsing.google.com, class = 1, type = 1
    04-20 20:08:23.571 E/CellLocation(500): create GsmCellLocation
    04-20 20:08:23.707 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:23.709 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:23.722 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:23.816 D/libc-netbsd(126): res_queryN name = safebrowsing.google.com succeed
    04-20 20:08:23.817 D/libc-netbsd(21383): getaddrinfo: safebrowsing.google.com get result from proxy >>
    04-20 20:08:24.177 E/NativeCrypto(21383): ssl=0x5d972fc8 cert_verify_callback x509_store_ctx=0x5ed8aab0 arg=0x0
    04-20 20:08:24.185 E/NativeCrypto(21383): ssl=0x5d972fc8 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA
    04-20 20:08:25.851 I/com.amazon.identity.auth.device.authorization.PackageIntentRecei(21643): Package Intent Received. Clearing Service Data. action=android.intent.action.PACKAGE_ADDED
    04-20 20:08:25.851 I/com.amazon.identity.auth.device.authorization.ThirdPartyServiceH(21643): Clearing Highest Versioned Service
    04-20 20:08:29.103 E/CellLocation(500): create GsmCellLocation
    04-20 20:08:29.250 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:29.252 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:29.270 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:33.726 I/ScummVM (22524): Starting next activity with intent Intent { flg=0x1000000 cmp=org.scummvm.scummvm/.ScummVMActivity (has extras) }
    04-20 20:08:34.039 D/ScummVM (22524): Hover available: true
    04-20 20:08:34.040 D/ScummVM (22524): onStart
    04-20 20:08:34.041 D/ScummVM (22524): onResume
    04-20 20:08:34.043 I/ScummVM (22524): Using 16384 bytes buffer for 44100Hz audio
    04-20 20:08:34.067 D/ScummVM (22524): surfaceCreated
    04-20 20:08:34.067 D/ScummVM (22524): surfaceChanged: 1280x720 (4)
    04-20 20:08:34.094 D/ScummVM (22524): EGL configs:
    04-20 20:08:34.097 D/ScummVM (22524): [1] RGBA8888 D24 S8 W P (9982)
    04-20 20:08:34.098 D/ScummVM (22524): [2] RGBA8888 W P (10034)
    04-20 20:08:34.104 D/ScummVM (22524): [3] RGBA8888 D24 S8 MSAAx4 W P (9582)
    04-20 20:08:34.105 D/ScummVM (22524): [4] RGB888 D24 S8 W P (10000)
    04-20 20:08:34.106 D/ScummVM (22524): [5] RGB888 W P (10052)
    04-20 20:08:34.107 D/ScummVM (22524): [6] RGB888 D24 S8 MSAAx4 W P (9600)
    04-20 20:08:34.107 D/ScummVM (22524): [7] RGB565 D24 S8 W P (10008)
    04-20 20:08:34.108 D/ScummVM (22524): [8] RGB565 W P (10060)
    04-20 20:08:34.109 D/ScummVM (22524): [9] RGB565 D24 S8 MSAAx4 W P (9608)
    04-20 20:08:34.110 D/ScummVM (22524): [14] RGBA8888 D24 S8 W P (9982)
    04-20 20:08:34.111 D/ScummVM (22524): [15] RGBA8888 W P (10034)
    04-20 20:08:34.111 D/ScummVM (22524): [16] RGBA8888 D24 S8 MSAAx4 W (9582)
    04-20 20:08:34.112 D/ScummVM (22524): [17] RGB888 D24 S8 W P (10000)
    04-20 20:08:34.112 D/ScummVM (22524): [18] RGB888 W P (10052)
    04-20 20:08:34.113 D/ScummVM (22524): [19] RGB888 D24 S8 MSAAx4 W (9600)
    04-20 20:08:34.114 D/ScummVM (22524): [20] RGB565 D24 S8 W P (10008)
    04-20 20:08:34.114 D/ScummVM (22524): [21] RGB565 W P (10060)
    04-20 20:08:34.115 D/ScummVM (22524): [22] RGB565 D24 S8 MSAAx4 W (9608)
    04-20 20:08:34.115 D/ScummVM (22524): Chosen EGL config: [8] RGB565 W P
    04-20 20:08:34.127 I/ScummVM (22524): ScummVM 1.7.0git6367-ge76a890 (Apr 20 2014 05:18:29)
    04-20 20:08:34.127 I/ScummVM (22524): Running on: [Xiaomi] [2013023] [Xiaomi] [Xiaomi/2013023/HM2013023:4.2.2/HM2013023/JHBCNAL5.0:user/release-keys] [JHBCNAL5.0] SDK:17 ABI:armeabi-v7a
    04-20 20:08:34.127 I/ScummVM (22524): Entering scummvm_main with 4 args
    04-20 20:08:34.128 D/ScummVM (22524): Using configuration file: /data/data/org.scummvm.scummvm/files/scummvmrc
    04-20 20:08:34.133 W/ScummVM (22524): WARNING: Failed loading symbol 'PLUGIN_getVersion' from plugin '/data/data/org.scummvm.scummvm/cache/libscummvm.so' (Symbol not found: load_library(linker.cpp:745): library "libPVROCL.so" not found)!
    04-20 20:08:34.133 D/ScummVM (22524): initializing surface
    04-20 20:08:34.164 I/ScummVM (22524): Using EGL 1.4 Android META-EGL (Android); GL OpenGL ES-CM 1.1/PowerVR SGX 544MP (Imagination Technologies)
    04-20 20:08:34.164 I/ScummVM (22524): Extensions: GL_EXT_debug_marker GL_OES_byte_coordinates GL_OES_fixed_point GL_OES_single_precision GL_OES_matrix_get GL_OES_read_format GL_OES_compressed_paletted_texture GL_OES_point_sprite GL_OES_point_size_array GL_OES_matrix_palette GL_OES_draw_texture GL_OES_query_matrix GL_OES_texture_env_crossbar GL_OES_texture_mirrored_repeat GL_OES_texture_cube_map GL_OES_blend_subtract GL_OES_blend_func_separate GL_OES_blend_equation_separate GL_OES_stencil_wrap GL_OES_extended_matrix_palette GL_OES_framebuffer_object GL_OES_rgb8_rgba8 GL_OES_depth24 GL_OES_stencil8 GL_OES_compressed_ETC1_RGB8_texture GL_OES_mapbuffer GL_OES_EGL_image GL_OES_EGL_image_external GL_EXT_multi_draw_arrays GL_OES_required_internalformat GL_IMG_read_format GL_IMG_texture_compression_pvrtc GL_IMG_texture_format_BGRA8888 GL_EXT_texture_format_BGRA8888 GL_OES_egl_sync GL_IMG_vertex_array_object GL_APPLE_texture_2D_limited_npot
    04-20 20:08:34.164 D/ScummVM (22524): initializing viewport
    04-20 20:08:34.164 I/ScummVM (22524): overlay size is 640x360
    04-20 20:08:44.785 I/ScummVM (22524): scummvm_main exited with code 0
    04-20 20:08:44.831 D/ScummVM (22524): Destroying texture 100271
    04-20 20:08:44.832 D/ScummVM (22524): Destroying texture 315638026
    04-20 20:08:44.834 D/ScummVM (22524): Destroying texture 534244737
    04-20 20:08:44.836 D/ScummVM (22524): deinitializing surface
    04-20 20:08:44.930 E/InputDispatcher(500): channel '42957e18 org.scummvm.scummvm/org.scummvm.scummvm.ScummVMActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    04-20 20:08:45.455 D/libc-netbsd(126): getaddrinfo: policy.app.xiaomi.com NO result from proxy
    04-20 20:08:45.456 D/libc-netbsd(126): res_queryN name = policy.app.xiaomi.com, class = 1, type = 1
    04-20 20:08:46.536 D/libc-netbsd(126): res_queryN name = policy.app.xiaomi.com succeed
    04-20 20:08:46.537 D/libc-netbsd(591): getaddrinfo: policy.app.xiaomi.com get result from proxy >>
    04-20 20:08:46.539 D/10.174.151.60(14403): new connection
    04-20 20:08:46.542 I/ProxyService(14403): Request 24 POST /cms/interface/v1/checkpackages.php HTTP/1.1
    04-20 20:08:46.543 V/Request (14403): Reading content: 1287
    04-20 20:08:46.544 V/main. (14403): invoking handler: urlmodifier
    04-20 20:08:46.544 V/main. (14403): invoking handler: adblock
    04-20 20:08:46.544 I/adblock.(14403): false: http://policy.app.xiaomi.com/cms/interf ... ckages.php
    04-20 20:08:46.546 D/libc-netbsd(126): getaddrinfo: policy.app.xiaomi.com NO result from proxy
    04-20 20:08:46.547 D/libc-netbsd(126): res_queryN name = policy.app.xiaomi.com, class = 1, type = 1
    04-20 20:08:46.547 D/libc-netbsd(126): res_queryN name = policy.app.xiaomi.com succeed
    04-20 20:08:46.548 D/libc-netbsd(14403): getaddrinfo: policy.app.xiaomi.com get result from proxy >>
    04-20 20:08:47.765 E/CellLocation(500): create GsmCellLocation
    04-20 20:08:47.765 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:47.767 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:47.878 E/CellLocation(14521): create GsmCellLocation
    04-20 20:08:48.341 I/ProxyService(14403): request done
Sorry for the wall of text and some useless info.
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

The critical warning here which is actually the fatal error is the failure to load libscummvm.so due to the linker failure when loading the PowerVR GL library:
04-20 20:07:47.486 W/ScummVM (22390): WARNING: Failed loading symbol 'PLUGIN_getVersion' from plugin '/data/data/org.scummvm.scummvm/cache/libscummvm.so' (Symbol not found: load_library(linker.cpp:745): library "libPVROCL.so" not found)!
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

This may be due to an outdated cached version of libscummvm.so.

I would suggest uninstalling all ScummVM apks as before, then ensure that /data/data/org.scummvm.scummvm is deleted.

Then reinstall and see if this then works...
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

I have spoken to one of the Android Developers.

Unfortunately that Warning may be a "red herring" ie. misleading.

The real issue may indicate itself prior to the start of the ScummVM activity at 04-20 20:07:47.078. Can you please post the earlier log section, especially if there are any E/ (Error) or W/ (Warning) lines.

Also, MIUI has a 'security center' which is configured by default to prohibit apps (including plugins) from launching without explicit user request. Can you ensure that you hace confirmed ScummVM and the plugins can launch?
digitall
ScummVM Developer
Posts: 1172
Joined: Thu Aug 02, 2012 1:40 pm

Post by digitall »

You may also want to try disabling that security option and see if ScummVM then starts...

http://miuiandroid.com/2013/09/23/take- ... s-in-miui/

Please let us know how you get on and if this then works...
Thurisaz
Posts: 4
Joined: Mon Feb 17, 2014 7:06 pm

Post by Thurisaz »

digitall wrote:I would suggest uninstalling all ScummVM apks as before, then ensure that /data/data/org.scummvm.scummvm is deleted.
I can't find data/data directory anywhere even when ScummVM is installed. I've given it all the permissions possible.

I'll delete and reinstall it later today and log the installation as well and then post the log here.
fuzzie
ScummVM Developer
Posts: 178
Joined: Mon May 24, 2010 3:02 pm

Post by fuzzie »

It *must* be possible for the plugins to launch themselves. MIUI refuses to let them do so. The article digitall linked to above should let you re-enable that.
Post Reply