Eric Bonilha
Members-
Content Count
22 -
Joined
-
Last visited
-
No exception handling with server crash
Eric Bonilha replied to Angus Robertson's topic in ICS - Internet Component Suite
@Kas Ob. I have been using EurekaLog and unfortunately this error is never caught, maybe because its external, but even when selecting Catch Handled Exceptions is selected, it also doesn't work. I didn't try "Handle every SafeCall exception" but in the help file they say this option doesn't do anything if Catch Handled Exceptions is selected. In my debugs session, it looks like it could be related to my multi-threading approach that might be wrong and while it works fine when no SSL is being used, looks like the SSL library does't like it and we might be doing some operation on the socket coming from different thread contexts -
No exception handling with server crash
Eric Bonilha replied to Angus Robertson's topic in ICS - Internet Component Suite
@Angus Robertson did you find a solution for this issue? I'm having the absolute same problem with my application, using OpenSSL DLL and ICS Server @FPiette In our case, the application will randomly crash with Exception code: 0xc0000374 which is a Heap Corruption. We are having this issue for years and we could never find the source of it.. We are intensively debugging for the past few days and what I could find is that the problem doesn't seem to happen if sockets are all running single-threaded, but once we have a multi-threading scenario, thats when this error starts happening.. but there is no simple way to reproduce the error as its not deterministic, its very random. This error happens on the server side (Its an ICS TCP server running our custom protocol). -
Thank you for all the answers, we will give it a try with ICS 9 and we will also check WER if we can disable it and check the configurations. I will keep you updated with our testing, but you gave some very good insights
-
Hello We are using ICS 8.68 (I just saw that its old now...) and we have encountered a problem with OpenSSL that is hanging the thread where its running (In this case, the main thread). I'm not sure if this is something that was already fixed in newer versions, but it looks like it hangs inside the OpenSSL library I was able to catch it with EurekaLog (image attached). Does anyone have any idea if this can still happen? Looks like this happened when the client connection was already broken (This is on SERVER SIDE) and the server tried to send a packet and ICS closed the connection on the server side after identifying it was already dead Thanks
-
I was able to receive a push notification, but I had to change this line on FMX.PushNotification.FCM.iOS: procedure TFcmPushService.RequestAuthorizationWithOptionsCompletionHandler(granted: Boolean; error: NSError); begin // if not TiOSHelper.SharedApplication.isRegisteredForRemoteNotifications then TiOSHelper.SharedApplication.registerForRemoteNotifications; end; I had to comment out the line "if not TiOSHelper.SharedApplication.isRegisteredForRemoteNotifications then" Not sure why.. but it was not calling registerForRemoteNotifications ever
-
That problem I solved, the entitlements was missing: <key>aps-environment</key> <string>development</string> but still, FCM loads with no errors now, but no messages are received.. god...
-
Looks like Firebase is failing to initialize with this message: 'no valid “aps-environment” entitlement string found for application' I have selected remote-notification on UIBackgroundModes My provisioning certificate does have Push Notification selected... I don't know what to do
-
Hello For the past few days I've been struggling trying to get the new Firebase integration of Delphi 11 (that was added in 10.4) for IOS to work, for Push Notification. Embarcadero really does a very poor job of documentation and sample code.. I'm impossible that they developed and never tested if this works... All the sample codes I found on the internet refer to the use of KastriFree library for FCM for IOS on Delphi, but supposedly, FCM for IOS support was added natively... and I would like to use the native implementation from Delphi instead of the third party library. I believe I have done all steps necessary (There are so many) Basically the iOS application is compiling with FCM successfully and it is starting as I can retrieve the phone Token, that is used to send the notification to.. but when I send notification on Firebase its never received by the phone, not even the test message from Firebase console... My firebase account is correctly linked to APNS using the APNS Key from apple Is there any tutorial on how to use Firebase Push Notification with iOS for Delphi 11 using the NATIVE implementation found on the new unit FMX.PushNotification.FCM.iOS ??
-
ShowModal hang/crashes on iOS 15 with iPhone 12 / 13
Eric Bonilha replied to Eric Bonilha's topic in FMX
Thanks Dave. I don't have an iPhone 12 or 13 to test, I was relying on my customers phones (doing testflights) to try to fix the issue It will be interesting to understand why ShowModal only doesn't work on iPhone 12 and 13, while previous like 11 will work just fine with the same OS version -
Hello I will help you with one of your questions for Monterey I had a huge issue that I needed to recompile my app but I couldn't use XCode 13 on Catalina, so I updated to Monterey and then used XCode 13 (and 13.1 as well for testing) and all deployed applications were crashing... I has to format my mac to original OS, then install Big Sur manually from USB and use XCode 13.0 I would not recommend updating to Monterey. But, I was using Delphi 11. But I tried Delphi 10.4.2 on Monterey with XCode 13 and it gave the same results, the app compiled and deployed but was crashing when starting.. So I guess Monterey is really not supported. Delphi 10.4.2 supports Big Sur as well, so I would update to Big Sur instead of Monterey, then you can use XCode 13
-
Hello all I got a strange problem with our app.. We use ShowModal (That is supposedly supported by iOS, but even for Android, internally it will use Show because its not supported) to display a form and this has always worked.. Many customers now reported our app will crash on iPhone 12 and 13 with iOS 15.. After debugging I found that ShowModal will hang / crash the app, but ONLY on iPhone 12 and iPhone 13 with IOS 15.. If I try on iPhone 11 or 7 for example using iOS 15 (same version, I tried on 15.0.2 and 15.1) it works fine.. Only crashes on iPhone 12 and 13 Did any of you encounter such issue as well? I solved by not using ShowModal, but only Show,
-
Already found out my provisioning profile was expired
-
KenR I'm having the same issue with error 0x e8008015: A valid provisioning profile for this executable was not found. How did you solve it?
-
Its working now... I had to format my Mac and install Big Sur manually (I was using Monterey).. then I installed XCode 13.0 and now the application works fine
-
Dave, thanks... something I didn't mention is that I had to upgrade to Monterey and apparently its not supported by Delphi... I couldn't update to XCode 13 on Catalina, and couldn't upgrade directly to Big Sur, but I found out that I can upgrade manually.. so, I'm formatting my Mac again with original Catalina, then I will upgrade manually to Big Sur and try again..