Skip to content

crash abnormalProblem

AirtestIDE Operating System Requirements

  • Windows
  • Microsoft Windows 7/8/10 (64bit / 32bit)
  • Python 2.7 or higher
  • macOS
  • macOS 10.12.1 or higher
  • Python 2.7 or higher
  • Ubuntu
  • Ubuntu 16.04 64bit
  • Python 2.7 or higher

If AirtestIDE crashes when launched, please first check if the system version is within the supported range (Mac system versions below 10.12.1 cannot run), and for Windows, try updating the graphics card driver and try again.

Troubleshooting Steps for AirtestIDE Crashing or Error Reporting

If there is a program error and crash when using AirtestIDE, as long as your computer is connected to the internet, there is no need to panic. Our error collection system will automatically send error logs. However, if a crash error occurs repeatedly, and you want to provide more information to us (such as the operation steps that caused the error, more detailed system information, etc.), we would be very grateful! Please follow the steps below to view the error message content:

Start using the command line.

  • Windows: Open the IDE folder on Windows, hold down Shift and right-click on the mouse to open the menu. Select "Open command window here", then type AirtestIDE.exe to start the IDE.

$ cd AirtestIDE $ AirtestIDE.exe

  • Mac:

$ cd /Applications/AirtestIDE.app/Contents/MacOS $ ./AirtestIDE

Also, due to compatibility issues with graphics cards, a few users may be unable to see text in the script editor and log window when starting AirtestIDE, or the program may crash after startup. However, these users can start AirtestIDE normally by double-clicking on the .bat script in the folder and selecting compatibility mode.

To avoid having to double-click the script every time it is launched, we have added a new option in the settings since version 1.2.3: image

By default, the default mode will be selected. If users have problems starting it, they can try selecting the other three options in the drop-down menu and restart AirtestIDE to see if the script editor and log viewer can be displayed normally. If it works, AirtestIDE will always start with this configuration option in the future, and there is no need to double-click the compatibility mode startup.bat script every time manually.

View Error Message

After starting the command line on MacOS, you can immediately see the error log output in the terminal. On Windows, you can view the log in the black command line interface, like this:

image

Confirm current version

If you are using the local Python environment to run the script, please confirm whether the version numbers of Airtest and Pocoui are the latest. You can update the version by using the following command line:

pip install -U airtest
pip install -U pocoui

In the command line terminal, you can use 'pip list' to view the version numbers of the third-party libraries currently installed. When asking questions or reporting bugs, providing the version numbers of the 'airtest' and 'pocoui' libraries will be very helpful for us.

If you are using AirtestIDE to run scripts, please check the current version number in the title of the AirtestIDE software on the official download page to see if it is the latest. Some bugs have been fixed with version updates, and upgrading to the latest version on time can avoid many problems.

Search for similar issues

Directly searching for problems encountered on the internet is an excellent method. Others have already encountered many problems and solutions have been shared, especially in the AirtestIDE issue, where many problems have already been resolved.

If you want to submit a bug to official staff members.

  • Visit AirtestIDE issues and create a new issue
  • You can choose to submit issues in Chinese/English
  • Please clearly describe your problem, the operating process, the model of your mobile device, and the version number of AirtestIDE according to the prompt. Especially, please attach error snapshots of the backend window and AirtestIDE interface, as shown below.
  • Please provide a minimal script if possible that can reproduce your issue and removes any unrelated error script content.

Example of submitting an issue

Bug description:

After writing the script, an error occurred, stating that the exists method was not defined.

Steps to reproduce:

① Use the method on the left side of the IDE to write the script.

② Click the run button.

③ Error message shows that the exists method was not defined.

IDE version:

Version 1.2.2

Phone model:

MI 5X

Android system version:

8.1.0

Snapshot of log viewing window:

Please include the error section at the end! image
Snapshot of error message in black window: image
Snapshot of error code: image

Ask a question in the official QQ group

Before asking questions

Before asking questions, please make sure to use search engines as much as possible to search for the problems you have encountered. After confirming that similar issues cannot be found through searches, then you can post your question.

When asking questions in our official Airtest Q group (1017250147 or 437119175), you also need to follow the example mentioned above and provide a detailed description of the scenario, environment, and the issue you encountered. Please include various error snapshots and error codes (if it doesn't involve privacy), and provide the simplest reproducible code to help the group admins locate your problem quickly. Please do not only throw out a single error snapshot or describe the problem with only a simple sentence, such as "My code doesn't run", as this will result in high communication costs.

View the historical running log

  • Windows:

File path: AirtestIDE/Default.log

  • Mac:

File path: ~/Library/Application Support/AirtestIDE/Default.log

If the log generated by the previous operations is lost, you can also submit the latest error log to the issue at the end of this Default.log file.