Search found 2307 matches
- Tue Sep 17, 2024 7:15 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
What version of the Freepascal compiler are you using? Just wondering if the crash in the threaded code could be a problem with the Freepascal memory manager for Android 64-bit platform.
- Mon Sep 16, 2024 3:52 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
It is important for performance if your game is calling RefreshContent often on bitmaps or meshes that use Mesh/BitmapExpression. If you only use those expressions once during game init or level init then it won't matter.
- Sat Sep 14, 2024 1:14 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Hard to say where the problem is now.
Try disabling threaded processing completely:
In TZApplication.Init insert this line
ZClasses.Tasks.Enabled := False;
Try disabling threaded processing completely:
In TZApplication.Init insert this line
ZClasses.Tasks.Enabled := False;
- Fri Sep 13, 2024 6:25 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Aha but wait: now you are testing with just a MeshExpression. A mesh expression needs a mesh to process. Try adding a MeshBox in front of it.
- Fri Sep 13, 2024 3:46 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
I suggest adding log lines in TMeshExpression.ProduceOutput until it can be shown where it crashes.
- Fri Sep 13, 2024 10:57 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
The error seems different now. I wish it was possible to get a callstack of the error.
What happens if you simply let Platform_GetCpuCount return 1? (so just a single line with "exit(1);")
What happens if you simply let Platform_GetCpuCount return 1? (so just a single line with "exit(1);")
- Fri Sep 13, 2024 8:55 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Ok, I guess it is because MeshExpression tries to use threads.
Try this:
In Platform_GetCpuCount
change
CallStaticObjectMethodV(Env, RunClass, Mid, nil);
to
CallStaticObjectMethod(Env, RunClass, Mid);
Try this:
In Platform_GetCpuCount
change
CallStaticObjectMethodV(Env, RunClass, Mid, nil);
to
CallStaticObjectMethod(Env, RunClass, Mid);
- Thu Sep 12, 2024 3:24 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Seems OpenGL doesn't load properly.
Does it still work to run a empty app with ClearColor set to red and it shows up red?
Please also post the full log without any lines removed.
Does it still work to run a empty app with ClearColor set to red and it shows up red?
Please also post the full log without any lines removed.
- Thu Sep 12, 2024 11:22 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
There is a "Library found" message for bullet in the 64-bit log so at least it is getting to that point. I suggest you add a "Library loaded ok" log message on the line after dlopen so we can see if it finishes loading bullet lib before crashing. 09-12 12:23:28.875 E/ZgeAndroid(1...
- Tue Sep 10, 2024 4:10 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Looks like bullet library crashes on initialization. I suggest you build bullet with debug info too.
- Tue Sep 10, 2024 2:01 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Good . These change will improve the code quality for Android target. Thanks for not giving up.
- Tue Sep 10, 2024 8:52 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Code: Select all
{$if defined(android)}
procedure TExpExternalFuncCall.Execute(Env : PExecutionEnvironment);
Code: Select all
{$if defined(android) and defined(cpu32)}
- Mon Sep 09, 2024 3:57 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Yes indeed. The library is finally found! Now we can instead focus on what changes are required in ZExpression. The "TExpExternalFuncCall.Execute" code that you have enabled currently is designed for 32-bit. I think it would be better if you could make the Android 64-bit version use the bl...
- Mon Sep 09, 2024 2:09 pm
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
Seems there is no ending slash in the path that Android reports:
09-09 13:07:33.467 13306 13306 E ZgeAndroid: Library NOT found: /data/app/~~07z_J2dSi1_KqJ70qVedzQ==/com.txori.sunvox64-7sqZ-5skGvXKEsLVr3Sk5Q==/lib/arm./libsunvox.so
Try this in the Java code:
.. nativeLibraryDir + "/";
09-09 13:07:33.467 13306 13306 E ZgeAndroid: Library NOT found: /data/app/~~07z_J2dSi1_KqJ70qVedzQ==/com.txori.sunvox64-7sqZ-5skGvXKEsLVr3Sk5Q==/lib/arm./libsunvox.so
Try this in the Java code:
.. nativeLibraryDir + "/";
- Mon Sep 09, 2024 7:39 am
- Forum: General discussion
- Topic: Google Play New problem : 64bits
- Replies: 110
- Views: 37982
Re: Google Play New problem : 64bits
It seems there is a different way to get the folder for native libs. https://stackoverflow.com/a/51020379/43673 Please try editing Zge.java. From: String libraryPath = getContext().getApplicationInfo().dataDir + "/lib/"; To String libraryPath = getApplicationInfo().nativeLibraryDir; If it ...