App using ALFmxVideoPlayer in infinite loop crashing when deployed. #261
Replies: 14 comments 38 replies
|
Hi, Can you try with the Alexandria version and also update the alcinoe repository ? because now we use the very last version of Exoplayer. To start can you try if everything work fine with the demo : https://github.com/MagicFoundation/Alcinoe/tree/master/Demos/ALFmxControls |
|
Thanks for the quick reply. I did get the new InitEnvironment.bat file. I'll checkout the latest and give it another try. |
|
can you try with https://github.com/MagicFoundation/Alcinoe/tree/master/Demos/ALFmxControls if it's failed also ? unable to open '/data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/base.dm': No such file or directory look like you do not deploy correctly the file |
|
yes please try with Alexandria |
|
can you post here the content of the AndroidManifest.template.xml ? |
|
can you try delete it and let delphi recreate it when you rebuild the app ? |
|
yes sure just say me the result when you will have it done |
|
OK, I see where is the bug regarding component grayed, I will made a correction in the following hours |
|
Can you update the repository and try again ? normally you also do no need to delete the androidmanifest I also corrected it |
|
what is FireStrick? |
|
I do not know, maybe , never tried |
|
Hello dear @Zeus64
|
|
can you try in a command prompt to run C:\Program Files\Eclipse Adoptium\jdk-11.0.15.10-hotspot\bin\java.exe" -cp "c:\program files (x86)\embarcadero\studio\22.0\bin\Android\r8-3.3.28.jar" com.android.tools.r8.D8 --release --min-api 23 --output "D:\Projects\Delphi\D11\PlayerTest\Android64\Debug\PlayerTest.classes" @"D:\Projects\Delphi\D11\PlayerTest\Android64\Debug\dex_list.txt" |




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to get an raw http H264 stream to play but my app goes into an infinite loop crashing and restarting when I try running it on my Pixel 6. I've stripped everything out of the app except for a definition of a TALVideoPlayerSurface. If I remove that the app does run. Here's the logs
01-17 09:35:29.403 1752 1791 I ActivityManager: Start proc 16113:com.embarcadero.SPAndroid/u0a68 for top-activity {com.embarcadero.SPAndroid/com.embarcadero.firemonkey.FMXNativeActivity} 01-17 09:35:29.417 16113 16113 I adero.SPAndroid: Late-enabling -Xcheck:jni 01-17 09:35:29.482 16113 16113 W ziparchive: Unable to open '/data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/base.dm': No such file or directory 01-17 09:35:29.482 16113 16113 W ziparchive: Unable to open '/data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/base.dm': No such file or directory 01-17 09:35:29.537 16113 16113 D nativeloader: Configuring classloader-namespace for other apk /data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/base.apk. target_sdk_version=29, uses_libraries=, library_path=/data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/lib/arm64:/data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.embarcadero.SPAndroid 01-17 09:35:29.545 16113 16113 V GraphicsEnvironment: ANGLE Developer option for 'com.embarcadero.SPAndroid' set to: 'default' 01-17 09:35:29.545 16113 16113 V GraphicsEnvironment: ANGLE GameManagerService for com.embarcadero.SPAndroid: false 01-17 09:35:29.553 16113 16130 D vulkan : searching for layers in '/data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/lib/arm64' 01-17 09:35:29.553 16113 16130 D vulkan : searching for layers in '/data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/base.apk!/lib/arm64-v8a' 01-17 09:35:29.577 16113 16113 W linker : Warning: "/data/app/~~ELmicTkdqn-FNBo8wr7TVg==/com.embarcadero.SPAndroid-E5u1C0yWIx_f452VLaNeFQ==/lib/arm64/libSPAndroid.so" unused DT entry: DT_RPATH (type 0xf arg 0xf062) (ignoring) 01-17 09:35:29.819 1752 2510 I ActivityManager: Process com.embarcadero.SPAndroid (pid 16113) has died: fg TOPHere's the code:
`unit SlingerAndroid;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs,
FMX.Controls.Presentation, FMX.StdCtrls,
FMX.Objects, ALFmxObjects,
ALFmxVideoPlayer;
type
TForm1 = class(TForm)
Button1: TButton;
VP: TALVideoPlayerSurface;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.fmx}
procedure TForm1.Button1Click(Sender: TObject);
begin
VP.VideoPlayer.prepare('http://192.168.117.113:65432/sb/500');
end;
end.`
Any insights would be appreciated. When I saw those can't open file errors I made sure the App had all permissions enabled. I also had to comment this out in the application manifest to get it to compile
<!-- android:requestLegacyExternalStorage="true"> -->I'm using the latest community edition Sydney 10.4.2 with all the default SDK/NDK installed.
All reactions