Access violation with TNetHttpClient under iOS

  

In my app, i have very (very) rarely this exception (but it’s annoying me) when I do a post request with a TNetHttpClient under iOS (I use delphi tokyo 10.2.3)

Access violation at address 000000010433C314, accessing address 0000000000000010
At address: $000000010433C314 (Macapi.Ocmarshal.TMarshaler.Execute(Pointer, Pointer) + 32)

Call stack:
myApp $0000000104A9BC38 Grijjy.Errorreporting.TgoExceptionReporter.GlobalGetExceptionStackInfo(TExceptionRecord*) + 132
myApp $000000010423A02C Sysutils.Exception.RaisingException(TExceptionRecord*) + 52
myApp $000000010425E18C Sysutils.RaiseExceptObject(TExceptionRecord*) + 64
myApp $0000000104222B28 _RaiseAtExcept(TObject*, Pointer) + 100
myApp $0000000104239138 Internal.Excutils.SignalConverter(NativeUInt, NativeUInt, NativeUInt) + 56
myApp $000000010433C314 Macapi.Ocmarshal.TMarshaler.Execute(Pointer, Pointer) + 32
myApp $0000000104AFBBA8 DispatchToImport + 72
myApp $0000000104B01FA8 first_stage_intercept_thunks + 24712
myApp $00000001047B2590 Net.Httpclient.THTTPResponse.GetHeaderValue(String) + 52
myApp $00000001047B29B4 Net.Httpclient.THTTPResponse.GetContentLength() + 48
myApp $00000001047A089C Net.Httpclient.Mac.TMacConnectionDataDelegate.connectionDidReceiveResponse(Iosapi.Foundation.NSURLConnection, Iosapi.Foundation.NSURLResponse) + 128
myApp $0000000104AFBDF0 DispatchToDelphi + 144
CFNetwork $00000001856AC538 <redacted> + 60
CFNetwork $00000001856AC4DC <redacted> + 200
CFNetwork $00000001856AC650 <redacted> + 56
CFNetwork $0000000185663C40 <redacted> + 84
CFNetwork $00000001855A62C0 <redacted> + 108
CFNetwork $00000001855A1D88 <redacted> + 108
libdispatch.dylib $00000001847A0A60 <redacted> + 16
libdispatch.dylib $00000001847A8170 <redacted> + 224
CFNetwork $0000000185683E40 <redacted> + 36
CoreFoundation $0000000184D74680 CFArrayApplyFunction + 80
CFNetwork $0000000185683D00 <redacted> + 128
CFNetwork $0000000185684EC4 <redacted> + 312
CFNetwork $0000000185684C24 <redacted> + 60
CoreFoundation $0000000184E57404 <redacted> + 24
CoreFoundation $0000000184E56C2C <redacted> + 276
CoreFoundation $0000000184E5479C <redacted> + 1204
CoreFoundation $0000000184D74DA8 CFRunLoopRunSpecific + 552
Foundation $00000001857E9674 <redacted> + 304
myApp $0000000104AFBC00 DispatchToImport + 160
myApp $00000001047A5210 Net.Httpclient.Mac.InternalWaitMessage(Single) + 184
myApp $000000010479FE20 Net.Httpclient.Mac.TMacHTTPClient.DoExecuteRequest(Net.Httpclient.THTTPRequest*, var Net.Httpclient.THTTPResponse*, Classes.TStream*) + 240
myApp $00000001047BC788 Net.Httpclient.THTTPClient.ExecuteHTTPInternal(Net.Httpclient.IHTTPRequest, Classes.TStream*, Net.Httpclient.IHTTPResponse) + 616
myApp $00000001047BBF40 Net.Httpclient.THTTPClient.ExecuteHTTP(Net.Httpclient.IHTTPRequest, Classes.TStream*, Net.Httpclient.IHTTPResponse) + 36
myApp $00000001047B9704 Net.Httpclient.THTTPClient.Execute(Net.Httpclient.IHTTPRequest, Classes.TStream*, array of Net.Urlclient.TNameValuePair) + 336
myApp $00000001047B2C40 Net.Httpclient.THTTPClient.DoExecute(String, Net.Urlclient.TURI, Classes.TStream*, Classes.TStream*, array of Net.Urlclient.TNameValuePair) + 92
myApp $00000001047B6DC0 Net.Httpclient.THTTPClient.Post(String, Classes.TStream*, Classes.TStream*, array of Net.Urlclient.TNameValuePair) + 148

As you see this exception seam to raise in the delphi source code, and as it’s very rare and very hard to reproduce it, I only have this report and I have no idea what can I do with it ?

Comments are closed.