Diagnose an APPX engine error
Record the full error, APPX release, operating system and the process or event point that was running. Preserve the original failure information before regenerating anything.
Narrow down the failure
- Reproduce the problem on a test copy and note the shortest sequence that triggers it. Save the stack dump if Windows produced an
appx.stkfile. - For suspected memory damage,
APPX_TRAILER_COUNTadds checked bytes to memory allocations. Use it in the test engine environment while reproducing the error. - The old design repair steps below can affect many objects. Back up before trying them on the test copy, and send the original error, release and trace to APPX Technical Support.
To diagnose strange or generic errors (such as bus errors, seg faults, attempting to free freed memory errors, or "an internal error has been detected" errors), run through the following checklist:
- On a test copy, regenerate the executable modules for the affected application and repeat the operation.
- Set environment variable APPX_TRAILER_COUNT=40, then re-run the condition that generates the error. See Setting Environment Variables to set an environment variable. This catches most APPX "stepping on memory" errors, by generating an "mm free() - corrupted trailer" message earlier in your problem scenario.
- Search for Design Discrepancies:
In character mode go into Application Design for the problem application:
Run: 3.Utility, 6.Toolbox, 20.Source Analysis Menu, 1.Orphan Detection, 19.Run Each of the Above
Run: 3.Utility, 6.Toolbox, 11.Conversion Utilities, 4.Check for Duplicate ANO and EMs.
In GUI Mode:Go into Application Design for the problem application and click on the "Utilities" tab.
Click "Check for Design Orphans". The Orphan Detection menu will be displayed. Click "Run Each of the Above".
Click on Verify ANO's and EM's.
- Reset the ANO and Ems by:
- Click Reset Process Date Add (Utility Tab or 3.Utility, 6.Toolbox, 11.Conversion Utilities, 1) Reset PROCESS DATE ADD Fields)
- Click Reset DD For Full Compile (Utility Tab or 3.Utility, 6.Toolbox, 11.Conversion Utilities, 6) Reset DD for full process)
- Initialize the 4 compiled DD files (BITMAP, ELEMENT, FILE, INITIAL) and reprocess the Data Dictionary. These can be initialized in System Administration, Design File Management, File Selection (select these four files), Initialize Files.
- Go back to Application Design and Process the DD.
- If the compiled dictionary and data structures differ, review the changes and take a restorable backup before restructuring the test data.
- Recompile the affected modules in the test application and repeat the original operation.
- If your problem scenario still fails, and you're running on a Windows platform, send us your appx.stk
'appx.stk' is a stack dump, telling us something of what goes on inside APPX when cassert error messages occur. You'll find it in the same directory that your 'appx' or 'appx.exe' engine is located. If it is overly large, you may want to delete or rename it, then run your problem scenario one more time to get a clean dump.
Send to techsupp:
- The appx.stk dump,
- The version# of APPX under which you are running,
- The release level of your Operating System,
- A brief description of what the error looks like from the operator's perspective, and
- A brief description of the Application Design elements in which the error occurred.