Search found 837 matches
- Wed Nov 13, 2024 3:44 pm
- Forum: General discussion
- Topic: Filming an object behind a wall
- Replies: 4
- Views: 2663
Filming an object behind a wall
I’d like to be able to see the player when a large object comes between the camera and the player. I think this involves two different problems: Rendering when the camera is inside an object Currently, when the camera is inside an object, the interior polygons aren’t rendered, or they appear solid i...
- Tue Nov 12, 2024 9:47 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
In ZOpenGL.pas, is there a reason why this is deactivated? {$ifdef android} //SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow, exUnderflow, exPrecision]); {$endif} I tried uncommenting it, but it doesn't solve anything. But if it is not useful, then I don't think this is need...
- Tue Nov 12, 2024 9:43 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
I just tried with threads disabled. Then thread disabled and Platform_GetCpuCount returning exit(1). It still crashes with the same error message. I made a list of all the functions in ZPlatform_Android.inc, and I'm trying to disable them, or return a fake result, to see if I can narrow down the ori...
- Mon Nov 11, 2024 11:01 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
I've been playing with the -C option for the compiler. -Cr Range checking With this, the app crash right from the start: Build fingerprint: 'google/cheetah/cheetah:14/AP2A.240905.003/12231197:user/release-keys' Abort message: 'Scudo ERROR: corrupted chunk header at address 0x20000797259d8d0' #00 0x0...
- Mon Nov 11, 2024 7:29 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
Yeah, that's what I thought by watching the memory charts. They seem good and stable. Even when the app crash. So I really don't know... Just displaying this bitmap expression crashed twice after a few seconds but a lot of tries. No external libraries. int u = round(X*31), v = round(Y*31); if(u == 0...
- Mon Nov 11, 2024 3:03 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
Here's the same test on Android 32:
I have no idea if that is helping. I'm going to run some other tests.- Mon Nov 11, 2024 3:02 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
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...
- Fri Nov 08, 2024 10:52 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
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...
- Thu Nov 07, 2024 10:16 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
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 be...
- Thu Oct 31, 2024 10:23 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
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 rando...
- Thu Oct 31, 2024 9:24 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
Thanks. I found another error, but comming from me: <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 =...
- Wed Oct 30, 2024 10:35 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
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));
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));
- Tue Oct 29, 2024 10:40 pm
- Forum: Extensions
- Topic: 3D Physics with ZgeBullet
- Replies: 106
- Views: 326561
Re: 3D Physics with ZgeBullet
I tested every setting from rado1's ZGEBullet examples: Demo 1: float t = App.DeltaTime; zbtStepSimulation(t, 0, 0); Demo 2: float t = App.DeltaTime; zbtStepSimulation(t, 3, t/2); Demo 3: float t = App.DeltaTime; zbtStepSimulation(t, 1, t); Demo 4: zbtStepSimulation(App.DeltaTime, 0, 0); zbtStepSimu...
- Tue Oct 29, 2024 2:42 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
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 ...
- Mon Oct 28, 2024 4:47 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 286
- Views: 103232
Re: Google Play New problem : 64bits
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 o...