Please login or register.

Login with username, password and session length
Advanced search  

News:

Latest WME version: WME 1.9.1 (January 1st, 2010) - download

Author Topic: Error runing wme game in Android  (Read 2871 times)

0 Members and 1 Guest are viewing this topic.

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 113
    • View Profile
Error runing wme game in Android
« on: September 26, 2015, 05:00:04 PM »

DirectoryOperations: opendir('/data\') success=FALSE" indicates that wme didn't find the data directory?

What is the problem?
Logged

HCDaniel

  • Regular poster
  • ***
  • Karma: 8
  • Offline Offline
  • Posts: 163
    • View Profile
Re: Error runing wme game in Android
« Reply #1 on: September 27, 2015, 06:12:50 PM »

DirectoryOperations: opendir('/data\') success=FALSE" indicates that wme didn't find the data directory?

What is the problem?

wme on android can only execute compiled games, there is no script compiler available. place your compiled packages into the "raw" directory and try again.
Logged

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 113
    • View Profile
Re: Error runing wme game in Android
« Reply #2 on: October 10, 2015, 12:03:47 PM »

Thanks, now it finds the package but another error is showing.

Any idea?

Code: [Select]
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: JNI SetStaticBooleanField called with pending exception 'java.lang.NoSuchFieldError' thrown in int org.libsdl.app.SDLActivity.nativeInit(java.lang.Object):-2
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]     in call to SetStaticBooleanField
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]     from int org.libsdl.app.SDLActivity.nativeInit(java.lang.Object)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65] "SDLThread" prio=5 tid=13 Runnable
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   | group="main" sCount=0 dsCount=0 obj=0x12c56da0 self=0xa98cd800
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   | sysTid=7223 nice=0 cgrp=apps sched=0/0 handle=0xaee56300
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   | state=R schedstat=( 0 0 0 ) utm=4 stm=11 core=2 HZ=100
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   | stack=0xa11fe000-0xa1200000 stackSize=1036KB
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   | held mutexes= "mutator lock"(shared held)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #00 pc 00004640  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #01 pc 00002e8d  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #02 pc 00248bb1  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+68)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #03 pc 0022d8e7  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+146)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #04 pc 000b188b  /system/lib/libart.so (art::JniAbort(char const*, char const*)+582)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #05 pc 000b1fc5  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #06 pc 000b50d5  /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1284)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #07 pc 000b7a5f  /system/lib/libart.so (art::CheckJNI::SetStaticBooleanField(_JNIEnv*, _jclass*, _jfieldID*, unsigned char)+54)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #08 pc 0007a653  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (???)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #09 pc 00017423  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (SDL_AddHintCallback_REAL+138)
10-10 11:53:35.925    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #10 pc 0007a67d  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (Android_InitTouch+20)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #11 pc 0007aa6d  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (???)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #12 pc 00079dd7  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (SDL_VideoInit_REAL+250)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #13 pc 00016d91  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (SDL_InitSubSystem_REAL+136)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #14 pc 00036aad  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (???)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #15 pc 00036e39  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (SDL_Init+8)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #16 pc 0006ffad  /data/app/org.libsdl.app-2/lib/arm/libmain.so (CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::string const&, bool)+20)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #17 pc 000463a5  /data/app/org.libsdl.app-2/lib/arm/libmain.so (CBPlatform::Initialize(CBGame*, int, char**)+916)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #18 pc 00077167  /data/app/org.libsdl.app-2/lib/arm/libmain.so (SDL_main+38)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #19 pc 0004306b  /data/app/org.libsdl.app-2/lib/arm/libmain.so (Java_org_libsdl_app_SDLActivity_nativeInit+190)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   native: #20 pc 00002685  /data/dalvik-cache/arm/data@app@org.libsdl.app-2@base.apk@classes.dex (Java_org_libsdl_app_SDLActivity_nativeInit__Ljava_lang_Object_2+100)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   at org.libsdl.app.SDLActivity.nativeInit(Native method)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   at org.libsdl.app.SDLMain.run(SDLActivity.java:976)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]   at java.lang.Thread.run(Thread.java:818)
10-10 11:53:35.935    7135-7223/org.libsdl.app A/art?? art/runtime/check_jni.cc:65]
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287] Runtime aborting...
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287] Aborting thread:
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287] "SDLThread" prio=5 tid=13 Native
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   | group="" sCount=0 dsCount=0 obj=0x12c56da0 self=0xa98cd800
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   | sysTid=7223 nice=0 cgrp=apps sched=0/0 handle=0xaee56300
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   | state=R schedstat=( 0 0 0 ) utm=5 stm=14 core=1 HZ=100
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   | stack=0xa11fe000-0xa1200000 stackSize=1036KB
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   | held mutexes= "abort lock" "mutator lock"(shared held)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #00 pc 00004640  /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #01 pc 00002e8d  /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #02 pc 00248bb1  /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+68)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #03 pc 0022d8e7  /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+146)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #04 pc 0021df2f  /system/lib/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*)+22)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #05 pc 0021e195  /system/lib/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+364)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #06 pc 0021e361  /system/lib/libart.so (art::Runtime::Abort()+72)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #07 pc 000a838b  /system/lib/libart.so (art::LogMessage::~LogMessage()+1322)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #08 pc 000b1a69  /system/lib/libart.so (art::JniAbort(char const*, char const*)+1060)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #09 pc 000b1fc5  /system/lib/libart.so (art::JniAbortF(char const*, char const*, ...)+60)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #10 pc 000b50d5  /system/lib/libart.so (art::ScopedCheck::ScopedCheck(_JNIEnv*, int, char const*)+1284)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #11 pc 000b7a5f  /system/lib/libart.so (art::CheckJNI::SetStaticBooleanField(_JNIEnv*, _jclass*, _jfieldID*, unsigned char)+54)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #12 pc 0007a653  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (???)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #13 pc 00017423  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (SDL_AddHintCallback_REAL+138)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #14 pc 0007a67d  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (Android_InitTouch+20)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #15 pc 0007aa6d  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (???)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #16 pc 00079dd7  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (SDL_VideoInit_REAL+250)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #17 pc 00016d91  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (SDL_InitSubSystem_REAL+136)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #18 pc 00036aad  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (???)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #19 pc 00036e39  /data/app/org.libsdl.app-2/lib/arm/libSDL2.so (SDL_Init+8)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #20 pc 0006ffad  /data/app/org.libsdl.app-2/lib/arm/libmain.so (CBRenderSDL::InitRenderer(int, int, bool, float, float, bool, std::string const&, bool)+20)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #21 pc 000463a5  /data/app/org.libsdl.app-2/lib/arm/libmain.so (CBPlatform::Initialize(CBGame*, int, char**)+916)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #22 pc 00077167  /data/app/org.libsdl.app-2/lib/arm/libmain.so (SDL_main+38)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #23 pc 0004306b  /data/app/org.libsdl.app-2/lib/arm/libmain.so (Java_org_libsdl_app_SDLActivity_nativeInit+190)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   native: #24 pc 00002685  /data/dalvik-cache/arm/data@app@org.libsdl.app-2@base.apk@classes.dex (Java_org_libsdl_app_SDLActivity_nativeInit__Ljava_lang_Object_2+100)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   at org.libsdl.app.SDLActivity.nativeInit(Native method)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   at org.libsdl.app.SDLMain.run(SDLActivity.java:976)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   at java.lang.Thread.run(Thread.java:818)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287] Pending exception java.lang.NoSuchFieldError thrown by 'int org.libsdl.app.SDLActivity.nativeInit(java.lang.Object):-2'
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287] java.lang.NoSuchFieldError: no "Z" field "mSeparateMouseAndTouch" in class "Lorg/libsdl/app/SDLActivity;" or its superclasses
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   at int org.libsdl.app.SDLActivity.nativeInit(java.lang.Object) (SDLActivity.java:-2)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   at void org.libsdl.app.SDLMain.run() (SDLActivity.java:976)
10-10 11:53:36.255    7135-7223/org.libsdl.app A/art?? art/runtime/runtime.cc:287]   at void java.lang.Thread.run() (Thread.java:818)
« Last Edit: October 10, 2015, 03:36:33 PM by lacosaweb »
Logged

lacosaweb

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 113
    • View Profile
Re: Error runing wme game in Android
« Reply #3 on: October 10, 2015, 05:02:17 PM »

Fixed. Needed to merged the SDLActivity.java with the latest version of SDLActivity.  ;)
Logged

HCDaniel

  • Regular poster
  • ***
  • Karma: 8
  • Offline Offline
  • Posts: 163
    • View Profile
Re: Error runing wme game in Android
« Reply #4 on: October 10, 2015, 05:23:06 PM »

Yes, if you compile SDL from sources, the Java part needs to be updated separately, this is a constant source of annoyance, but cannot be helped.

If you use assets for placing your game data, there might be a limit to the max. size of the asset. Google Play will limit your app to 50MB anyway. But there might be another limit of you sideload a bigger asset directory. Looks like you saw a 64MB limit. For games of this size, expansion files (OBB files) are a good way for distribution.

Logged
 

Page created in 1.896 seconds with 22 queries.