Jump to content
  • Status: Fixed
  • Priority: Critical
  • Resolution: Fixed
  • Platform: iOS
  • Affects version: 1.18.0.1

An exception occurs when closing the app on the IOS Simulator:
EgfAssertError 'The not nil value is required. IconImageView' 

This is the call stack:

System._DbgExcNotify(int, void*, System.SmallString<(unsigned char)255>*, void*, void*)
System.NotifyReRaise(System.TObject*, void*)(0x600000339f90,0x102dff788)
System._RaiseAtExcept(System.TObject*, void*)(0x600000339f90,0x102dff788)
Fgx.Asserts.TfgAssert.IsNotNil(System.DelphiInterface<System.IInterface>, System.UnicodeString)(0x103862f08,nil,'IconImageView')
Fgx.Edit.Ios.TfgiOSEdit.textRectForBounds(Ios.Api.Coregraphics.CGRect)(??,{origin = {x = 0, y = 0}, size = {width = 0, height = 40}})
Fgx.Edit.Ios.TfgiOSEdit.editingRectForBounds(Ios.Api.Coregraphics.CGRect)($0000600001551a40,{origin = {x = 0, y = 0}, size = {width = 0, height = 40}})
:000000010332AC40 DispatchToDelphi
:000000011F4D0598 -[UITextField _selectionClipRect]
:000000011ECCE414 -[UITextSelectionDisplayInteraction _selectionClipRectAt:]
:000000011ECCE850 -[UITextSelectionDisplayInteraction _updateSelectionIfNeeded]
:0000000107881878 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
:000000010788179C ___CFXRegistrationPost_block_invoke
:0000000107880C8C _CFXRegistrationPost
:0000000107880668 _CFXNotificationPost
:000000010D815CB4 -[NSNotificationCenter postNotificationName:object:userInfo:]
:000000011F1AE3B4 __47-[UIApplication _applicationDidEnterBackground]_block_invoke
:000000011EA85E6C +[UIViewController _performWithoutDeferringTransitionsAllowingAnimation:actions:]
:000000011F1AE28C -[UIApplication _applicationDidEnterBackground]
:000000011E8563C8 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke_2
:000000011ED6D5EC _UIScenePerformActionsWithLifecycleActionMask
:000000011E8560F4 __101-[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]_block_invoke
:000000011E855C68 -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:]
:000000011E855F4C -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:]
:000000011E855950 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:]
:000000011E85FC24 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke
:000000011EC6E57C +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:fromCurrentState:actions:completion:]
:000000011ED837A0 _UISceneSettingsDiffActionPerformChangesWithTransitionContextAndCompletion
:000000011E85F930 -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]
:000000011E6BD338 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke.198
:000000011E6BC0E8 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]
:000000011E6BCFBC -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]
:000000011EC95FFC -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:]
:000000011379955C -[FBSScene updater:didUpdateSettings:withDiff:transitionContext:completion:]
:00000001137C2D4C __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke_2
:00000001137A4D6C -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
:00000001137C2C98 __94-[FBSWorkspaceScenesClient _queue_updateScene:withSettings:diff:transitionContext:completion:]_block_invoke
:0000000107713D3C _dispatch_client_callout
:0000000107717C4C _dispatch_block_invoke_direct
:00000001137E4B24 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
:00000001137E4A00 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible]
:00000001137E4B58 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource]
:00000001078B1F18 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
:00000001078B1E60 __CFRunLoopDoSource0
:00000001078B15D0 __CFRunLoopDoSources0
:00000001078ABCB8 __CFRunLoopRun
:00000001078AB5A4 CFRunLoopRunSpecific
:0000000113C77AE4 GSEventRunModal
:000000011F1A52E4 -[UIApplication _run]
:000000011F1A8F5C UIApplicationMain
Fgx.Application.Ios.TfgiOSApplication.Run()($0000600003502500)
...

Exception class 6.

The simulator show this report:

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1085809ec __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x108e871d0 pthread_kill + 256
2   libsystem_c.dylib             	       0x1081bb5cc abort + 104
3   libc++abi.dylib               	       0x105823c78 abort_message + 128
4   libc++abi.dylib               	       0x1058150ec demangling_terminate_handler() + 128
5   libc++abi.dylib               	       0x105823150 std::__terminate(void (*)()) + 12
6   libc++abi.dylib               	       0x1058230ec std::terminate() + 32
7   libdispatch.dylib             	       0x107713d50 _dispatch_client_callout + 36
8   libdispatch.dylib             	       0x107717c4c _dispatch_block_invoke_direct + 376
9   FrontBoardServices            	       0x1137e4b24 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 44
10  FrontBoardServices            	       0x1137e4a00 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 196
11  FrontBoardServices            	       0x1137e4b58 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 24
12  CoreFoundation                	       0x1078b1f18 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
13  CoreFoundation                	       0x1078b1e60 __CFRunLoopDoSource0 + 172
14  CoreFoundation                	       0x1078b15d0 __CFRunLoopDoSources0 + 232
15  CoreFoundation                	       0x1078abcb8 __CFRunLoopRun + 768
16  CoreFoundation                	       0x1078ab5a4 CFRunLoopRunSpecific + 572
17  GraphicsServices              	       0x113c77ae4 GSEventRunModal + 160
18  UIKitCore                     	       0x11f1a52e4 -[UIApplication _run] + 868
19  UIKitCore                     	       0x11f1a8f5c UIApplicationMain + 124
...

any idea what's wrong?


Fix version: 1.18.1.0

User Feedback

Recommended Comments

BauerSoftware

Active subscription
1 hour ago, Yaroslav Brovin said:

How do you close app?

Via task manager.
Double click the home button and remove the app from the list.

BauerSoftware

Active subscription

You dont need to close the app. 
The message already appears when the app goes into the background

BauerSoftware

Active subscription
(edited)

To reproduce:
Use your AnimationFormDemo and place a simple TfgEdit on the TFormSecond.

  1. Run the app on the simulator an show the second form. 
  2. Hide the second form.
  3. Then bring the app to the background.

EfgAssertError "The not nil value is required. IconImageView'

Here the call stack

System._DbgExcNotify(int, void*, System.SmallString<(unsigned char)255>*, void*, void*)
System.NotifyReRaise(System.TObject*, void*)(0x600001de2a80,0x1011eed74)
System._RaiseAtExcept(System.TObject*, void*)(0x600001de2a80,0x1011eed74)
Fgx.Asserts.TfgAssert.IsNotNil(System.DelphiInterface<System.IInterface>, System.UnicodeString)(0x1015b3718,nil,'IconImageView')
Fgx.Edit.Ios.TfgiOSEdit.textRectForBounds(Ios.Api.Coregraphics.CGRect)(??,{origin = {x = 0, y = 0}, size = {width = 97, height = 40}})
Fgx.Edit.Ios.TfgiOSEdit.editingRectForBounds(Ios.Api.Coregraphics.CGRect)($0000600000b29980,{origin = {x = 0, y = 0}, size = {width = 97, height = 40}})
:00000001012509A4 DispatchToDelphi
:000000011C6EC598 -[UITextField _selectionClipRect]
:000000011BEEA414 -[UITextSelectionDisplayInteraction _selectionClipRectAt:]
:000000011BEEA850 -[UITextSelectionDisplayInteraction _updateSelectionIfNeeded]

The simulator message:

-------------------------------------
Translated Report (Full Report Below)
-------------------------------------

Incident Identifier: 3E35C261-FBD4-45B7-9A07-FCB349C46A56
CrashReporter Key:   4763FA0D-F05F-55C8-4E8E-1475A09FD277
Hardware Model:      Mac14,12
Process:             AnimationFormDemo [15929]
Path:                /Users/USER/Library/Developer/CoreSimulator/Devices/591EEACE-0C80-48C6-AE4E-F66EDFDDD7FC/data/Containers/Bundle/Application/FDEE2FDD-60F4-468E-A845-2957B3263B0A/AnimationFormDemo.app/AnimationFormDemo
Identifier:          ru.fgx.AnimationFormDemo
Version:             1.0.0 (1.0.0)
Code Type:           ARM-64 (Native)
Role:                Background
Parent Process:      Exited process [15931]
Coalition:           com.apple.CoreSimulator.SimDevice.591EEACE-0C80-48C6-AE4E-F66EDFDDD7FC [1925]
Responsible Process: SimulatorTrampoline [734]

Date/Time:           2024-03-22 11:29:33.5015 +0100
Launch Time:         2024-03-22 11:24:27.6106 +0100
OS Version:          macOS 14.3.1 (23D60)
Release Type:        User
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread:  0

Thread 0 Crashed::  Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib        	       0x1076309ec __pthread_kill + 8
1   libsystem_pthread.dylib       	       0x1076cb1d0 pthread_kill + 256
2   libsystem_c.dylib             	       0x1068af5cc abort + 104
3   libc++abi.dylib               	       0x104f1bc78 abort_message + 128
4   libc++abi.dylib               	       0x104f0d0ec demangling_terminate_handler() + 128
5   libc++abi.dylib               	       0x104f1b150 std::__terminate(void (*)()) + 12
6   libc++abi.dylib               	       0x104f1b0ec std::terminate() + 32
7   libdispatch.dylib             	       0x106923d50 _dispatch_client_callout + 36
8   libdispatch.dylib             	       0x106927c4c _dispatch_block_invoke_direct + 376
9   FrontBoardServices            	       0x111ea8b24 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 44
10  FrontBoardServices            	       0x111ea8a00 -[FBSMainRunLoopSerialQueue _targetQueue_performNextIfPossible] + 196
11  FrontBoardServices            	       0x111ea8b58 -[FBSMainRunLoopSerialQueue _performNextFromRunLoopSource] + 24
12  CoreFoundation                	       0x1060bdf18 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
13  CoreFoundation                	       0x1060bde60 __CFRunLoopDoSource0 + 172
14  CoreFoundation                	       0x1060bd5d0 __CFRunLoopDoSources0 + 232
15  CoreFoundation                	       0x1060b7cb8 __CFRunLoopRun + 768
16  CoreFoundation                	       0x1060b75a4 CFRunLoopRunSpecific + 572
17  GraphicsServices              	       0x111ca3ae4 GSEventRunModal + 160
18  UIKitCore                     	       0x11db252e4 -[UIApplication _run] + 868
19  UIKitCore                     	       0x11db28f5c UIApplicationMain + 124
20  AnimationFormDemo             	       0x102795ad8 Fgx::Application::Ios::TfgiOSApplication::Run() + 324 (FGX.Application.iOS.pas:102)
21  AnimationFormDemo             	       0x10279598c __stub_in40s__ZN3Fgx11Application3Ios17TfgiOSApplication3RunEv + 20
22  AnimationFormDemo             	       0x10288fd9c Fgx::Application::TfgApplication::Run() + 80 (FGX.Application.pas:355)
23  AnimationFormDemo             	       0x10290c678 main + 136 (AnimationFormDemo.dpr:15)
24  dyld_sim                      	       0x104681544 start_sim + 20
25  dyld                          	       0x10417e0e0 start + 2360

 

Edited by BauerSoftware

BauerSoftware

Active subscription
(edited)
11 hours ago, Viktor Akselrod said:

What SDK version and device version in the emulator are you using?

17.2

same error with 17.4

 

Edited by BauerSoftware

BauerSoftware

Active subscription

Hello,

did you put a TfgEdit on the SecondForm?

Bye,
Ronald

BauerSoftware

Active subscription

Hello,

which SDK do you use?
I use 17.2 or 17.4.

Bye,
Ronald

BauerSoftware

Active subscription

Any news on this topic?
Can you reproduce the problem?

  • Administrators

Hello,

Sorry for delay. Yes, we reproduced it and we are trying to find solution for it.

Thank you

BauerSoftware

Active subscription

Hi,

great news :-).
When will the fix be available?
Or can you provide a pre-release?

Thanks a lot!

  • Administrators

Hello,

Honestly, We make a build yesterday. However, we found problem with IDE deployment manager in tests, which affect items and can break building application. So we have to find solution for it and after we can publish release. Unfortunately IDE deployment manager works very bad in Delphi. So It makes our lives worse each time, when we work with it. Therefore, we are now looking for a workaround so that the list of files in the deployment is expected and does not change by itself.

Thank you

BauerSoftware

Active subscription

Hi,

what is your time frame for this?

Thanks!

  • Administrators

As soon as we find reason and solutio of spoiled Deployment list, we make release. I'm interesting in publishing it as soon as possible.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.