Fatal Error on Startup
Last updated
Last updated
Issue: When restarting the application after a hard crash (one where the application closes), you receive an error: A serious error occurred during startup. OpenIZ Mobile cannot continue. Please reference the following error code when seeking help :: << error code >>
Applies To:
OpenIZ Disconnected Client Android
Symptoms:
The error mentioned in the issue section appears on splash screen
You cannot continue loading the application
Cause: This error is caused because the configuration file has somehow become corrupted on the tablet data store. The device has no way of recovering from this error, and the configuration is lost. However the data is still in tact, if you want the data off the tablet, you will have to manually extract it and send the contents of the outbox manually to the server.
Solution:
Download and install the OpenIZ Disconnected Client SDK (https://github.com/MohawkMEDIC/openizdc/releases)
Download and install the Android SDK tools (https://developer.android.com/studio/releases/platform-tools.html)
Enable developer mode on the tablet which is impacted (https://www.androidcentral.com/how-enable-developer-settings-android-42)
Extract the platform-tools-windows package to the c:\Program Files (x86)\Android\android-sdk directory
From your start menu select Start > Open Immunize > OpenIZ SDK Command Prompt. You should see this screen:
Change to a directory like your desktop by entering the command cd \users{myusername}\Desktop
Ensure your tablet is connected via USB, if you are prompted by the device, allow the computer to access it
Run the following command: 1. If you are running OpenIZ Vanilla: brainbug --pkgid=org.openiz.mobile --bkfile=mycrash.ab 2. If you are running TImR : brainbug --pkgid=tz.timr.mobile --bkfile=mycrash.ab
You will be asked to backup. DO NOT ENTER A PASSWORD
If successful, brainbug will create a directory called mycrash.ab on your desktop.
Send this file to your support personnel and they will be able to extract the tablet crash files and data, If you do not have a support organization you can follow these steps:
Run the brainbug tool again to extract the file: brainbug --extract=.\mycrash --bkfile=mycrash.ab
In the directory .\mycrash\apps\tz.timr.mobile\f (or org.openiz.core if using vanilla) you will notice two folders: .config and .local, make a note of where these folders are.
Reset the minims configuration using minims --reset
Run the MINIMS debugging tool using minims --ref="C:\Program Files (x86)\Mohawk College\OpenIZ\sdk\org.openiz.core.pak" --applet=.\
Join the security realm to which you want to push the recovered data. Be sure to subscribe to the right facility.
Stop the mini-ims server by pressing Enter
Start the mini-ims server again (you can press the up arrow key in windows)
When asked to update press the cancel button. You will notice the mini-ims will start to do an initial sync
Cancel this sync by pressing enter.
Copy the following files from your back to %localappdata%\MINIMS
Restart the mini-ims with the specified parameters from step vii.
You can now access your data as though it was on the tablet (including forcing a synchronization).