-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
application in android32 release mode hangs in splash screen #28
Comments
|
I disabled initialization section of DECCiphers.pas but then problem persists |
I have disabled also initialization section of DECFormatBase, DECCipherBase, DECCRC and the problems stops |
Interesting research results you have. I have the same crash with this code: interface uses type var implementation uses {$R *.fmx} procedure TForm2.Button1Click(Sender: TObject); Hash := THash_MD5.Create; Label1.Text := 'Finished'; end.` As you can see that only uses DECHash and what DECHash uses. It leads to the same error and when disabling the code in the initialization sections of DECHash, DECCRC and DECFormatBase it doesn't help. There is a closed QP report about something maybe related: It talks about packed records, which are used in DEC as well, but I don't know yet why they are used in DEC. |
This problem should exist also in Delphi 10.3.3 as it says in the above link from tmssoftware. |
it seems to be a compiler problem and there are reports for that: |
That may be a compiler bug, but maybe you can narrow it down further so we can check which one if anyone of those and maybe even work around those? Example: I saw now, that DEC often uses packed records, but I don't know yet for which reason... |
I use Delphi 10.4.2 and I have Oneplus7 android 11
Steps to reproduce the behavior:
Just add DECCiphers in uses list in an activity, compile it in Android 32bit release mode, default settings:
a) run it without debugging from IDE and it hangs on splash screen.
b) run it with debugging from IDE and it gives error: Project .apk raised exception class Bus Error (10) (see image for stack/memory)
c) playing with Compiling options and rebuild it after each change:
i) Turning off optimization, the problem is solved
ii) If "Debug Information" or "Limited Debug information" is selected again the problem is solved.
In debug mode or in both modes of android64, everything is ok
The "exception class Bus Error" is described in the following link as a problem of the compiler for android32 with packed classes:
https://support.tmssoftware.com/t/exception-class-bus-error-when-saving-file/3623
The text was updated successfully, but these errors were encountered: