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 |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick reply. I did get the new InitEnvironment.bat file. I'll checkout the latest and give it another try. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
yes please try with Alexandria |
Beta Was this translation helpful? Give feedback.
-
can you post here the content of the AndroidManifest.template.xml ? |
Beta Was this translation helpful? Give feedback.
-
can you try delete it and let delphi recreate it when you rebuild the app ? |
Beta Was this translation helpful? Give feedback.
-
yes sure just say me the result when you will have it done |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
OK, I see where is the bug regarding component grayed, I will made a correction in the following hours |
Beta Was this translation helpful? Give feedback.
-
Can you update the repository and try again ? normally you also do no need to delete the androidmanifest I also corrected it |
Beta Was this translation helpful? Give feedback.
-
what is FireStrick? |
Beta Was this translation helpful? Give feedback.
-
I do not know, maybe , never tried |
Beta Was this translation helpful? Give feedback.
-
Hello dear @Zeus64
|
Beta Was this translation helpful? Give feedback.
-
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" |
Beta Was this translation helpful? Give feedback.
-
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 TOP
Here'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.
Beta Was this translation helpful? Give feedback.
All reactions