ZGameEditor & Android Setting

All topics about ZGameEditor goes here.

Moderator: Moderators

User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

I understand. That's why I'm trying to write the simplest tutorial with my findings. So, for the knowledge, I removed Free Pascal and started all over again in order to try something: faking the missing files to authorize the installation of Free Pascal cross Android!!!

Just create two empty text files and rename + move them like that :
C:\android-ndk-r18b\platforms\android-9\arch-x86\usr\lib\crtbegin_so.o
C:\android-ndk-r18b\toolchains\mipsel-linux-android-4.9\prebuilt\windows\bin\mipsel-linux-android-as.exe

Then install Free Pascal fpc-3.0.4.i386-win32.exe and fpc-3.0.4.i386-win32.cross.android.exe
It works perfectly. And just with that, I'm better than anyone that had that problem on the internet :D

In the C:\zgameeditor-master\Build\android I had to create lib\arm-linux folders manually because the compiler doesn't seem to be able to create directories:

Code: Select all

jni.pas(539) Error: Can't create assembler file: lib\arm-linux\jni.s
Fatal: I/O error: File not open
Now everything is almost perfect:

Code: Select all

C:\zgameeditor-master\Build\android>C:\fpc\3.0.4\bin\i386-win32\ppcrossarm -B -MDelphi -Sghi -O3 -Tandroid -Parm -XXis -vw -Filib\arm-linux -FlC:\android\android-ndk-r18b\platforms\android-28\arch-arm\usr\lib -Fu. -Fu..\.. -FUlib\arm-linux\ -FEjava\libs\armeabi\ -olibzgeandroid.so -dANDROID -dMINIMAL -Xd -CpARMV6 zgeandroid.pas
Free Pascal Compiler version 3.0.4 [2017/10/07] for arm
Copyright (c) 1993-2017 by Florian Klaempfl and others
Target OS: Android for ARMEL
Compiling zgeandroid.pas
Compiling jni.pas
Assembling jni
Compiling C:\zgameeditor-master\ZOpenGL.pas
Compiling C:\zgameeditor-master\ZMath.pas
Compiling C:\zgameeditor-master\ZClasses.pas
ZClasses.pas(585,5) Warning: Constructor should be public
Compiling C:\zgameeditor-master\ZMath.pas
Assembling zmath
Compiling C:\zgameeditor-master\ZLog.pas
Compiling C:\zgameeditor-master\ZPlatform.pas
Compiling C:\zgameeditor-master\AudioPlayer.pas
Compiling C:\zgameeditor-master\AudioComponents.pas
Compiling C:\zgameeditor-master\ZApplication.pas
Compiling C:\zgameeditor-master\Meshes.pas
Compiling C:\zgameeditor-master\ZBitmap.pas
Compiling C:\zgameeditor-master\Renderer.pas
Compiling C:\zgameeditor-master\Meshes.pas
Compiling C:\zgameeditor-master\ZExpressions.pas
Compiling C:\zgameeditor-master\ZApplication.pas
Compiling C:\zgameeditor-master\Meshes.pas
Compiling C:\zgameeditor-master\ZApplication.pas
Compiling C:\zgameeditor-master\Collision.pas
Compiling C:\zgameeditor-master\ZApplication.pas
Compiling C:\zgameeditor-master\Commands.pas
Compiling C:\zgameeditor-master\ZApplication.pas
Compiling C:\zgameeditor-master\GLDrivers.pas
Compiling C:\zgameeditor-master\Renderer.pas
Compiling C:\zgameeditor-master\ZApplication.pas
Compiling C:\zgameeditor-master\GLDrivers.pas
Assembling gldrivers
ZApplication.pas(318,3) Note: Local variable "I" not used
ZApplication.pas(684,10) Note: Local variable "TmpM" not used
Assembling zapplication
Renderer.pas(805,17) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(972,23) Warning: Local variable "TextBuf" does not seem to be initialized
Renderer.pas(1465,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(1466,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(1606,66) Warning: Local variable "ScaledGravity" does not seem to be initialized
Renderer.pas(1731,5) Note: Local variable "S" is assigned but never used
Renderer.pas(2153,3) Note: Local variable "FilterTypes" not used
Assembling renderer
Assembling commands
Assembling collision
Assembling meshes
ZExpressions.pas(649,5) Warning: Function result variable does not seem to initialized
ZExpressions.pas(1901,28) Warning: Local variable "Dest" does not seem to be initialized
ZExpressions.pas(2039,15) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast
ZExpressions.pas(2597,36) Warning: Local variable "V" does not seem to be initialized
Assembling zexpressions
ZBitmap.pas(289,24) Warning: Local variable "NewMemory" does not seem to be initialized
Assembling zbitmap
Compiling C:\zgameeditor-master\BeRoAudioOGGVorbisTremor.pas
Assembling beroaudiooggvorbistremor
Assembling audiocomponents
Assembling audioplayer
Assembling zplatform
Assembling zlog
ZClasses.pas(731,5) Warning: Constructor should be public
ZClasses.pas(802,6) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(803,14) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(1223,1) Warning: Function result variable does not seem to initialized
ZClasses.pas(1347,23) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(2154,15) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(3992,19) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(3992,38) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Assembling zclasses
Assembling zopengl
Compiling C:\zgameeditor-master\BitmapProducers.pas
Compiling C:\zgameeditor-master\NanoJpeg.pas
Assembling nanojpeg
BitmapProducers.pas(342,18) Warning: Local variable "Y" does not seem to be initialized
BitmapProducers.pas(341,18) Warning: Local variable "X" does not seem to be initialized
BitmapProducers.pas(983,34) Warning: Local variable "CP" does not seem to be initialized
Assembling bitmapproducers
Compiling C:\zgameeditor-master\Animators.pas
Assembling animators
Compiling C:\zgameeditor-master\Steering.pas
Steering.pas(493,37) Warning: Local variable "ClosestPoint" does not seem to be initialized
Assembling steering
Compiling C:\zgameeditor-master\ImplicitMeshes.pas
ImplicitMeshes.pas(196,5) Warning: Constructor should be public
Assembling implicitmeshes
Compiling C:\zgameeditor-master\ZFile.pas
ZFile.pas(236,23) Warning: Local variable "NameBuf" does not seem to be initialized
Assembling zfile
Assembling zgeandroid
Linking java\libs\armeabi\libzgeandroid.so
39211 lines compiled, 6.3 sec
25 warning(s) issued
4 note(s) issued
But I don't know where ZGEAndroid-debug.apk is...
From C:\zgameeditor-master\Build\android\java\m.bat it should be in a bin folder somewhere:

Code: Select all

copy bin\ZGEAndroid-debug.apk C:\Data\Delphi32\ZzDC_Public\tools\ZDesigner\exe\Android
copy libs\armeabi\libzgeandroid.so C:\Data\Delphi32\ZzDC_Public\tools\ZDesigner\exe\Android\Template\base\libs\armeabi
copy src\org\zgameeditor\*.java C:\Data\Delphi32\ZzDC_Public\tools\ZDesigner\exe\Android\Template\base\src\org\zgameeditor
or maybe all this only compiles libzgeandroid.so ? What should I do now?


Edit:

I've started preparing a "8" folder in ZGameEditor\Android\Template\ with the new libs\armeabi\libzgeandroid.so inside and I'm setting up the AndroidManifest.xml

But what about src\org\zgameeditor\Zge.java ? Do I need to do something with that or should I copy the one from the 4.1 folder?
(By the way, shouldn't it be better to name those folders after the API number instead of the Android number?

And I've added '8.0 (API Level 26)' to the export dialogue box of ZApplication.pas
But I'm not sure how it calls the correct android template folder afterward...


Edit 2:

In my '8' folder, I have:

- A default.properties with target=android-26

- A modified AndroidManifest.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="$package$"
    android:versionCode="$versionnumber$"
    android:versionName="$versionname$" >

    <uses-sdk android:minSdkVersion="26"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <uses-feature android:name="android.hardware.touchscreen" android:required="false" />
    <uses-feature android:name="android.hardware.gamepad" />

    <application
        android:icon="@drawable/icon"
        android:label="$title$" >

        <meta-data android:name="isGame" android:value="true" />
       
        <activity
            android:label="$title$"
            android:name="org.zgameeditor.ZgeActivity"
            android:configChanges="screenLayout|orientation|keyboardHidden|fontScale"
            android:screenOrientation="sensorLandscape" >
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>
- The previously generated libs\armeabi\libzgeandroid.so

The apk is generated correctly, but when I try to install it to the phone, it says that "There was a problem parsing the package"...


Edit 3:

My bad, I forgot that my phone is a bit old.
So I changed the AndroidManifest.xml to that:
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="26"/>

Now the install is working but the game crashes at launch. Back to debug mode.
User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

Here's the debug log in case someone is seeing something in it...

Code: Select all

12-09 15:32:51.815 I/ActivityManager(3648): START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.txori.omeganaut/org.zgameeditor.ZgeActivity}} from uid 10079 on display 0
12-09 15:32:51.841 D/ActivityManager(3648): computeStackFocus: New stack r=ActivityRecord{c4a10bcd0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t-1} stackId=1
12-09 15:32:51.844 D/ActivityManager(3648): moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{2057ca8d0 #25845 A=com.txori.omeganaut U=0 StackId=1 sz=1}
12-09 15:32:51.850 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{2057ca8d0 #25845 A=com.txori.omeganaut U=0 StackId=1 sz=1} next=ActivityRecord{c4a10bcd0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t25845} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 9 tasks}
12-09 15:32:51.871 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{24be6c9d0 #24938 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{c4a10bcd0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t25845} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 9 tasks}
12-09 15:32:51.872 D/ActivityManager(3648): applyOptionsLocked, ANIM_CUSTOM_SCALE_UP, task.getRootActivity() : ActivityRecord{c4a10bcd0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t25845}, task.getTaskToReturnTo() : 1
12-09 15:32:51.873 D/MountService(3648): getExternalStorageMountMode : final mountMode=1, uid : 10363, packageName : com.txori.omeganaut
12-09 15:32:51.873 D/WindowManager(3648): openInputChannel mInputChannel: 99120ec Starting com.txori.omeganaut (server)
12-09 15:32:51.894 I/ActivityManager(3648): Start proc 21802:com.txori.omeganaut/u0a363 for activity com.txori.omeganaut/org.zgameeditor.ZgeActivity
12-09 15:32:51.900 I/SELinux (21802): SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.txori.omeganaut 
12-09 15:32:51.952 D/WindowManager(3648): finishDrawingWindow: Window{99120ecd0 u0 Starting com.txori.omeganaut} mDrawState=DRAW_PENDING
12-09 15:32:51.965 I/ActivityManager(3648): DSS on for com.txori.omeganaut and scale is 1.0
12-09 15:32:52.246 D/GameManagerService(3648): NotifyRunnable. pkg: com.txori.omeganaut, type: 4, isMinimized: false, isTunableApp: false
12-09 15:32:52.322 D/GamePkgDataHelper(3648): getGamePkgData(). com.txori.omeganaut
12-09 15:32:52.322 D/GameManagerService(3648): identifyGamePackage. com.txori.omeganaut
12-09 15:32:52.322 D/GameManagerService(3648): identifyGamePackage. com.txori.omeganaut
12-09 15:32:52.358 D/GameManagerService(3648): identifyGamePackage. com.txori.omeganaut
12-09 15:32:52.358 D/GameManagerService(3648): identifyGamePackage. com.txori.omeganaut
12-09 15:32:52.387 F/libc    (21802): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc791f4a1 in tid 21802 (txori.omeganaut)
12-09 15:32:52.423 D/MdnieScenarioControlService(3648):  packageName : com.txori.omeganaut    className : org.zgameeditor.ZgeActivity
12-09 15:32:52.474 F/DEBUG   (21820): pid: 21802, tid: 21802, name: txori.omeganaut  >>> com.txori.omeganaut <<<
12-09 15:32:52.476 F/DEBUG   (21820):     #00 pc 0002201c  /data/app/com.txori.omeganaut-1/lib/arm/libzgeandroid.so
12-09 15:32:52.801 W/ActivityManager(3648):   Force finishing activity com.txori.omeganaut/org.zgameeditor.ZgeActivity
12-09 15:32:52.844 D/WindowManager(3648): finishDrawingWindow: Window{99120ecd0 u0 Starting com.txori.omeganaut} mDrawState=DRAW_PENDING
12-09 15:32:52.855 I/WindowManager(3648): Failed to capture screenshot of Token{a0a9845 ActivityRecord{c4a10bcd0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t25845 f}} appWin=Window{99120ecd0 u0 Starting com.txori.omeganaut} drawState=2
12-09 15:32:52.952 I/ActivityManager(3648): Process com.txori.omeganaut (pid 21802) has died(57,423)
12-09 15:32:52.954 D/WindowManager(3648): disposeInputChannel mInputChannel: 99120ec Starting com.txori.omeganaut (server)
12-09 15:32:52.955 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Starting com.txori.omeganaut) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.removeLocked:1880 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2924 com.android.server.wm.WindowManagerService.removeWindowLocked:2874 com.android.server.wm.WindowManagerService.removeWindowLocked:2689 com.android.server.wm.AppWindowToken.removeAllWindows:607 com.android.server.wm.AppWindowToken.removeAppFromTaskLocked:369 
12-09 15:32:52.981 E/BufferQueueProducer(3099): [Starting com.txori.omeganaut] dequeueBuffer: BufferQueue has been abandoned
12-09 15:32:53.067 D/WindowManager(3648): openInputChannel mInputChannel: 36aa498 Application Error: com.txori.omeganaut (server)
12-09 15:32:53.116 W/PkgUtils(21302): p: com.txori.omeganaut, u:0
12-09 15:32:53.167 D/WindowManager(3648): finishDrawingWindow: Window{36aa498d0 u0 Application Error: com.txori.omeganaut} mDrawState=DRAW_PENDING
12-09 15:32:53.192 D/WindowManager(3648): finishDrawingWindow: Window{36aa498d0 u0 Application Error: com.txori.omeganaut} mDrawState=HAS_DRAWN
12-09 15:32:53.209 W/PkgUtils(20927): p: com.txori.omeganaut, u:0
12-09 15:32:56.020 W/ActivityManager(3648): Ignoring remove of inactive process: ProcessRecord{7052212 0:com.txori.omeganaut/u0a363}
12-09 15:32:56.027 D/WindowManager(3648): disposeInputChannel mInputChannel: 36aa498 Application Error: com.txori.omeganaut (server)
12-09 15:32:56.035 I/ActivityManager(3648): START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.txori.omeganaut/org.zgameeditor.ZgeActivity}} from uid 10079 on display 0
12-09 15:32:56.063 D/ActivityManager(3648): computeStackFocus: New stack r=ActivityRecord{20f4d5ed0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t-1} stackId=1
12-09 15:32:56.065 D/ActivityManager(3648): moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{4fee16ad0 #25846 A=com.txori.omeganaut U=0 StackId=1 sz=1}
12-09 15:32:56.069 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{4fee16ad0 #25846 A=com.txori.omeganaut U=0 StackId=1 sz=1} next=ActivityRecord{20f4d5ed0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t25846} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 9 tasks}
12-09 15:32:56.074 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{24be6c9d0 #24938 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{20f4d5ed0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t25846} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 9 tasks}
12-09 15:32:56.076 D/MountService(3648): getExternalStorageMountMode : final mountMode=1, uid : 10363, packageName : com.txori.omeganaut
12-09 15:32:56.092 D/WindowManager(3648): openInputChannel mInputChannel: d7ca0e Starting com.txori.omeganaut (server)
12-09 15:32:56.094 I/ActivityManager(3648): Start proc 21834:com.txori.omeganaut/u0a363 for activity com.txori.omeganaut/org.zgameeditor.ZgeActivity
12-09 15:32:56.102 I/SELinux (21834): SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.txori.omeganaut 
12-09 15:32:56.155 I/ActivityManager(3648): DSS on for com.txori.omeganaut and scale is 1.0
12-09 15:32:56.239 D/GameManagerService(3648): NotifyRunnable. pkg: com.txori.omeganaut, type: 4, isMinimized: false, isTunableApp: false
12-09 15:32:56.293 D/WindowManager(3648): finishDrawingWindow: Window{d7ca0ed0 u0 Starting com.txori.omeganaut} mDrawState=DRAW_PENDING
12-09 15:32:56.349 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Application Error: com.txori.omeganaut) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.destroyOrSaveSurface:2678 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:503 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:278 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:226 com.android.server.wm.WindowManagerService.relayoutWindow:3462 com.android.server.wm.Session.relayout:240 
12-09 15:32:56.397 F/libc    (21834): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc791f4a1 in tid 21834 (txori.omeganaut)
12-09 15:32:56.437 D/MdnieScenarioControlService(3648):  packageName : com.txori.omeganaut    className : org.zgameeditor.ZgeActivity
12-09 15:32:56.487 F/DEBUG   (21855): pid: 21834, tid: 21834, name: txori.omeganaut  >>> com.txori.omeganaut <<<
12-09 15:32:56.488 F/DEBUG   (21855):     #00 pc 0002201c  /data/app/com.txori.omeganaut-1/lib/arm/libzgeandroid.so
12-09 15:32:56.808 W/ActivityManager(3648):   Force finishing activity com.txori.omeganaut/org.zgameeditor.ZgeActivity
12-09 15:32:56.862 D/WindowManager(3648): finishDrawingWindow: Window{d7ca0ed0 u0 Starting com.txori.omeganaut} mDrawState=DRAW_PENDING
12-09 15:32:56.955 I/WindowManager(3648): Failed to capture screenshot of Token{ecac53f ActivityRecord{20f4d5ed0 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t25846 f}} appWin=Window{d7ca0ed0 u0 Starting com.txori.omeganaut} drawState=2
12-09 15:32:57.014 I/ActivityManager(3648): Process com.txori.omeganaut (pid 21834) has died(71,427)
12-09 15:32:57.017 D/WindowManager(3648): disposeInputChannel mInputChannel: d7ca0e Starting com.txori.omeganaut (server)
12-09 15:32:57.018 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Starting com.txori.omeganaut) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.removeLocked:1880 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2924 com.android.server.wm.WindowManagerService.removeWindowLocked:2874 com.android.server.wm.WindowManagerService.removeWindowLocked:2689 com.android.server.wm.AppWindowToken.removeAllWindows:607 com.android.server.wm.AppWindowToken.removeAppFromTaskLocked:369 
12-09 15:32:57.105 D/WindowManager(3648): openInputChannel mInputChannel: 600881e Application Error: com.txori.omeganaut (server)
12-09 15:32:57.150 W/PkgUtils(21302): p: com.txori.omeganaut, u:0
12-09 15:32:57.200 D/WindowManager(3648): finishDrawingWindow: Window{600881ed0 u0 Application Error: com.txori.omeganaut} mDrawState=DRAW_PENDING
12-09 15:32:57.220 D/WindowManager(3648): finishDrawingWindow: Window{600881ed0 u0 Application Error: com.txori.omeganaut} mDrawState=HAS_DRAWN
12-09 15:32:57.256 W/PkgUtils(20927): p: com.txori.omeganaut, u:0
12-09 15:32:59.205 W/ActivityManager(3648): Ignoring remove of inactive process: ProcessRecord{e665364 0:com.txori.omeganaut/u0a363}
12-09 15:32:59.231 D/WindowManager(3648): disposeInputChannel mInputChannel: 600881e Application Error: com.txori.omeganaut (server)
12-09 15:32:59.532 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Application Error: com.txori.omeganaut) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.destroyOrSaveSurface:2678 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:503 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:278 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:226 com.android.server.wm.WindowManagerService$H.handleMessage:9312 android.os.Handler.dispatchMessage:102 
Edit:

A friend just told me that the APK won't even install on his Huawei P20 Pro (Android 8.1 API 27) so it is possible there's a problem with the making of the APK itself.
User avatar
VilleK
Site Admin
Posts: 2355
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGameEditor & Android Setting

Post by VilleK »

Great progress! I don't see any real clue in that debug log though. Have you tried with a minimal project? I would start with a completely empty project in ZGE just to check if that works first.

You should be able to keep Zge.java in the base folder.

Note that APK-files can be renamed to .zip and opened with zip-viewer. So you can check if your apk has the expected folder structure and files.
User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

I must admit that I have no ideas in order to continue digging. I made a zip file with the generated files for ZPong. Maybe you'll see that something is wrong?
Attachments
zpong_test.zip
ZPong android API 26 test
(825.53 KiB) Downloaded 525 times
User avatar
VilleK
Site Admin
Posts: 2355
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGameEditor & Android Setting

Post by VilleK »

Did you also try with completely empty project?

Can you please attach an APK here too?
User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

Hi, I was playing around with ZDesigner source code, and I'll have some suggestions that I will post in a dedicated topic later on.

An empty project crashes at launch too. Here's the generated apk API 26 with the generated libzgeandroid.so

And here's the complete log that goes with it:

Code: Select all

12-10 12:51:31.915 I/ActivityManager(3648): START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.mydomain.empty/org.zgameeditor.ZgeActivity}} from uid 10079 on display 0
12-10 12:51:31.956 D/ActivityManager(3648): computeStackFocus: New stack r=ActivityRecord{36ddb72d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t-1} stackId=1
12-10 12:51:31.960 D/ActivityManager(3648): moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{13a3cbed0 #25999 A=com.mydomain.empty U=0 StackId=1 sz=1}
12-10 12:51:31.971 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{13a3cbed0 #25999 A=com.mydomain.empty U=0 StackId=1 sz=1} next=ActivityRecord{36ddb72d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t25999} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 10 tasks}
12-10 12:51:31.991 D/WindowManager(3648): openInputChannel mInputChannel: 11e2ed Starting com.mydomain.empty (server)
12-10 12:51:31.992 D/ViewRootImpl@c6ae517[empty](3648): setView = DecorView@b100522[empty] touchMode=true
12-10 12:51:31.997 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{24be6c9d0 #24938 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{36ddb72d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t25999} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 10 tasks}
12-10 12:51:31.998 D/ActivityManager(3648): applyOptionsLocked, ANIM_CUSTOM_SCALE_UP, task.getRootActivity() : ActivityRecord{36ddb72d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t25999}, task.getTaskToReturnTo() : 1
12-10 12:51:32.002 D/MountService(3648): getExternalStorageMountMode : final mountMode=1, uid : 10369, packageName : com.mydomain.empty
12-10 12:51:32.002 D/ViewRootImpl@c6ae517[empty](3648): dispatchAttachedToWindow
12-10 12:51:32.003 V/WindowManager(3648): Relayout Window{11e2edd0 u0 Starting com.mydomain.empty}: viewVisibility=0 req=1440x2464 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#81830118 pfl=0x20011 wanim=0x1030465 vsysui=0x600 needsMenuKey=2 naviIconColor=0}
12-10 12:51:32.029 I/ActivityManager(3648): Start proc 19744:com.mydomain.empty/u0a369 for activity com.mydomain.empty/org.zgameeditor.ZgeActivity
12-10 12:51:32.039 D/ViewRootImpl@c6ae517[empty](3648): Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true 500406186496} surfaceGenerationChanged=true
12-10 12:51:32.039 I/SELinux (19744): SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.mydomain.empty 
12-10 12:51:32.079 D/WindowManager(3648): finishDrawingWindow: Window{11e2edd0 u0 Starting com.mydomain.empty} mDrawState=DRAW_PENDING
12-10 12:51:32.099 I/ActivityManager(3648): DSS on for com.mydomain.empty and scale is 1.0
12-10 12:51:32.342 D/GameManagerService(3648): NotifyRunnable. pkg: com.mydomain.empty, type: 4, isMinimized: false, isTunableApp: false
12-10 12:51:32.374 D/GamePkgDataHelper(3648): getGamePkgData(). com.mydomain.empty
12-10 12:51:32.374 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-10 12:51:32.374 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-10 12:51:32.409 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-10 12:51:32.410 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-10 12:51:32.500 F/libc    (19744): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc79214a1 in tid 19744 (.mydomain.empty)
12-10 12:51:32.505 D/MdnieScenarioControlService(3648):  packageName : com.mydomain.empty    className : org.zgameeditor.ZgeActivity
12-10 12:51:32.585 F/DEBUG   (19761): pid: 19744, tid: 19744, name: .mydomain.empty  >>> com.mydomain.empty <<<
12-10 12:51:32.587 F/DEBUG   (19761):     #00 pc 0002201c  /data/app/com.mydomain.empty-1/lib/arm/libzgeandroid.so
12-10 12:51:32.936 W/ActivityManager(3648):   Force finishing activity com.mydomain.empty/org.zgameeditor.ZgeActivity
12-10 12:51:32.940 D/ViewRootImpl@c6ae517[empty](3648): MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=2
12-10 12:51:32.964 V/WindowManager(3648): Relayout Window{11e2edd0 u0 Starting com.mydomain.empty}: viewVisibility=0 req=2560x1440 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#81830118 pfl=0x20011 wanim=0x1030465 vsysui=0x600 needsMenuKey=2 naviIconColor=0}
12-10 12:51:32.976 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Starting com.mydomain.empty) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.destroyOrSaveSurface:2678 com.android.server.wm.WindowManagerService.tryStartExitingAnimation:3567 com.android.server.wm.WindowManagerService.relayoutWindow:3423 com.android.server.wm.Session.relayout:240 android.view.ViewRootImpl.relayoutWindow:6414 android.view.ViewRootImpl.performTraversals:2025 
12-10 12:51:32.986 D/ViewRootImpl@c6ae517[empty](3648): Relayout returned: oldFrame=[0,0][2560,1440] newFrame=[0,0][2560,1440] result=0x25 surface={isValid=false 0} surfaceGenerationChanged=true
12-10 12:51:32.994 E/ViewRootImpl@c6ae517[empty](3648): ViewRootImpl #2 Surface is not valid.
12-10 12:51:33.005 D/WindowManager(3648): finishDrawingWindow: Window{11e2edd0 u0 Starting com.mydomain.empty} mDrawState=NO_SURFACE
12-10 12:51:33.133 I/ActivityManager(3648): Process com.mydomain.empty (pid 19744) has died(56,467)
12-10 12:51:33.145 D/WindowManager(3648): disposeInputChannel mInputChannel: 11e2ed Starting com.mydomain.empty (server)
12-10 12:51:33.171 D/ViewRootImpl@c6ae517[empty](3648): dispatchDetachedFromWindow
12-10 12:51:33.243 D/ViewRootImpl@d627271[empty](3648): ThreadedRenderer.create() translucent=true
12-10 12:51:33.244 D/WindowManager(3648): openInputChannel mInputChannel: 79700d7 Application Error: com.mydomain.empty (server)
12-10 12:51:33.246 D/ViewRootImpl@d627271[empty](3648): setView = DecorView@7e0d373[empty] touchMode=true
12-10 12:51:33.277 D/ViewRootImpl@d627271[empty](3648): dispatchAttachedToWindow
12-10 12:51:33.278 V/WindowManager(3648): Relayout Window{79700d7d0 u0 Application Error: com.mydomain.empty}: viewVisibility=0 req=1353x674 WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#120 ty=2003 fl=#1820002 pfl=0x110 fmt=-3 wanim=0x103038b surfaceInsets=Rect(8, 8 - 8, 8) needsMenuKey=2 naviIconColor=0}
12-10 12:51:33.298 D/ViewRootImpl@d627271[empty](3648): Relayout returned: oldFrame=[0,0][0,0] newFrame=[43,991][1396,1665] result=0x27 surface={isValid=true 500282659328} surfaceGenerationChanged=true
12-10 12:51:33.298 D/ViewRootImpl@d627271[empty](3648): mHardwareRenderer.initialize() mSurface={isValid=true 500282659328} hwInitialized=true
12-10 12:51:33.313 D/ViewRootImpl@d627271[empty](3648): MSG_WINDOW_FOCUS_CHANGED 1
12-10 12:51:33.314 D/ViewRootImpl@d627271[empty](3648): mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 500282659328}
12-10 12:51:33.361 D/WindowManager(3648): finishDrawingWindow: Window{79700d7d0 u0 Application Error: com.mydomain.empty} mDrawState=DRAW_PENDING
12-10 12:51:33.367 D/ViewRootImpl@d627271[empty](3648): MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
12-10 12:51:33.377 D/WindowManager(3648): finishDrawingWindow: Window{79700d7d0 u0 Application Error: com.mydomain.empty} mDrawState=HAS_DRAWN
12-10 12:51:33.385 W/PkgUtils(19548): p: com.mydomain.empty, u:0
12-10 12:51:33.454 W/PkgUtils(18547): p: com.mydomain.empty, u:0
12-10 12:51:34.958 D/ActivityManagerPerformance(3648): Received DISABLE_MSG_APP_SWITCH, r: ActivityRecord{36ddb72d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t25999 f}
12-10 12:51:34.972 D/ViewRootImpl@d627271[empty](3648): ViewPostImeInputStage processPointer 0
12-10 12:51:35.078 D/ViewRootImpl@d627271[empty](3648): ViewPostImeInputStage processPointer 1
12-10 12:51:35.081 W/ActivityManager(3648): Ignoring remove of inactive process: ProcessRecord{bb4f8ea 0:com.mydomain.empty/u0a369}
12-10 12:51:35.094 D/ViewRootImpl@d627271[empty](3648): mHardwareRenderer.destroy()#4
12-10 12:51:35.094 D/ViewRootImpl@d627271[empty](3648): dispatchDetachedFromWindow
12-10 12:51:35.094 I/ActivityManager(3648): START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.mydomain.empty/org.zgameeditor.ZgeActivity}} from uid 10079 on display 0
12-10 12:51:35.095 D/WindowManager(3648): disposeInputChannel mInputChannel: 79700d7 Application Error: com.mydomain.empty (server)
12-10 12:51:35.120 D/ActivityManager(3648): computeStackFocus: New stack r=ActivityRecord{f05fd51d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t-1} stackId=1
12-10 12:51:35.124 D/ActivityManager(3648): moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{c5c1d8dd0 #26000 A=com.mydomain.empty U=0 StackId=1 sz=1}
12-10 12:51:35.133 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{c5c1d8dd0 #26000 A=com.mydomain.empty U=0 StackId=1 sz=1} next=ActivityRecord{f05fd51d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t26000} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 10 tasks}
12-10 12:51:35.155 D/WindowManager(3648): openInputChannel mInputChannel: 475709a Starting com.mydomain.empty (server)
12-10 12:51:35.157 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{24be6c9d0 #24938 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{f05fd51d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t26000} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 10 tasks}
12-10 12:51:35.158 D/ViewRootImpl@73fadbc[empty](3648): setView = DecorView@f6c0dcb[empty] touchMode=true
12-10 12:51:35.159 D/MountService(3648): getExternalStorageMountMode : final mountMode=1, uid : 10369, packageName : com.mydomain.empty
12-10 12:51:35.162 D/ViewRootImpl@73fadbc[empty](3648): dispatchAttachedToWindow
12-10 12:51:35.163 V/WindowManager(3648): Relayout Window{475709ad0 u0 Starting com.mydomain.empty}: viewVisibility=0 req=1440x2464 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#81830118 pfl=0x20011 wanim=0x1030465 vsysui=0x600 needsMenuKey=2 naviIconColor=0}
12-10 12:51:35.178 I/ActivityManager(3648): Start proc 19772:com.mydomain.empty/u0a369 for activity com.mydomain.empty/org.zgameeditor.ZgeActivity
12-10 12:51:35.180 I/SELinux (19772): SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.mydomain.empty 
12-10 12:51:35.188 D/ViewRootImpl@73fadbc[empty](3648): Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][1440,2560] result=0x27 surface={isValid=true 500779059200} surfaceGenerationChanged=true
12-10 12:51:35.215 D/WindowManager(3648): finishDrawingWindow: Window{475709ad0 u0 Starting com.mydomain.empty} mDrawState=DRAW_PENDING
12-10 12:51:35.220 I/ActivityManager(3648): DSS on for com.mydomain.empty and scale is 1.0
12-10 12:51:35.399 D/GameManagerService(3648): NotifyRunnable. pkg: com.mydomain.empty, type: 4, isMinimized: false, isTunableApp: false
12-10 12:51:35.409 V/WindowManager(3648): Now policy shown: Window{475709ad0 u0 Starting com.mydomain.empty}
12-10 12:51:35.462 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Application Error: com.mydomain.empty) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.destroyOrSaveSurface:2678 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:503 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:278 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:226 com.android.server.wm.WindowManagerService$H.handleMessage:9312 android.os.Handler.dispatchMessage:102 
12-10 12:51:35.520 F/libc    (19772): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xc79214a1 in tid 19772 (.mydomain.empty)
12-10 12:51:35.564 D/MdnieScenarioControlService(3648):  packageName : com.mydomain.empty    className : org.zgameeditor.ZgeActivity
12-10 12:51:35.608 F/DEBUG   (19792): pid: 19772, tid: 19772, name: .mydomain.empty  >>> com.mydomain.empty <<<
12-10 12:51:35.609 F/DEBUG   (19792):     #00 pc 0002201c  /data/app/com.mydomain.empty-1/lib/arm/libzgeandroid.so
12-10 12:51:35.963 W/ActivityManager(3648):   Force finishing activity com.mydomain.empty/org.zgameeditor.ZgeActivity
12-10 12:51:35.971 D/ViewRootImpl@73fadbc[empty](3648): MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=2
12-10 12:51:35.998 V/WindowManager(3648): Relayout Window{475709ad0 u0 Starting com.mydomain.empty}: viewVisibility=0 req=2560x1440 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#81830118 pfl=0x20011 wanim=0x1030465 vsysui=0x600 needsMenuKey=2 naviIconColor=0}
12-10 12:51:36.007 D/ViewRootImpl@73fadbc[empty](3648): Relayout returned: oldFrame=[0,0][2560,1440] newFrame=[0,0][2560,1440] result=0x21 surface={isValid=true 500779059200} surfaceGenerationChanged=false
12-10 12:51:36.042 D/WindowManager(3648): finishDrawingWindow: Window{475709ad0 u0 Starting com.mydomain.empty} mDrawState=DRAW_PENDING
12-10 12:51:36.149 I/WindowManager(3648): Failed to capture screenshot of Token{661b9b6 ActivityRecord{f05fd51d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t26000 f}} appWin=Window{475709ad0 u0 Starting com.mydomain.empty} drawState=2
12-10 12:51:36.191 I/ActivityManager(3648): Process com.mydomain.empty (pid 19772) has died(77,466)
12-10 12:51:36.193 D/WindowManager(3648): disposeInputChannel mInputChannel: 475709a Starting com.mydomain.empty (server)
12-10 12:51:36.194 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Starting com.mydomain.empty) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.removeLocked:1880 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2924 com.android.server.wm.WindowManagerService.removeWindowLocked:2874 com.android.server.wm.WindowManagerService.removeWindowLocked:2689 com.android.server.wm.AppWindowToken.removeAllWindows:607 com.android.server.wm.AppWindowToken.removeAppFromTaskLocked:369 
12-10 12:51:36.283 D/ViewRootImpl@73fadbc[empty](3648): dispatchDetachedFromWindow
12-10 12:51:36.287 D/ViewRootImpl@de01987[empty](3648): ThreadedRenderer.create() translucent=true
12-10 12:51:36.288 D/WindowManager(3648): openInputChannel mInputChannel: 205852 Application Error: com.mydomain.empty (server)
12-10 12:51:36.294 D/ViewRootImpl@de01987[empty](3648): setView = DecorView@a1ac723[empty] touchMode=true
12-10 12:51:36.317 D/ViewRootImpl@de01987[empty](3648): dispatchAttachedToWindow
12-10 12:51:36.319 V/WindowManager(3648): Relayout Window{205852d0 u0 Application Error: com.mydomain.empty}: viewVisibility=0 req=1353x674 WM.LayoutParams{(0,0)(wrapxwrap) gr=#11 sim=#120 ty=2003 fl=#1820002 pfl=0x110 fmt=-3 wanim=0x103038b surfaceInsets=Rect(8, 8 - 8, 8) needsMenuKey=2 naviIconColor=0}
12-10 12:51:36.348 D/ViewRootImpl@de01987[empty](3648): Relayout returned: oldFrame=[0,0][0,0] newFrame=[43,991][1396,1665] result=0x27 surface={isValid=true 500282884608} surfaceGenerationChanged=true
12-10 12:51:36.349 D/ViewRootImpl@de01987[empty](3648): mHardwareRenderer.initialize() mSurface={isValid=true 500282884608} hwInitialized=true
12-10 12:51:36.358 D/ViewRootImpl@de01987[empty](3648): MSG_WINDOW_FOCUS_CHANGED 1
12-10 12:51:36.358 D/ViewRootImpl@de01987[empty](3648): mHardwareRenderer.initializeIfNeeded()#2 mSurface={isValid=true 500282884608}
12-10 12:51:36.389 W/PkgUtils(19548): p: com.mydomain.empty, u:0
12-10 12:51:36.396 D/WindowManager(3648): finishDrawingWindow: Window{205852d0 u0 Application Error: com.mydomain.empty} mDrawState=DRAW_PENDING
12-10 12:51:36.405 D/ViewRootImpl@de01987[empty](3648): MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
12-10 12:51:36.421 D/WindowManager(3648): finishDrawingWindow: Window{205852d0 u0 Application Error: com.mydomain.empty} mDrawState=HAS_DRAWN
12-10 12:51:36.481 W/PkgUtils(18547): p: com.mydomain.empty, u:0
12-10 12:51:38.364 D/ViewRootImpl@de01987[empty](3648): ViewPostImeInputStage processPointer 0
12-10 12:51:38.376 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-10 12:51:38.501 D/ViewRootImpl@de01987[empty](3648): ViewPostImeInputStage processPointer 1
12-10 12:51:38.503 W/ActivityManager(3648): Ignoring remove of inactive process: ProcessRecord{8c30c76 0:com.mydomain.empty/u0a369}
12-10 12:51:38.512 D/ViewRootImpl@de01987[empty](3648): mHardwareRenderer.destroy()#4
12-10 12:51:38.512 D/ViewRootImpl@de01987[empty](3648): dispatchDetachedFromWindow
12-10 12:51:38.512 D/WindowManager(3648): disposeInputChannel mInputChannel: 205852 Application Error: com.mydomain.empty (server)
12-10 12:51:38.819 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Application Error: com.mydomain.empty) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.destroyOrSaveSurface:2678 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:503 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:278 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:226 com.android.server.wm.WindowManagerService$H.handleMessage:9312 android.os.Handler.dispatchMessage:102
Attachments
ZGameEditor application-debug.apk
Empty apk API 26
(270.99 KiB) Downloaded 675 times
User avatar
VilleK
Site Admin
Posts: 2355
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGameEditor & Android Setting

Post by VilleK »

Try adding some more log messages in Zge.java, line 72:

Code: Select all

Log.i("ZgeAndroid", "Before load binary");
System.loadLibrary("zgeandroid");
Log.i("ZgeAndroid", "After load binary");
If it then shows "Before" but not "After" then we know it is when loading the lib it crashes.
User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

That's it. It crashes while loading libzgeandroid.so

Code: Select all

12-10 15:40:14.599 I/ZgeAndroid(3662): Before load binary
12-10 15:40:14.855 F/DEBUG   (3713):     #00 pc 0002201c  /data/app/com.mydomain.empty-1/lib/arm/libzgeandroid.so

I also tried to compile to API 26 without loading the new libzgeandroid.so

The app says: ZGameEditor application
Detected problems with app native libraries (please consult log for detail):
libzgeandroid.so: text relocations

Code: Select all

12-10 15:47:39.849 I/ZgeAndroid(8326): Before load binary
12-10 15:47:39.853 W/linker  (8326): /data/app/com.mydomain.empty-2/lib/arm/libzgeandroid.so has text relocations. This is wasting memory and prevents security hardening. Please fix.
12-10 15:47:39.869 I/ZgeAndroid(8326): After load binary
User avatar
VilleK
Site Admin
Posts: 2355
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGameEditor & Android Setting

Post by VilleK »

Ok we are back to the original problem. TEXTREL was what causes the existing file that I built not work. So I guess the version of Freepascal that you use is not new enough.

Found this thread: https://forum.lazarus.freepascal.org/in ... ic=37199.0

You must either find a newer installer for Fpc Android or build it yourself from trunk sources.
User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

Ok, I'll try that before sleep.
Is that the right one ?
https://www.freepascal.org/develop.var

Edit:
For the fun, and because I'm still searching how to compile fpc trunk with fpc 3.0.4, I've compiled libzgeandroid.so using laztoapk.
With that one, the generated apk is installing and running, but the display is messed up as described there: viewtopic.php?f=1&t=983&start=15#p8738

Edit 2:
I'm currently building fpc trunk using those explanations:
http://forum.lazarus.freepascal.org/ind ... l#msg92122

Edit 3:
And it's finished, but no ppcrossarm.exe was generated :?
I'm a bit disappointed as I thought that 'make all' would make all...

Edit 4:
Damn, I forgot about the instructions to build the cross compiler for android here: http://wiki.freepascal.org/Android ...
I'm launching the build while going to sleep.
User avatar
VilleK
Site Admin
Posts: 2355
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGameEditor & Android Setting

Post by VilleK »

Ats wrote: Mon Dec 10, 2018 8:57 pm For the fun, and because I'm still searching how to compile fpc trunk with fpc 3.0.4, I've compiled libzgeandroid.so using laztoapk.
I'm not familiar with laztoapk. Does it use a later version of Fpc for Android somehow? Do you get correct visuals with ZPong?

It might be worth to keep trying to build latest version of Fpc from trunk.
User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

laztoapk uses FPC 3.0.4 too. Zpong works on my phone, but with the overexposed light problem. I sent the apk to a friend but it's not working on Android phones with API>=24.

The cross compilation of the latest fpc didn't work. I'm trying again right now after reading a few tutorials.

Edit:
Ok, I had to build FPC for Android to the same directory as FPC (make all) previously built, otherwise it's giving errors. That is not explained anywhere...

Edit 2:
What is missing now?

Code: Select all

C:\zgameeditor-master\Build\android>C:\FPC\trunk\bin\i386-win32\ppcrossarm -B -MDelphi -Sghi -O3 -Tandroid -Parm -XXis -vw -Filib\arm-linux -FlC:\Android\android-ndk-r18b\platforms\android-26\arch-arm\usr\lib -Fu. -Fu..\.. -FUlib\arm-linux\ -FEjava\libs\armeabi\ -olibzgeandroid.so -dANDROID -dMINIMAL -Xd -CpARMV6 zgeandroid.pas
jni.pas(539) Error: Assembler arm-linux-androideabi-as.exe not found, switching to external assembling
jni.pas(539) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Edit 3:
The PATH C:\Android\android-ndk-r18b\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\bin was not properly set.
Here the new build log:

Code: Select all

C:\zgameeditor-master\Build\android>C:\FPC\trunk\bin\i386-win32\ppcrossarm -B -MDelphi -Sghi -O3 -Tandroid -Parm -XXis -vw -Filib\arm-linux -FlC:\Android\android-ndk-r18b\platforms\android-26\arch-arm\usr\lib -Fu. -Fu..\.. -FUlib\arm-linux\ -FEjava\libs\armeabi\ -olibzgeandroid.so -dANDROID -dMINIMAL -Xd -CpARMV6 zgeandroid.pas
ZClasses.pas(585,5) Warning: Constructor should be public
ZMath.pas(652,1) Warning: Function result variable does not seem to be initialized
Renderer.pas(805,17) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(972,23) Warning: Local variable "TextBuf" does not seem to be initialized
Renderer.pas(1465,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(1466,20) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
Renderer.pas(1606,66) Warning: Local variable "ScaledGravity" does not seem to be initialized
ZExpressions.pas(649,5) Warning: Function result variable does not seem to be initialized
ZExpressions.pas(1901,28) Warning: Local variable "Dest" does not seem to be initialized
ZExpressions.pas(2039,15) Warning: Arithmetic "+" on untyped pointer is unportable to {$T+}, suggest typecast
ZExpressions.pas(2597,36) Warning: Local variable "V" does not seem to be initialized
ZBitmap.pas(289,24) Warning: Local variable "NewMemory" does not seem to be initialized
ZClasses.pas(731,5) Warning: Constructor should be public
ZClasses.pas(802,6) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(803,14) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(1223,1) Warning: Function result variable does not seem to be initialized
ZClasses.pas(1347,23) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(2154,15) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(3992,19) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
ZClasses.pas(3992,38) Warning: Converting pointers to signed integers may result in wrong comparison results and range errors, use an unsigned type instead.
BitmapProducers.pas(342,18) Warning: Local variable "Y" does not seem to be initialized
BitmapProducers.pas(341,18) Warning: Local variable "X" does not seem to be initialized
BitmapProducers.pas(983,34) Warning: Local variable "CP" does not seem to be initialized
Steering.pas(493,37) Warning: Local variable "ClosestPoint" does not seem to be initialized
ImplicitMeshes.pas(196,5) Warning: Constructor should be public
ZFile.pas(236,23) Warning: Local variable "NameBuf" does not seem to be initialized
I'm trying empty, zpong and omeganaut right now :D
User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

And it's the same result: no error message but everything that should be black is white...

Here's the zgeandroid log for the empty project:

Code: Select all

12-11 11:17:50.984 I/ZgeAndroid(21194): Before load binary
12-11 11:17:51.025 I/ZgeAndroid(21194): After load binary
12-11 11:17:51.036 E/ZgeAndroid(21194): /storage/emulated/0
12-11 11:17:51.036 E/ZgeAndroid(21194): /data/user/0/com.mydomain.empty/files/
12-11 11:17:51.036 E/ZgeAndroid(21194): /data/user/0/com.mydomain.empty/lib/
12-11 11:17:51.036 I/ZgeAndroid(21194): Before initZApp
12-11 11:17:51.038 E/ZgeAndroid(21194): JNI_OnLoad
12-11 11:17:51.039 E/ZgeAndroid(21194): glDepthRange
12-11 11:17:51.039 E/ZgeAndroid(21194): glGenLists
12-11 11:17:51.039 E/ZgeAndroid(21194): glMateriali
12-11 11:17:51.039 E/ZgeAndroid(21194): glIndexMask
12-11 11:17:51.039 E/ZgeAndroid(21194): glListBase
12-11 11:17:51.040 E/ZgeAndroid(21194): glBegin
12-11 11:17:51.040 E/ZgeAndroid(21194): glCallList
12-11 11:17:51.040 E/ZgeAndroid(21194): glColor3f
12-11 11:17:51.040 E/ZgeAndroid(21194): glColor3fv
12-11 11:17:51.040 E/ZgeAndroid(21194): glColor4fv
12-11 11:17:51.040 E/ZgeAndroid(21194): glEnd
12-11 11:17:51.040 E/ZgeAndroid(21194): glColorMaterial
12-11 11:17:51.040 E/ZgeAndroid(21194): glDeleteLists
12-11 11:17:51.040 E/ZgeAndroid(21194): glDrawBuffer
12-11 11:17:51.040 E/ZgeAndroid(21194): glGetTexImage
12-11 11:17:51.040 E/ZgeAndroid(21194): glPolygonMode
12-11 11:17:51.040 E/ZgeAndroid(21194): glPopAttrib
12-11 11:17:51.040 E/ZgeAndroid(21194): glPushAttrib
12-11 11:17:51.040 E/ZgeAndroid(21194): glRasterPos2f
12-11 11:17:51.040 E/ZgeAndroid(21194): glTexCoord2f
12-11 11:17:51.040 E/ZgeAndroid(21194): glVertex2f
12-11 11:17:51.040 E/ZgeAndroid(21194): glVertex3f
12-11 11:17:51.041 E/ZgeAndroid(21194): glTexGeni
12-11 11:17:51.041 E/ZgeAndroid(21194): glAttachShader
12-11 11:17:51.041 E/ZgeAndroid(21194): glBindAttribLocation
12-11 11:17:51.041 E/ZgeAndroid(21194): glCompileShader
12-11 11:17:51.041 E/ZgeAndroid(21194): glCreateShader
12-11 11:17:51.041 E/ZgeAndroid(21194): glCreateProgram
12-11 11:17:51.041 E/ZgeAndroid(21194): glDeleteShader
12-11 11:17:51.041 E/ZgeAndroid(21194): glDeleteProgram
12-11 11:17:51.041 E/ZgeAndroid(21194): glDetachShader
12-11 11:17:51.041 E/ZgeAndroid(21194): glGetProgramiv
12-11 11:17:51.041 E/ZgeAndroid(21194): glGetShaderiv
12-11 11:17:51.041 E/ZgeAndroid(21194): glGetShaderInfoLog
12-11 11:17:51.041 E/ZgeAndroid(21194): glGetProgramInfoLog
12-11 11:17:51.041 E/ZgeAndroid(21194): glValidateProgram
12-11 11:17:51.041 E/ZgeAndroid(21194): glGetUniformLocation
12-11 11:17:51.041 E/ZgeAndroid(21194): glLinkProgram
12-11 11:17:51.041 E/ZgeAndroid(21194): glShaderSource
12-11 11:17:51.042 E/ZgeAndroid(21194): glUniform3fv
12-11 11:17:51.042 E/ZgeAndroid(21194): glUniform1f
12-11 11:17:51.042 E/ZgeAndroid(21194): glUniform4fv
12-11 11:17:51.042 E/ZgeAndroid(21194): glUniform2fv
12-11 11:17:51.042 E/ZgeAndroid(21194): glUniform1i
12-11 11:17:51.042 E/ZgeAndroid(21194): glUniform1fv
12-11 11:17:51.042 E/ZgeAndroid(21194): glUniformMatrix3fv
12-11 11:17:51.042 E/ZgeAndroid(21194): glUniformMatrix4fv
12-11 11:17:51.042 E/ZgeAndroid(21194): glUseProgram
12-11 11:17:51.042 E/ZgeAndroid(21194): glIsRenderbuffer
12-11 11:17:51.042 E/ZgeAndroid(21194): glBindRenderbuffer
12-11 11:17:51.042 E/ZgeAndroid(21194): glDeleteRenderbuffers
12-11 11:17:51.042 E/ZgeAndroid(21194): glGenRenderbuffers
12-11 11:17:51.042 E/ZgeAndroid(21194): glRenderbufferStorage
12-11 11:17:51.042 E/ZgeAndroid(21194): glBindFramebuffer
12-11 11:17:51.042 E/ZgeAndroid(21194): glDeleteFramebuffers
12-11 11:17:51.042 E/ZgeAndroid(21194): glGenFramebuffers
12-11 11:17:51.042 E/ZgeAndroid(21194): glCheckFramebufferStatus
12-11 11:17:51.042 E/ZgeAndroid(21194): glFramebufferTexture2D
12-11 11:17:51.042 E/ZgeAndroid(21194): glFramebufferRenderbuffer
12-11 11:17:51.042 E/ZgeAndroid(21194): glGenerateMipmap
12-11 11:17:51.042 E/ZgeAndroid(21194): glRenderbufferStorageMultisample
12-11 11:17:51.042 E/ZgeAndroid(21194): glTexImage2DMultisample
12-11 11:17:51.042 E/ZgeAndroid(21194): glBlitFramebuffer
12-11 11:17:51.042 E/ZgeAndroid(21194): glDisableVertexAttribArray
12-11 11:17:51.042 E/ZgeAndroid(21194): glEnableVertexAttribArray
12-11 11:17:51.042 E/ZgeAndroid(21194): glVertexAttribPointer
12-11 11:17:51.043 I/ZgeAndroid(21194): Before initZApp
12-11 11:17:51.046 E/ZgeAndroid(21194): GLBase: 1.1
12-11 11:17:51.308 E/ZgeAndroid(21194): JNI_OnLoad
12-11 11:17:51.308 E/ZgeAndroid(21194): glDepthRange
12-11 11:17:51.309 E/ZgeAndroid(21194): glGenLists
12-11 11:17:51.309 E/ZgeAndroid(21194): glMateriali
12-11 11:17:51.309 E/ZgeAndroid(21194): glIndexMask
12-11 11:17:51.309 E/ZgeAndroid(21194): glListBase
12-11 11:17:51.309 E/ZgeAndroid(21194): glBegin
12-11 11:17:51.309 E/ZgeAndroid(21194): glCallList
12-11 11:17:51.309 E/ZgeAndroid(21194): glColor3f
12-11 11:17:51.309 E/ZgeAndroid(21194): glColor3fv
12-11 11:17:51.309 E/ZgeAndroid(21194): glColor4fv
12-11 11:17:51.309 E/ZgeAndroid(21194): glEnd
12-11 11:17:51.309 E/ZgeAndroid(21194): glColorMaterial
12-11 11:17:51.309 E/ZgeAndroid(21194): glDeleteLists
12-11 11:17:51.309 E/ZgeAndroid(21194): glDrawBuffer
12-11 11:17:51.309 E/ZgeAndroid(21194): glGetTexImage
12-11 11:17:51.309 E/ZgeAndroid(21194): glPolygonMode
12-11 11:17:51.309 E/ZgeAndroid(21194): glPopAttrib
12-11 11:17:51.310 E/ZgeAndroid(21194): glPushAttrib
12-11 11:17:51.310 E/ZgeAndroid(21194): glRasterPos2f
12-11 11:17:51.310 E/ZgeAndroid(21194): glTexCoord2f
12-11 11:17:51.310 E/ZgeAndroid(21194): glVertex2f
12-11 11:17:51.310 E/ZgeAndroid(21194): glVertex3f
12-11 11:17:51.310 E/ZgeAndroid(21194): glTexGeni
12-11 11:17:51.332 E/ZgeAndroid(21194): glAttachShader
12-11 11:17:51.332 E/ZgeAndroid(21194): glBindAttribLocation
12-11 11:17:51.333 E/ZgeAndroid(21194): glCompileShader
12-11 11:17:51.333 E/ZgeAndroid(21194): glCreateShader
12-11 11:17:51.333 E/ZgeAndroid(21194): glCreateProgram
12-11 11:17:51.333 E/ZgeAndroid(21194): glDeleteShader
12-11 11:17:51.333 E/ZgeAndroid(21194): glDeleteProgram
12-11 11:17:51.333 E/ZgeAndroid(21194): glDetachShader
12-11 11:17:51.333 E/ZgeAndroid(21194): glGetProgramiv
12-11 11:17:51.333 E/ZgeAndroid(21194): glGetShaderiv
12-11 11:17:51.333 E/ZgeAndroid(21194): glGetShaderInfoLog
12-11 11:17:51.333 E/ZgeAndroid(21194): glGetProgramInfoLog
12-11 11:17:51.333 E/ZgeAndroid(21194): glValidateProgram
12-11 11:17:51.333 E/ZgeAndroid(21194): glGetUniformLocation
12-11 11:17:51.333 E/ZgeAndroid(21194): glLinkProgram
12-11 11:17:51.333 E/ZgeAndroid(21194): glShaderSource
12-11 11:17:51.333 E/ZgeAndroid(21194): glUniform3fv
12-11 11:17:51.333 E/ZgeAndroid(21194): glUniform1f
12-11 11:17:51.333 E/ZgeAndroid(21194): glUniform4fv
12-11 11:17:51.333 E/ZgeAndroid(21194): glUniform2fv
12-11 11:17:51.333 E/ZgeAndroid(21194): glUniform1i
12-11 11:17:51.333 E/ZgeAndroid(21194): glUniform1fv
12-11 11:17:51.333 E/ZgeAndroid(21194): glUniformMatrix3fv
12-11 11:17:51.334 E/ZgeAndroid(21194): glUniformMatrix4fv
12-11 11:17:51.334 E/ZgeAndroid(21194): glUseProgram
12-11 11:17:51.334 E/ZgeAndroid(21194): glIsRenderbuffer
12-11 11:17:51.334 E/ZgeAndroid(21194): glBindRenderbuffer
12-11 11:17:51.334 E/ZgeAndroid(21194): glDeleteRenderbuffers
12-11 11:17:51.334 E/ZgeAndroid(21194): glGenRenderbuffers
12-11 11:17:51.334 E/ZgeAndroid(21194): glRenderbufferStorage
12-11 11:17:51.335 E/ZgeAndroid(21194): glBindFramebuffer
12-11 11:17:51.336 E/ZgeAndroid(21194): glDeleteFramebuffers
12-11 11:17:51.336 E/ZgeAndroid(21194): glGenFramebuffers
12-11 11:17:51.337 E/ZgeAndroid(21194): glCheckFramebufferStatus
12-11 11:17:51.337 E/ZgeAndroid(21194): glFramebufferTexture2D
12-11 11:17:51.337 E/ZgeAndroid(21194): glFramebufferRenderbuffer
12-11 11:17:51.337 E/ZgeAndroid(21194): glGenerateMipmap
12-11 11:17:51.337 E/ZgeAndroid(21194): glRenderbufferStorageMultisample
12-11 11:17:51.337 E/ZgeAndroid(21194): glTexImage2DMultisample
12-11 11:17:51.337 E/ZgeAndroid(21194): glBlitFramebuffer
12-11 11:17:51.337 E/ZgeAndroid(21194): glDisableVertexAttribArray
12-11 11:17:51.337 E/ZgeAndroid(21194): glEnableVertexAttribArray
12-11 11:17:51.337 E/ZgeAndroid(21194): glVertexAttribPointer
And the rest of the log:

Code: Select all

12-11 11:17:50.068 I/ActivityManager(3648): START u0 {act=android.intent.action.MAIN typ=null flg=0x10200000 cmp=ComponentInfo{com.mydomain.empty/org.zgameeditor.ZgeActivity}} from uid 10079 on display 0
12-11 11:17:50.124 D/ActivityManager(3648): computeStackFocus: New stack r=ActivityRecord{1058634d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t-1} stackId=1
12-11 11:17:50.128 D/ActivityManager(3648): moveToFront() : reason=startedActivity setFocusedActivity isAttached=true TaskRecord{28ed1a0d0 #26135 A=com.mydomain.empty U=0 StackId=1 sz=1}
12-11 11:17:50.137 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{28ed1a0d0 #26135 A=com.mydomain.empty U=0 StackId=1 sz=1} next=ActivityRecord{1058634d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t26135} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 14 tasks}
12-11 11:17:50.161 D/ActivityManager(3648): resumeTopActivityInnerLocked() : #1 prevTask=TaskRecord{24be6c9d0 #24938 A=com.sec.android.app.launcher U=0 StackId=0 sz=1} next=ActivityRecord{1058634d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t26135} mFocusedStack=ActivityStack{7e1835ed0 stackId=1, 14 tasks}
12-11 11:17:50.162 D/ActivityManager(3648): applyOptionsLocked, ANIM_CUSTOM_SCALE_UP, task.getRootActivity() : ActivityRecord{1058634d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity t26135}, task.getTaskToReturnTo() : 1
12-11 11:17:50.163 D/MountService(3648): getExternalStorageMountMode : final mountMode=1, uid : 10373, packageName : com.mydomain.empty
12-11 11:17:50.182 D/WindowManager(3648): openInputChannel mInputChannel: 130e464 Starting com.mydomain.empty (server)
12-11 11:17:50.184 D/ViewRootImpl@dc165f6[empty](3648): setView = DecorView@bfe6cd[empty] touchMode=true
12-11 11:17:50.188 I/ActivityManager(3648): Start proc 21194:com.mydomain.empty/u0a373 for activity com.mydomain.empty/org.zgameeditor.ZgeActivity
12-11 11:17:50.193 D/ViewRootImpl@dc165f6[empty](3648): dispatchAttachedToWindow
12-11 11:17:50.195 V/WindowManager(3648): Relayout Window{130e464d0 u0 Starting com.mydomain.empty}: viewVisibility=0 req=1440x2464 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#81830118 pfl=0x20011 wanim=0x1030465 vsysui=0x600 needsMenuKey=2 naviIconColor=0}
12-11 11:17:50.196 I/SELinux (21194): SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.mydomain.empty 
12-11 11:17:50.276 I/ActivityManager(3648): DSS on for com.mydomain.empty and scale is 1.0
12-11 11:17:50.614 D/GameManagerService(3648): NotifyRunnable. pkg: com.mydomain.empty, type: 4, isMinimized: false, isTunableApp: false
12-11 11:17:50.624 D/ViewRootImpl@dc165f6[empty](3648): Relayout returned: oldFrame=[0,0][0,0] newFrame=[0,0][0,0] result=0x7 surface={isValid=true 500410689536} surfaceGenerationChanged=true
12-11 11:17:50.653 D/GamePkgDataHelper(3648): getGamePkgData(). com.mydomain.empty
12-11 11:17:50.654 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-11 11:17:50.654 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-11 11:17:50.691 V/WindowManager(3648): Now policy shown: Window{130e464d0 u0 Starting com.mydomain.empty}
12-11 11:17:50.693 D/WindowManager(3648): finishDrawingWindow: Window{130e464d0 u0 Starting com.mydomain.empty} mDrawState=DRAW_PENDING
12-11 11:17:50.786 D/MdnieScenarioControlService(3648):  packageName : com.mydomain.empty    className : org.zgameeditor.ZgeActivity
12-11 11:17:51.036 E/ZgeAndroid(21194): /data/user/0/com.mydomain.empty/files/
12-11 11:17:51.036 E/ZgeAndroid(21194): /data/user/0/com.mydomain.empty/lib/
12-11 11:17:51.043 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-11 11:17:51.044 D/GameManagerService(3648): identifyGamePackage. com.mydomain.empty
12-11 11:17:51.177 D/WindowManager(3648): openInputChannel mInputChannel: c856201 com.mydomain.empty/org.zgameeditor.ZgeActivity (server)
12-11 11:17:51.196 V/WindowManager(3648): Relayout Window{c856201d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity}: viewVisibility=0 req=2560x1344 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#81810500 pfl=0x20000 fmt=-3 wanim=0x1030465 vsysui=0x600 needsMenuKey=2 naviIconColor=0}
12-11 11:17:51.236 V/WindowManager(3648): Relayout Window{fc82e94d0 u0 SurfaceView - com.mydomain.empty/org.zgameeditor.ZgeActivity}: viewVisibility=0 req=2560x1440 WM.LayoutParams{(0,0)(2560x1440) gr=#800033 ty=1000 fl=#24218 pfl=0x10040 fmt=1 naviIconColor=0}
12-11 11:17:51.340 D/WindowManager(3648): finishDrawingWindow: Window{fc82e94d0 u0 SurfaceView - com.mydomain.empty/org.zgameeditor.ZgeActivity} mDrawState=DRAW_PENDING
12-11 11:17:51.354 V/WindowManager(3648): Relayout Window{c856201d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity}: viewVisibility=0 req=2560x1440 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#81810500 pfl=0x20000 fmt=-3 wanim=0x1030465 vsysui=0x600 needsMenuKey=2 naviIconColor=0}
12-11 11:17:51.365 V/WindowManager(3648): Relayout Window{fc82e94d0 u0 SurfaceView - com.mydomain.empty/org.zgameeditor.ZgeActivity}: viewVisibility=0 req=2560x1440 WM.LayoutParams{(0,0)(2560x1440) gr=#800033 ty=1000 fl=#24218 pfl=0x10040 fmt=1 naviIconColor=0}
12-11 11:17:51.395 D/WindowManager(3648): finishDrawingWindow: Window{fc82e94d0 u0 SurfaceView - com.mydomain.empty/org.zgameeditor.ZgeActivity} mDrawState=READY_TO_SHOW
12-11 11:17:51.405 I/Layer   (3099): [com.mydomain.empty/org.zgameeditor.ZgeActivity] addSyncPoint start
12-11 11:17:51.405 I/Layer   (3099): [com.mydomain.empty/org.zgameeditor.ZgeActivity] addSyncPoint end
12-11 11:17:51.419 I/Layer   (3099): [com.mydomain.empty/org.zgameeditor.ZgeActivity] addSyncPoint start
12-11 11:17:51.419 I/Layer   (3099): [com.mydomain.empty/org.zgameeditor.ZgeActivity] addSyncPoint end
12-11 11:17:51.469 I/Layer   (3099): [com.mydomain.empty/org.zgameeditor.ZgeActivity] addSyncPoint start
12-11 11:17:51.469 I/Layer   (3099): [com.mydomain.empty/org.zgameeditor.ZgeActivity] addSyncPoint end
12-11 11:17:51.474 I/Layer   (3099): [com.mydomain.empty/org.zgameeditor.ZgeActivity] addSyncPoint start
12-11 11:17:51.474 I/Layer   (3099): [com.mydomain.empty/org.zgameeditor.ZgeActivity] addSyncPoint end
12-11 11:17:51.568 D/WindowManager(3648): finishDrawingWindow: Window{c856201d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity} mDrawState=DRAW_PENDING
12-11 11:17:51.571 V/InputMethodManager(21194): Starting input: tba=android.view.inputmethod.EditorInfo@144ae06 nm : com.mydomain.empty ic=null
12-11 11:17:51.592 V/InputMethodManagerService(3648): windowGainedFocus: reason=WINDOW_FOCUS_GAIN client=android.os.BinderProxy@ed168da inputContext=null missingMethods= attribute=android.view.inputmethod.EditorInfo@e51d3d nm = com.mydomain.empty controlFlags=#105 softInputMode=#20 windowFlags=#81810500
12-11 11:17:51.612 D/ViewRootImpl@dc165f6[empty](3648): MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=2
12-11 11:17:51.613 I/ActivityManager(3648): Displayed com.mydomain.empty/org.zgameeditor.ZgeActivity: +1s450ms
12-11 11:17:51.630 V/WindowManager(3648): Relayout Window{130e464d0 u0 Starting com.mydomain.empty}: viewVisibility=0 req=2560x1440 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=3 fl=#81830118 pfl=0x20011 wanim=0x1030465 vsysui=0x600 needsMenuKey=2 naviIconColor=0}
12-11 11:17:51.635 D/ViewRootImpl@dc165f6[empty](3648): Relayout returned: oldFrame=[0,0][2560,1440] newFrame=[0,0][2560,1440] result=0x21 surface={isValid=true 500410689536} surfaceGenerationChanged=false
12-11 11:17:51.653 D/WindowManager(3648): finishDrawingWindow: Window{c856201d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity} mDrawState=HAS_DRAWN
12-11 11:17:51.654 V/InputMethodManager(21194): Starting input: tba=android.view.inputmethod.EditorInfo@5e81cc7 nm : com.mydomain.empty ic=null
12-11 11:17:51.702 D/WindowManager(3648): finishDrawingWindow: Window{130e464d0 u0 Starting com.mydomain.empty} mDrawState=DRAW_PENDING
12-11 11:17:51.702 D/ViewRootImpl@dc165f6[empty](3648): dispatchDetachedFromWindow
12-11 11:17:51.703 D/WindowManager(3648): disposeInputChannel mInputChannel: 130e464 Starting com.mydomain.empty (server)
12-11 11:17:51.707 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=Starting com.mydomain.empty) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.removeLocked:1880 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2924 com.android.server.wm.WindowManagerService.removeWindowLocked:2874 com.android.server.wm.WindowManagerService.removeWindowLocked:2689 com.android.server.wm.WindowManagerService.removeWindow:2684 com.android.server.wm.Session.remove:218 
12-11 11:17:51.729 D/WindowManager(3648): finishDrawingWindow: Window{c856201d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity} mDrawState=DRAW_PENDING
12-11 11:17:51.745 I/WindowManager(3648): Screen frozen for +1s527ms due to Window{c856201d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity}
12-11 11:17:51.818 D/MdnieScenarioControlService(3648):  packageName : com.mydomain.empty    className : org.zgameeditor.ZgeActivity
12-11 11:17:53.991 I/WindowManager(3648): WIN DEATH: Window{c856201d0 u0 com.mydomain.empty/org.zgameeditor.ZgeActivity}
12-11 11:17:53.991 D/WindowManager(3648): disposeInputChannel mInputChannel: c856201 com.mydomain.empty/org.zgameeditor.ZgeActivity (server)
12-11 11:17:53.992 I/ActivityManager(3648): Process com.mydomain.empty (pid 21194) has died(66,377)
12-11 11:17:54.000 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=com.mydomain.empty/org.zgameeditor.ZgeActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.removeLocked:1880 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2924 com.android.server.wm.WindowManagerService.removeWindowLocked:2874 com.android.server.wm.WindowState$DeathRecipient.binderDied:2320 android.os.BinderProxy.sendDeathNotice:701 <bottom of call stack> 
12-11 11:17:54.007 I/WindowManager(3648): WIN DEATH: Window{fc82e94d0 u0 SurfaceView - com.mydomain.empty/org.zgameeditor.ZgeActivity}
12-11 11:17:54.008 I/WindowManager_SurfaceController(3648): Destroying surface Surface(name=SurfaceView - com.mydomain.empty/org.zgameeditor.ZgeActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2906 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:1120 com.android.server.wm.WindowState.removeLocked:1880 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2924 com.android.server.wm.WindowManagerService.removeWindowLocked:2874 com.android.server.wm.WindowState$DeathRecipient.binderDied:2320 android.os.BinderProxy.sendDeathNotice:701 <bottom of call stack> 
12-11 11:17:54.024 I/ActivityManager(3648): Killing 18433:com.google.process.gapps/u0a24 (adj 906): DHA:empty #9
12-11 11:17:54.026 I/ActivityManager(3648): Killing 16039:com.samsung.android.lool/1000 (adj 906): DHA:empty #9
12-11 11:17:55.976 I/ApplicationPackageManager(4023): load=com.mydomain.empty, bg=192-192, dr=192-192, forDefault=true
Attachments
ZPong-debug.apk
ZPong API 26
(288.36 KiB) Downloaded 518 times
ZGameEditor application-debug.apk
Empty project API 26
(284.62 KiB) Downloaded 493 times
User avatar
VilleK
Site Admin
Posts: 2355
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: ZGameEditor & Android Setting

Post by VilleK »

Ok but this is a step forward because now we at least has a binary that loads at API level 26, right?

Are all colors inverted or is it just the background color?
User avatar
Ats
Posts: 762
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: ZGameEditor & Android Setting

Post by Ats »

I don't have a "recent" phone so I had to wait for a friend to test the APK.
So on his API 28 it is installing, which is better, but he has the same problem with the light. The black background is white and lights on materials without textures are overexposed. Do we have a zge project with colors in order to test and comprehend what's going on?
Post Reply