MyDAC with android, segmentation error 11

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
vexen
Posts: 2
Joined: Mon 19 Nov 2018 11:22

MyDAC with android, segmentation error 11

Post by vexen » Mon 19 Nov 2018 11:31

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.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: MyDAC with android, segmentation error 11

Post by ViktorV » Wed 21 Nov 2018 13:30

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.

vexen
Posts: 2
Joined: Mon 19 Nov 2018 11:22

Re: MyDAC with android, segmentation error 11

Post by vexen » Fri 23 Nov 2018 07:55

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

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: MyDAC with android, segmentation error 11

Post by ViktorV » Fri 23 Nov 2018 08:14

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.

Post Reply