Google Play New problem : 64bits

All topics about ZGameEditor goes here.

Moderator: Moderators

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

Re: Google Play New problem : 64bits

Post by Ats »

Even with that line (+ uses Math) Android Studio doesn't appreciate the division per zero in OnUpdate. The real device doesn't seem to be affected. But it was crashing often before with the division per zero on the bitmap width. It behaves exactly the same without the addition of that line.

Code: Select all

<?xml version="1.0" encoding="iso-8859-1" ?>
<ZApplication Name="App" Caption="Zero" ClearColor="0.502 0.502 1 1" AmbientLightColor="1 1 1 1" FullScreen="255" FrameRateStyle="1" ScreenMode="0" CameraPosition="0 0 14" MouseVisible="255" FileVersion="2" PreviewClearColor="0 0 0 1" AndroidPackageName="com.txori.omeganaut" AndroidPortrait="2">
  <OnLoaded>
    <ZExpression>
      <Expression>
<![CDATA[trace("OnLoaded");
trace("before divide per zero");
float x=1, y=0, z=x/y;
trace("after divide per zero");]]>
      </Expression>
    </ZExpression>
  </OnLoaded>
  <OnUpdate>
    <ZExpression>
      <Expression>
<![CDATA[trace("OnUpdate");
trace("before divide per zero");
float x=1, y=0, z=x/y;
trace("after divide per zero");]]>
      </Expression>
    </ZExpression>
  </OnUpdate>
</ZApplication>

Code: Select all

2024-10-28 14:02:46.152   987-1032  WindowManagerShell      com.android.systemui                 V  Transition requested: android.os.BinderProxy@2940d93 TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=210 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.txori.omeganaut/org.zgameeditor.ZgeActivity } baseActivity=ComponentInfo{com.txori.omeganaut/org.zgameeditor.ZgeActivity} topActivity=ComponentInfo{com.txori.omeganaut/org.zgameeditor.ZgeActivity} origActivity=null realActivity=ComponentInfo{com.txori.omeganaut/org.zgameeditor.ZgeActivity} numActivities=1 lastActiveTime=28670954 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{android.window.IWindowContainerToken$Stub$Proxy@7dec1d0} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 144 - 0, 0) topActivityInfo=ActivityInfo{fc615c9 org.zgameeditor.ZgeActivity} launchCookies=[android.os.BinderProxy@470b4ce] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden}, remoteTransition = RemoteTransition { remoteTransition = android.window.IRemoteTransition$Stub$Proxy@67efef, appThread = android.app.IApplicationThread$Stub$Proxy@9362afc, debugName = QuickstepLaunch }, displayChange = null }
2024-10-28 14:02:46.153   566-2121  ActivityTaskManager     system_server                        I  START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.txori.omeganaut/org.zgameeditor.ZgeActivity bnds=[101,2416][332,2676]} with LAUNCH_SINGLE_TASK from uid 10168 (BAL_ALLOW_ALLOWLISTED_COMPONENT) result code=0
2024-10-28 14:02:46.165   566-601   ActivityManager         system_server                        I  Start proc 30822:com.txori.omeganaut/u0a201 for next-top-activity {com.txori.omeganaut/org.zgameeditor.ZgeActivity}
2024-10-28 14:02:46.225   566-588   WindowManager           system_server                        V  Sent Transition #897 createdAt=10-28 14:02:46.144 via request=TransitionRequestInfo { type = OPEN, triggerTask = TaskInfo{userId=0 taskId=210 displayId=0 isRunning=true baseIntent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.txori.omeganaut/org.zgameeditor.ZgeActivity } baseActivity=ComponentInfo{com.txori.omeganaut/org.zgameeditor.ZgeActivity} topActivity=ComponentInfo{com.txori.omeganaut/org.zgameeditor.ZgeActivity} origActivity=null realActivity=ComponentInfo{com.txori.omeganaut/org.zgameeditor.ZgeActivity} numActivities=1 lastActiveTime=28670954 supportsMultiWindow=true resizeMode=1 isResizeable=true minWidth=-1 minHeight=-1 defaultMinSize=220 token=WCT{RemoteToken{7b1fb36 Task{da15161 #210 type=standard A=10201:com.txori.omeganaut}}} topActivityType=1 pictureInPictureParams=null shouldDockBigOverlays=false launchIntoPipHostTaskId=-1 lastParentTaskIdBeforePip=-1 displayCutoutSafeInsets=Rect(0, 144 - 0, 0) topActivityInfo=ActivityInfo{3169a37 org.zgameeditor.ZgeActivity} launchCookies=[android.os.BinderProxy@1269ba4] positionInParent=Point(0, 0) parentTaskId=-1 isFocused=false isVisible=false isVisibleRequested=false isSleeping=false topActivityInSizeCompat=false topActivityEligibleForLetterboxEducation= false topActivityLetterboxed= false isFromDoubleTap= false topActivityLetterboxVerticalPosition= -1 topActivityLetterboxHorizontalPosition= -1 topActivityLetterboxWidth=-1 topActivityLetterboxHeight=-1 locusId=null displayAreaFeatureId=1 cameraCompatControlState=hidden}, remoteTransition = RemoteTransition { remoteTransition = android.window.IRemoteTransition$Stub$Proxy@5b46d0d, appThread = android.app.IApplicationThread$Stub$Proxy@c1a94c2, debugName = QuickstepLaunch }, displayChange = null }
2024-10-28 14:02:46.399 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  /storage/emulated/0
2024-10-28 14:02:46.400 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  /data/user/0/com.txori.omeganaut/files/
2024-10-28 14:02:46.400 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  /data/app/~~6ZToEHurRTIJS9uBe-Yp5Q==/com.txori.omeganaut-3TY6l-z_CJsax0TLxlUr1w==/lib/arm64/
2024-10-28 14:02:46.403 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_LoadModule: Attempting to load module libGLESv1_CM.so
2024-10-28 14:02:46.403 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_LoadModule: Using provided path libGLESv1_CM.so
2024-10-28 14:02:46.411 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_LoadModule: Successfully loaded module libGLESv1_CM.so
2024-10-28 14:02:46.411 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc trying to get InitFunc with 1355583589642155581
2024-10-28 14:02:46.411 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: JNI_OnLoad !!!!
2024-10-28 14:02:46.411 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc did not find JNI_OnLoad
2024-10-28 14:02:46.412 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDepthRange !!!!
2024-10-28 14:02:46.413 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGenLists !!!!
2024-10-28 14:02:46.414 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glMateriali !!!!
2024-10-28 14:02:46.415 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glIndexMask !!!!
2024-10-28 14:02:46.415 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glListBase !!!!
2024-10-28 14:02:46.416 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBegin !!!!
2024-10-28 14:02:46.417 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCallList !!!!
2024-10-28 14:02:46.417 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glColor3f !!!!
2024-10-28 14:02:46.417 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glColor3fv !!!!
2024-10-28 14:02:46.418 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glColor4fv !!!!
2024-10-28 14:02:46.418 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glEnd !!!!
2024-10-28 14:02:46.418 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glColorMaterial !!!!
2024-10-28 14:02:46.419 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteLists !!!!
2024-10-28 14:02:46.420 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDrawBuffer !!!!
2024-10-28 14:02:46.420 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetTexImage !!!!
2024-10-28 14:02:46.420 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glPolygonMode !!!!
2024-10-28 14:02:46.420 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glPopAttrib !!!!
2024-10-28 14:02:46.421 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glPushAttrib !!!!
2024-10-28 14:02:46.421 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glRasterPos2f !!!!
2024-10-28 14:02:46.422 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glTexCoord2f !!!!
2024-10-28 14:02:46.423 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glVertex2f !!!!
2024-10-28 14:02:46.423 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glVertex3f !!!!
2024-10-28 14:02:46.423 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glTexGeni !!!!
2024-10-28 14:02:46.426 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glAttachShader !!!!
2024-10-28 14:02:46.426 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBindAttribLocation !!!!
2024-10-28 14:02:46.426 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCompileShader !!!!
2024-10-28 14:02:46.427 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCreateShader !!!!
2024-10-28 14:02:46.427 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCreateProgram !!!!
2024-10-28 14:02:46.427 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteShader !!!!
2024-10-28 14:02:46.428 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteProgram !!!!
2024-10-28 14:02:46.428 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDetachShader !!!!
2024-10-28 14:02:46.429 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetProgramiv !!!!
2024-10-28 14:02:46.429 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetShaderiv !!!!
2024-10-28 14:02:46.429 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetShaderInfoLog !!!!
2024-10-28 14:02:46.429 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetProgramInfoLog !!!!
2024-10-28 14:02:46.430 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glValidateProgram !!!!
2024-10-28 14:02:46.430 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetUniformLocation !!!!
2024-10-28 14:02:46.431 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glLinkProgram !!!!
2024-10-28 14:02:46.431 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glShaderSource !!!!
2024-10-28 14:02:46.431 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform3fv !!!!
2024-10-28 14:02:46.431 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform1f !!!!
2024-10-28 14:02:46.431 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform4fv !!!!
2024-10-28 14:02:46.432 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform2fv !!!!
2024-10-28 14:02:46.433 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform1i !!!!
2024-10-28 14:02:46.433 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform1fv !!!!
2024-10-28 14:02:46.433 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniformMatrix3fv !!!!
2024-10-28 14:02:46.433 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniformMatrix4fv !!!!
2024-10-28 14:02:46.435 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUseProgram !!!!
2024-10-28 14:02:46.435 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glIsRenderbuffer !!!!
2024-10-28 14:02:46.436 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBindRenderbuffer !!!!
2024-10-28 14:02:46.436 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteRenderbuffers !!!!
2024-10-28 14:02:46.437 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGenRenderbuffers !!!!
2024-10-28 14:02:46.437 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glRenderbufferStorage !!!!
2024-10-28 14:02:46.437 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBindFramebuffer !!!!
2024-10-28 14:02:46.437 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteFramebuffers !!!!
2024-10-28 14:02:46.438 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGenFramebuffers !!!!
2024-10-28 14:02:46.439 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCheckFramebufferStatus !!!!
2024-10-28 14:02:46.439 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glFramebufferTexture2D !!!!
2024-10-28 14:02:46.439 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glFramebufferRenderbuffer !!!!
2024-10-28 14:02:46.440 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGenerateMipmap !!!!
2024-10-28 14:02:46.440 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glRenderbufferStorageMultisample !!!!
2024-10-28 14:02:46.440 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glTexImage2DMultisample !!!!
2024-10-28 14:02:46.441 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBlitFramebuffer !!!!
2024-10-28 14:02:46.441 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDisableVertexAttribArray !!!!
2024-10-28 14:02:46.442 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glEnableVertexAttribArray !!!!
2024-10-28 14:02:46.443 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glVertexAttribPointer !!!!
2024-10-28 14:02:46.446 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  OnLoaded
2024-10-28 14:02:46.447 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  before divide per zero
2024-10-28 14:02:46.447 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  after divide per zero
2024-10-28 14:02:46.447 30822-30822 ZgeAndroid              com.txori.omeganaut                  E  GLBase: 1.1
2024-10-28 14:02:46.466   566-2639  CoreBackPreview         system_server                        D  Window{427b37d u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@2eedb40, mPriority=0, mIsAnimationCallback=false}
2024-10-28 14:02:46.541 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_LoadModule: Attempting to load module libGLESv1_CM.so
2024-10-28 14:02:46.543 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_LoadModule: Using provided path libGLESv1_CM.so
2024-10-28 14:02:46.543 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_LoadModule: Successfully loaded module libGLESv1_CM.so
2024-10-28 14:02:46.544 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc trying to get InitFunc with 1355583589642155581
2024-10-28 14:02:46.546 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: JNI_OnLoad !!!!
2024-10-28 14:02:46.547 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc did not find JNI_OnLoad
2024-10-28 14:02:46.548 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDepthRange !!!!
2024-10-28 14:02:46.548 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGenLists !!!!
2024-10-28 14:02:46.548 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glMateriali !!!!
2024-10-28 14:02:46.549 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glIndexMask !!!!
2024-10-28 14:02:46.549 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glListBase !!!!
2024-10-28 14:02:46.551 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBegin !!!!
2024-10-28 14:02:46.551 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCallList !!!!
2024-10-28 14:02:46.552 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glColor3f !!!!
2024-10-28 14:02:46.553 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glColor3fv !!!!
2024-10-28 14:02:46.554 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glColor4fv !!!!
2024-10-28 14:02:46.554 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glEnd !!!!
2024-10-28 14:02:46.554 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glColorMaterial !!!!
2024-10-28 14:02:46.554 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteLists !!!!
2024-10-28 14:02:46.554 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDrawBuffer !!!!
2024-10-28 14:02:46.554 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetTexImage !!!!
2024-10-28 14:02:46.555 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glPolygonMode !!!!
2024-10-28 14:02:46.555 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glPopAttrib !!!!
2024-10-28 14:02:46.556 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glPushAttrib !!!!
2024-10-28 14:02:46.556 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glRasterPos2f !!!!
2024-10-28 14:02:46.557 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glTexCoord2f !!!!
2024-10-28 14:02:46.557 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glVertex2f !!!!
2024-10-28 14:02:46.557 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glVertex3f !!!!
2024-10-28 14:02:46.558 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glTexGeni !!!!
2024-10-28 14:02:46.558 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glAttachShader !!!!
2024-10-28 14:02:46.559 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBindAttribLocation !!!!
2024-10-28 14:02:46.559 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCompileShader !!!!
2024-10-28 14:02:46.559 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCreateShader !!!!
2024-10-28 14:02:46.560 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCreateProgram !!!!
2024-10-28 14:02:46.561 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteShader !!!!
2024-10-28 14:02:46.561 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteProgram !!!!
2024-10-28 14:02:46.561 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDetachShader !!!!
2024-10-28 14:02:46.561 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetProgramiv !!!!
2024-10-28 14:02:46.562 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetShaderiv !!!!
2024-10-28 14:02:46.562 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetShaderInfoLog !!!!
2024-10-28 14:02:46.562 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetProgramInfoLog !!!!
2024-10-28 14:02:46.562 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glValidateProgram !!!!
2024-10-28 14:02:46.562 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGetUniformLocation !!!!
2024-10-28 14:02:46.562 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glLinkProgram !!!!
2024-10-28 14:02:46.563 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glShaderSource !!!!
2024-10-28 14:02:46.563 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform3fv !!!!
2024-10-28 14:02:46.565 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform1f !!!!
2024-10-28 14:02:46.565 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform4fv !!!!
2024-10-28 14:02:46.565 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform2fv !!!!
2024-10-28 14:02:46.566 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform1i !!!!
2024-10-28 14:02:46.566 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniform1fv !!!!
2024-10-28 14:02:46.566 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniformMatrix3fv !!!!
2024-10-28 14:02:46.566 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUniformMatrix4fv !!!!
2024-10-28 14:02:46.567 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glUseProgram !!!!
2024-10-28 14:02:46.567 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glIsRenderbuffer !!!!
2024-10-28 14:02:46.567 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBindRenderbuffer !!!!
2024-10-28 14:02:46.567 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteRenderbuffers !!!!
2024-10-28 14:02:46.567 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGenRenderbuffers !!!!
2024-10-28 14:02:46.568 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glRenderbufferStorage !!!!
2024-10-28 14:02:46.568 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBindFramebuffer !!!!
2024-10-28 14:02:46.568 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDeleteFramebuffers !!!!
2024-10-28 14:02:46.568 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGenFramebuffers !!!!
2024-10-28 14:02:46.568 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glCheckFramebufferStatus !!!!
2024-10-28 14:02:46.569 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glFramebufferTexture2D !!!!
2024-10-28 14:02:46.569 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glFramebufferRenderbuffer !!!!
2024-10-28 14:02:46.569 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glGenerateMipmap !!!!
2024-10-28 14:02:46.569 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glRenderbufferStorageMultisample !!!!
2024-10-28 14:02:46.569 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glTexImage2DMultisample !!!!
2024-10-28 14:02:46.569 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glBlitFramebuffer !!!!
2024-10-28 14:02:46.569 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glDisableVertexAttribArray !!!!
2024-10-28 14:02:46.569 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glEnableVertexAttribArray !!!!
2024-10-28 14:02:46.570 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  Platform_GetModuleProc: Function not found: glVertexAttribPointer !!!!
2024-10-28 14:02:46.570 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  OnUpdate
2024-10-28 14:02:46.570 30822-30845 ZgeAndroid              com.txori.omeganaut                  E  before divide per zero
2024-10-28 14:02:46.639   566-588   ActivityTaskManager     system_server                        I  Displayed com.txori.omeganaut/org.zgameeditor.ZgeActivity for user 0: +493ms
2024-10-28 14:02:46.747   566-30858 ActivityTaskManager     system_server                        W    Force finishing activity com.txori.omeganaut/org.zgameeditor.ZgeActivity
2024-10-28 14:02:46.782   566-2215  WindowManager           system_server                        I  WIN DEATH: Window{427b37d u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity}
2024-10-28 14:02:46.782   566-2215  InputManager-JNI        system_server                        W  Input channel object '427b37d com.txori.omeganaut/org.zgameeditor.ZgeActivity (client)' was disposed without first being removed with the input manager!
2024-10-28 14:02:46.785   566-1067  InputManager-JNI        system_server                        W  Input channel object 'Letterbox_fullWindow_ActivityRecord{fe9ccc8 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t210} (client)' was disposed without first being removed with the input manager!
2024-10-28 14:02:46.957   566-592   WindowManager           system_server                        W  Failed to deliver inset control state change to w=Window{427b37d u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity EXITING}
                                                                                                    android.os.DeadObjectException
                                                                                                    	at android.os.BinderProxy.transactNative(Native Method)
                                                                                                    	at android.os.BinderProxy.transact(BinderProxy.java:584)
                                                                                                    	at android.view.IWindow$Stub$Proxy.insetsControlChanged(IWindow.java:479)
                                                                                                    	at com.android.server.wm.WindowState.notifyInsetsControlChanged(WindowState.java:3802)
                                                                                                    	at com.android.server.wm.InsetsStateController.lambda$notifyPendingInsetsControlChanged$3(InsetsStateController.java:343)
                                                                                                    	at com.android.server.wm.InsetsStateController.$r8$lambda$8yykPRG1GyNq_J17QvL9d5xANMc(InsetsStateController.java:0)
                                                                                                    	at com.android.server.wm.InsetsStateController$$ExternalSyntheticLambda2.run(R8$$SyntheticClass:0)
                                                                                                    	at com.android.server.wm.WindowAnimator.executeAfterPrepareSurfacesRunnables(WindowAnimator.java:294)
                                                                                                    	at com.android.server.wm.RootWindowContainer.performSurfacePlacementNoTrace(RootWindowContainer.java:811)
                                                                                                    	at com.android.server.wm.RootWindowContainer.performSurfacePlacement(RootWindowContainer.java:756)
                                                                                                    	at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:177)
                                                                                                    	at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:126)
                                                                                                    	at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:115)
                                                                                                    	at com.android.server.wm.WindowSurfacePlacer$Traverser.run(WindowSurfacePlacer.java:57)
                                                                                                    	at android.os.Handler.handleCallback(Handler.java:958)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:205)
                                                                                                    	at android.os.Looper.loop(Looper.java:294)
                                                                                                    	at android.os.HandlerThread.run(HandlerThread.java:67)
                                                                                                    	at com.android.server.ServiceThread.run(ServiceThread.java:46)
2024-10-28 14:02:47.250   566-591   ActivityTaskManager     system_server                        W  Activity top resumed state loss timeout for ActivityRecord{fe9ccc8 u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity t210 f} isExiting}
2024-10-28 14:02:47.566   566-2215  WindowManager           system_server                        W  Exception thrown during dispatchAppVisibility Window{427b37d u0 com.txori.omeganaut/org.zgameeditor.ZgeActivity EXITING}
                                                                                                    android.os.DeadObjectException
                                                                                                    	at android.os.BinderProxy.transactNative(Native Method)
                                                                                                    	at android.os.BinderProxy.transact(BinderProxy.java:584)
                                                                                                    	at android.view.IWindow$Stub$Proxy.dispatchAppVisibility(IWindow.java:546)
                                                                                                    	at com.android.server.wm.WindowState.sendAppVisibilityToClients(WindowState.java:3271)
                                                                                                    	at com.android.server.wm.WindowContainer.sendAppVisibilityToClients(WindowContainer.java:1221)
                                                                                                    	at com.android.server.wm.WindowToken.setClientVisible(WindowToken.java:409)
                                                                                                    	at com.android.server.wm.ActivityRecord.setClientVisible(ActivityRecord.java:6946)
                                                                                                    	at com.android.server.wm.ActivityRecord.postApplyAnimation(ActivityRecord.java:5637)
                                                                                                    	at com.android.server.wm.ActivityRecord.commitVisibility(ActivityRecord.java:5580)
                                                                                                    	at com.android.server.wm.Transition.finishTransition(Transition.java:1151)
                                                                                                    	at com.android.server.wm.TransitionController.finishTransition(TransitionController.java:868)
                                                                                                    	at com.android.server.wm.WindowOrganizerController.finishTransition(WindowOrganizerController.java:396)
                                                                                                    	at android.window.IWindowOrganizerController$Stub.onTransact(IWindowOrganizerController.java:286)
                                                                                                    	at com.android.server.wm.WindowOrganizerController.onTransact(WindowOrganizerController.java:181)
                                                                                                    	at android.os.Binder.execTransactInternal(Binder.java:1344)
                                                                                                    	at android.os.Binder.execTransact(Binder.java:1275)
The weird thing is that it crashes only if we are dividing per zero in OnUpdate.
My take would be to prevent division per zero instead on relying on mask exZeroDivide :?

That what they say on Lazarus forum:
Or, better, don’t let it happen in the first place. Ensure your divisor is non-zero. Exceptions are meant to signal something extraordinary, not a predictable condition.
User avatar
VilleK
Site Admin
Posts: 2365
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Google Play New problem : 64bits

Post by VilleK »

Ats wrote: Mon Oct 28, 2024 1:04 pm My take would be to prevent division per zero instead on relying on mask exZeroDivide :?
I agree and we should do that where possible, but there could be a division with zero in your ZExpressions or in ZGEBullet that only triggers after some time of gameplay.
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

I just played Omeganaut for an hour without any crashes. The only two division-by-zero errors were due to BitmapExpression not handling bitmaps with a width or height of 1 on Android 64-bit in libzegandroid. A very specific issue and hard to track down... Normally, I'd let the user’s ZGE app crash on a division-by-zero error, as it helps them catch mistakes in their code right away rather than masking the issue, which could lead to a crash later on a specific hardware :lol:
User avatar
VilleK
Site Admin
Posts: 2365
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Google Play New problem : 64bits

Post by VilleK »

What if you instead comment out the SetExceptionMask calls. That should flush forward any remaining division by zero errors.

If there are any in ZGE then they should be fixed. I think the only reason the BitmapExpression problem existed was because in the beginning ZGE did not support 1 width textures so there were no risk of the expression "width-1" result in zero.
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

So I just tried the manual division per zero with SetExceptionMask deactivated, it doesn't change anything.
The app is crashing in Android Studio, and running just fine on the real hardware. Nevermind :roll:

I saw that you validated my commits, but I forgot to add the modification to avoid division per zero in TBitmapExpression.ProduceOutput. I was thinking of adding the same var stepCount and calculate the thing the same way I did for TBitmapExpression.PixelTask.
I was thinking of taking the calculation of Task.YStep out of the for loop, since the result is always the same, but it crashes hard.

Code: Select all

procedure TBitmapExpression.ProduceOutput(Content : TContent; Stack: TZArrayList);
var
  SourceB, B: TZBitmap;
  H, W, I: integer;
  Pixels, P: PColorf;
  TaskCount, RowsLeft: integer;
  TaskList: pointer;
  Task: PPixelTask;
  TaskH: integer;
  stepCount: integer;
begin
  SourceB := GetOptionalArgument(Stack);
  if SourceB <> nil then
  begin
    B := TZBitmap.CreateFromBitmap(SourceB);
    Pixels := SourceB.GetCopyAsFloats;
    SourceB.Free;
  end
  else
  begin
    B := TZBitmap.CreateFromBitmap(TZBitmap(Content));
    Pixels := nil;
  end;

  W := B.PixelWidth;
  H := B.PixelHeight;

  if Pixels = nil then
  begin
    GetMem(Pixels, W * H * 16);
    FillChar(Pixels^, W * H * 16, 0);
  end;

  B.SetMemory(Pixels, GL_RGBA, GL_FLOAT);

  TaskCount := ZMath.Min(H, Tasks.WorkerCount);
  GetMem(TaskList, TaskCount * SizeOf(TPixelTask));
  Task := TaskList;

  RowsLeft := H;
  TaskH := H div TaskCount;
  P := Pixels;
  stepCount := H - 1;

  for I := 0 to TaskCount - 1 do
  begin
    Task.P := P;
    Task.W := W;
    Task.H := TaskH;
    Dec(RowsLeft, TaskH);
    if I = TaskCount - 1 then
      Inc(Task.H, RowsLeft); // if any rows are left, add to last task
    Task.Y := I * TaskH;
    Task.YStep := 1 / (stepCount+ Ord(stepCount = 0));
    Inc(Task);
    Inc(P, W * TaskH);
  end;

  Tasks.Run(Self.PixelTask, TaskList, TaskCount, SizeOf(TPixelTask));

  FreeMem(TaskList);

  // Needed to send the bitmap to OpenGL
  B.UseTextureBegin;

  FreeMem(Pixels);

  Stack.Push(B);
end;
I made the commit.
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

Is it possible that setting Pixel.R (G or B) can crash if it's under 0 or over 1?

I'm still getting some scarce random crashes, so I started sanitizing everything, just in case.
For example:
Pixel.R = max(0, min(GroundColor[0][0,0] + offset, 1));
User avatar
VilleK
Site Admin
Posts: 2365
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Google Play New problem : 64bits

Post by VilleK »

Ats wrote: Wed Oct 30, 2024 10:35 am Is it possible that setting Pixel.R (G or B) can crash if it's under 0 or over 1?
No, the ConvertToByte procecure in ZBitmap.pas forces the values to be in between 0 and 1 range.
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

Thanks.

I found another error, but comming from me:

Code: Select all

<Bitmap Name="BitmapSpaceColors" Width="5" Height="1">
  <Producers>
    <BitmapExpression>
       <Expression>
<![CDATA[float c1 = cos(X + 1);
float c2 = cos(X - 1);

Pixel.R = NebulaeColor1.R * c1 + NebulaeColor2.R * c2;
Pixel.G = NebulaeColor1.G * c1 + NebulaeColor2.G * c2;
Pixel.B = NebulaeColor1.B * c1 + NebulaeColor2.B * c2;
Pixel.A = 1;

// Save the central color for the fog
if (X == 0.5) {
  CloudColorPicker.X = Pixel.R * 0.4;
  CloudColorPicker.Y = Pixel.G * 0.4;
  CloudColorPicker.Z = Pixel.B * 0.4;
}]]>
      </Expression>
    </BitmapExpression>
  </Producers>
</Bitmap>
I replaced
if (X == 0.5)
by
if (X > 0.49 && X < 0.51)
and got significant less crash, even though Width="5" so X == 0.5 should work. I don't know. I'm going to calculate that differently elsewhere :lol:

Now, I think there is one last bug remaining. It is not happening often, and it is quite random. Sometimes it is happening at the title, sometime during the game. I have a good idea of what to deactivate to try to understand if it is coming from the game or from the lib.
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

All right, I think I found the last culprit :lol:
I was still initializing SunVox, even though there's no more music in the game, while waiting for me to finish composing the music (on FamiStudio, it's complicated). With SunVox entirely deactivated, it's been a good while since the game didn't randomly crash. I'm going to test it a bit more, and if everything's ok, I'll upload the new 32 and 64 libzgeandroid.so to github, then move on to find how to sign the apk with their latest API.

Edit:
Oh... Just after posting that, the game randomly crashed :roll:
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

So I’ve been running tests for days, and the 64-bit APK still crashes randomly. Sometimes it even crashes during the disclaimer screen, when nothing is running in the background yet.

Also, when I run the game again after a crash, sometimes names disappear from the high score table. That’s strange because they are loaded at the start of the game, before the disclaimer screen, and only modified or saved when a new high score is reached.

So I’m wondering if the issue could be with ZFile.pas. How could I stress-test the File/FileAction on Android 64 to investigate this?
User avatar
VilleK
Site Admin
Posts: 2365
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Google Play New problem : 64bits

Post by VilleK »

Ats wrote: Thu Nov 07, 2024 10:16 am So I’m wondering if the issue could be with ZFile.pas. How could I stress-test the File/FileAction on Android 64 to investigate this?
If you have the file in assets subfolder then the ReadAssetFile routine in ZPlatform_Android will be used. This routine also needs the same changes as the audio code (modified "C" routine and not using CallObjectMethodV),
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

I suppose replacing the last remnants of MethodV makes sense.

So in ReadAssetFile I replaced:
Buffer := Env^.CallObjectMethodV(Env, Jobject(AndroidThis), Mid, C([Env^.NewStringUTF(Env,FileName)]) );
by
Buffer := Env^.CallObjectMethodA(Env, Jobject(AndroidThis), Mid, C([Env^.NewStringUTF(Env,FileName)]) );

And I did the same in Platform_NetOpen, even if I'm not using it:
Env^.CallVoidMethodV(Env, Jobject(AndroidThis), Mid, C([Env^.NewStringUTF(Env,Url)]) );
by
Env^.CallVoidMethodA(Env, Jobject(AndroidThis), Mid, C([Env^.NewStringUTF(Env,Url)]) );

It is compiling and running well. Unfortunately, it doesn't solve my problem :(
So I simply tried to suppress the FileAction Load in OnLoaded, and it is still randomly crashing from time to time, even during the disclaimer screen. Now I'm dismantling everything again, and let the title screen run for long minutes. Sometimes it crashes right from the start, sometimes it doesn't. And I never saw it crash in Android Studio's emulator. Very hard to track...

Is there a limit to the number of variables in a project?
Is there a limit to the size and content of arrays?
Is there a limit to the ZHeight of BitmapNoise? I'm picking a random number inside [0,200], then I keep augmenting it with App.DeltaTime

Edit:
Woot! just got that error just by letting the title screen displayed:
11-08 11:56:31.584 5552 5589 E ZgeAndroid: Nested attrib push
11-08 11:56:31.584 5552 5589 E ZgeAndroid: Pop attrib without push
It's investigation time!

Edit 2:
Can't get that bug to happen again. But I got a new one, just by letting the title screen run (without background, nor title):

Code: Select all

********** Crash dump: **********
Build fingerprint: 'google/cheetah/cheetah:14/AP2A.240905.003/12231197:user/release-keys'
Abort message: 'Scudo ERROR: corrupted chunk header at address 0x2000079725a3c90'
#00 0x000000000005d8e4 /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
#01 0x0000000000048d18 /apex/com.android.runtime/lib64/bionic/libc.so (scudo::die()+8) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
#02 0x00000000000499ec /apex/com.android.runtime/lib64/bionic/libc.so (scudo::reportRawError(char const*)+28) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
#03 0x000000000004995c /apex/com.android.runtime/lib64/bionic/libc.so (scudo::ScopedErrorReport::~ScopedErrorReport()+12) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
#04 0x0000000000049ac0 /apex/com.android.runtime/lib64/bionic/libc.so (scudo::reportHeaderCorruption(void*)+96) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
#05 0x000000000004bab4 /apex/com.android.runtime/lib64/bionic/libc.so (scudo::Allocator<scudo::AndroidNormalConfig, &(scudo_malloc_postinit)>::deallocate(void*, scudo::Chunk::Origin, unsigned long, unsigned long)+276) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
#06 0x00000000000b7670 /system/lib64/libgui.so (std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, long> > >::__rehash(unsigned long)+352) (BuildId: 56d12d65b10d783f22d1e62fe5c50cd4)
#07 0x00000000000b7438 /system/lib64/libgui.so (std::__1::pair<std::__1::__hash_iterator<std::__1::__hash_node<std::__1::__hash_value_type<unsigned long, long>, void*>*>, bool> std::__1::__hash_table<std::__1::__hash_value_type<unsigned long, long>, std::__1::__unordered_map_hasher<unsigned long, std::__1::__hash_value_type<unsigned long, long>, std::__1::hash<unsigned long>, true>, std::__1::__unordered_map_equal<unsigned long, std::__1::__hash_value_type<unsigned long, long>, std::__1::equal_to<unsigned long>, true>, std::__1::allocator<std::__1::__hash_value_type<unsigned long, long> > >::__emplace_unique_key_args<unsigned long, std::__1::piecewise_construct_t const&, std::__1::tuple<unsigned long const&>, std::__1::tuple<> >(unsigned long const&, std::__1::piecewise_construct_t const&, std::__1::tuple<unsigned long const&>&&, std::__1::tuple<>&&)+472) (BuildId: 56d12d65b10d783f22d1e62fe5c50cd4)
#08 0x00000000000d463c /system/lib64/libgui.so (android::BufferQueueProducer::queueBuffer(int, android::IGraphicBufferProducer::QueueBufferInput const&, android::IGraphicBufferProducer::QueueBufferOutput*)+2652) (BuildId: 56d12d65b10d783f22d1e62fe5c50cd4)
#09 0x00000000000d9ddc /system/lib64/libgui.so (android::Surface::queueBuffer(ANativeWindowBuffer*, int)+1228) (BuildId: 56d12d65b10d783f22d1e62fe5c50cd4)
#10 0x0000000000989aa4 /vendor/lib64/egl/libGLES_mali.so (display_window_buffer(egl_winsys_display*, egl_winsys_surface*, egl_color_buffer*, int, int*)+500) (BuildId: 305b0cf48058c154)
#11 0x00000000009a07f0 /vendor/lib64/egl/libGLES_mali.so (eglp_gles_flush_operation+1056) (BuildId: 305b0cf48058c154)
#12 0x000000000099f90c /vendor/lib64/egl/libGLES_mali.so (eglp_swap_buffers+556) (BuildId: 305b0cf48058c154)
#13 0x00000000000225d4 /system/lib64/libEGL.so (android::eglSwapBuffersWithDamageKHRImpl(void*, void*, int*, int)+484) (BuildId: eee4c252ce43432b57dc78f184deb65b)
#14 0x000000000001eeb4 /system/lib64/libEGL.so (eglSwapBuffers+52) (BuildId: eee4c252ce43432b57dc78f184deb65b)
#15 0x00000000000f25d8 /system/lib64/libandroid_runtime.so (android::jni_eglSwapBuffers(_JNIEnv*, _jobject*, _jobject*, _jobject*)+104) (BuildId: e0fc1ccfe043ab286e745f48696bc0d8)
#16 0x000000000030cedc /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (art_jni_trampoline+140)
#17 0x0000000000780844 /apex/com.android.art/lib64/libart.so (nterp_helper+7636) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
#18 0x00000000001a6e64 /system/framework/framework.jar (android.opengl.GLSurfaceView$EglHelper.swap+12)
#19 0x000000000077f9c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
#20 0x00000000001a785e /system/framework/framework.jar (android.opengl.GLSurfaceView$GLThread.guardedRun+1142)
#21 0x000000000077f9c4 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
#22 0x00000000001a7e64 /system/framework/framework.jar (android.opengl.GLSurfaceView$GLThread.run+52)
#23 0x000000000036db74 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
#24 0x0000000000359324 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+132) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
#25 0x0000000000944438 /apex/com.android.art/lib64/libart.so (_ZN3art9ArtMethod14InvokeInstanceILc86ETpTncJEEENS_6detail12ShortyTraitsIXT_EE4TypeEPNS_6ThreadENS_6ObjPtrINS_6mirror6ObjectEEEDpNS3_IXT0_EE4TypeE+60) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
#26 0x00000000006209f4 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1344) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
#27 0x00000000006204a4 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallbackWithUffdGc(void*)+8) (BuildId: 3f7d5a016e08d528f129bdd336d81168)
#28 0x000000000006efbc /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
#29 0x0000000000060d60 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 1d36f8ae6e0af6158793abea7d4f4f2b)
Crash dump is completed
Another weird bug that happens from time to time:
Sometimes I lose a name in the High Scores table. The weird thing is that, since there is no more load/save file in that test version of the game, the names are set at the start...

Code: Select all

11-08 13:22:50.761 15888 15935 E ZgeAndroid: HighScores[0] = 10000 'BEE'
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[1] = 5000 'ZGE'
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[2] = 2500 'FOX'
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[3] = 1000 'SUN'
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[4] = 500 'DIO'
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[5] = 250 'ACE'
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[6] = 100 ''  <------------ WTF!?
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[7] = 50 'BOB'
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[8] = 25 'RYU'
11-08 13:22:50.762 15888 15935 E ZgeAndroid: HighScores[9] = 10 'CAT'
The position where the name is lost vary when it happens. If I relaunch the game, all the names are there again.

I still believe all those weird bugs are triggered by a little memory leak somewhere.

Edit 3:
I just got the "Build fingerprint: 'google/cheetah/cheetah:14/AP2A.240905.003/12231197:user/release-keys'" bug with rado1 ZGEBullet demo. I'm going to run simpler tasks and see if it crashes or not.
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

Every simple tests that I made can crash on android 64. Sometimes right away, sometimes after a few seconds. The fewer things going on in the ZGE project, the fewer chance it gets to crash.

Today I managed to track the memory consuption of a ZGE app on Android.
For that, I needed to add <profileable android:shell="true" /> in <application> in the AndroidMa,ifest.xml

I couldn't use the library leakcanari because it needs Java 11, which isn't supported by ant for the compilation.

Anyway, here are the results for 10 seconds of run on android 64:
Screenshot 2024-11-11 154405.png
Screenshot 2024-11-11 154405.png (62.79 KiB) Viewed 3097 times
Screenshot 2024-11-11 160132.png
Screenshot 2024-11-11 160132.png (39.94 KiB) Viewed 3097 times
User avatar
Ats
Posts: 791
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Google Play New problem : 64bits

Post by Ats »

Here's the same test on Android 32:
Screenshot 2024-11-11 155815.png
Screenshot 2024-11-11 155815.png (71.8 KiB) Viewed 3097 times
Screenshot 2024-11-11 160023.png
Screenshot 2024-11-11 160023.png (37.11 KiB) Viewed 3097 times
I have no idea if that is helping. I'm going to run some other tests.
User avatar
VilleK
Site Admin
Posts: 2365
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Google Play New problem : 64bits

Post by VilleK »

There really shouldn't be any memory leaks in ZGE. I always enable memory leak reporting when debugging and when I notice leaks I fix them right away.

If some leak exist then it would be in some "ifdef android" block because I haven't tested that as much. Although it still wouldn't make sense that it would only appear in Android 64.

Do you get crashes even in a project that does not load any library?
Post Reply