Page 1 of 1

MyDAC with android, segmentation error 11

Posted: Mon 19 Nov 2018 11:31
by vexen
Hello all,

Im trying out MyDAC to connect to a mysql server from a android/ios device, and i have a problem when i try to connect on the mobile, on the line MyConnection.Connect i get the Trial advertisemente and afterwards the nex error:
Project MyDAC.apk raised exception class Segmentation fault (11)
Its supposed that the error is on this line:
function UnwindFindExidxPtr (pc: NativeUInt; var pcount: integer): PExceptionIndexTable;
var
handle: NativeUInt;
begin
Result := nil;
if @UnwindFindExidxPtrFunc = nil then
begin
handle := dlopen('/system/libdl.so', RTLD_LAZY);
UnwindFindExidxPtrFunc := TUnwindFindExidxPtr(dlsym(handle, 'dl_unwind_find_exidx'));
->>>>>>>>>> dlclose(handle);
end;
if @UnwindFindExidxPtrFunc <> nil then
Result := UnwindFindExidxPtrFunc(pc, pcount);
end;

and im using the MyDac Demo app for the mobile.

Not sure if its the phone or other, at the moment i dont have any other mobile to try the code on.

Re: MyDAC with android, segmentation error 11

Posted: Wed 21 Nov 2018 13:30
by ViktorV
Unfortunately, we can't reproduce the issue on the latest MyDAC 9.2.7 version.
Please check whether the issue is reproduced on the latest version of MyDAC 9.2.7 If it is, please specify the exact versions of IDE and Android.

Re: MyDAC with android, segmentation error 11

Posted: Fri 23 Nov 2018 07:55
by vexen
Hello im using MyDAC 9.2.7 as well.

IDE version : Delphi XE7 Update 1

Xiaomi Redmi 3 note pro : MIUI version 8 (i will confirm later as i dont have the same phone right now)

Will be trying today on Xiaomi A2 Lite Android One - Android version 8.1.0

Re: MyDAC with android, segmentation error 11

Posted: Fri 23 Nov 2018 08:14
by ViktorV
The issue may be due to that RAD Studio XE7 has no support for Android 7 (Android 8): http://docwiki.embarcadero.com/Platform ... /Main_Page
Please try to compile and run your project for Android version supported in RAD Studio XE7.