> For the complete documentation index, see [llms.txt](https://help.autify.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.autify.com/nocode-mobile/troubleshooting/trobleshooting-local-device/first-steps-to-try-for-error-aborted-due-to-an-internal-error.md). Agents can also search and read this documentation through its [MCP server](https://help.autify.com/~gitbook/mcp).

# 「内部エラーまたはテスト最大実行時間の超過によりテスト実行が中断されました。」というエラーメッセージが表示され失敗した時にまずお試しいただきたいこと

## 状況

テスト実行時に「内部エラーまたはテスト最大実行時間の超過によりテスト実行が中断されました。」というエラーメッセージが表示された

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-3c55f94a25e16cf24756ad7e1ed1cdfa27747813%2FScreenshot%202026-04-03%20at%2012.36.16.png?alt=media)

## 対処方法

### 1. 再接続

ローカルデバイスと接続し一定時間経過した後、接続が予期せず切断されることがあります。もし接続が切れている場合は、各OSのセットアップ手順[6.接続開始](https://help.autify.com/nocode-mobile/using-autify-nocode-mobile/execution-environments/local-device/setup-procedure-for-recording-and-test-execution-on-a-local-device-ios.md#start-the-connection)にある`autify mobile link start` を再実行して再接続をお試しください。

```
autify mobile link start
```

### 2. レコーダーの画面クオリティの調整

お客様がご利用されているネットワーク環境や端末のスペックとの相性によっては、ローカルモバイル端末に表示された画面の情報をAutifyの画面に取得ができず、エラーとなることがあります。AutifyではMJPEG形式で画面の情報を取得していますが、この形式を無効にすることで解消できる可能性があるので、以下をお試しください。

`autify mobile link setup` を実行し、`Choose the screen quality for recording:` の設定で `2. Low` を選択してください。

![](https://1076629499-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fngfbmyfc37v4emfzEMM7%2Fuploads%2Fgit-blob-9113185c6e9c29878d643d5d0477c31875822515%2FScreenshot%202026-04-03%20at%2012.16.24.png?alt=media)

{% hint style="info" %}
**Note**

これはAutifyの機能やテスト実行の品質に一切影響を与えません。レコーダーの使用中におけるUIの更新頻度を変更するだけです。
{% endhint %}

### 3. IPアドレスの変動が原因の場合

お客様がご利用されているIPアドレスが定期的に変わる場合、同様に接続が切断されることが考えられますので、都度再接続をお試しください。

### 4. Xcode accountを確認 (iOS 端末のみ)

[XCodeアカウントが適切に設定](https://help.autify.com/nocode-mobile/troubleshooting/trobleshooting-local-device/what-apple-account-settings-are-needed-to-use-local-ios-real-devices.md)されているかをご確認ください。Cloud Managed Distribution Certificates権限がないなどの場合、エラーとなります。

### 5. ローカル端末の画面を確認 (iOS 端末のみ)

ローカル端末側の画面ロックを外し忘れていた場合、エラーとなります。接続したローカル端末の画面ロック解除をして再実行をお試しください。

### 6. エラーログを確認 (OPPO 端末 のみ)

テストログ (例：test-1234XXX-appium.log) に「info: java.lang.SecurityException: Permission denial: writing to settings requires:android.permission.WRITE\_SECURE\_SETTINGS」というエラーがある場合、OPPO端末の権限設定の問題の可能性が考えられます。OPPO端末の設定を変更していただくことで問題が解決する可能性がございますので、端末上で以下の設定を実施後、再実行をお試しください。

1. [こちらを参考](https://developer.android.com/studio/debug/dev-options?hl=ja#enable)に、開発者向けオプションを表示し、移動します。
2. 「開発者向けオプション」または「セキュリティ」の設定で、「Disable Permission Monitoring」をONにし、「App Permission Monitor」をOFFにします。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.autify.com/nocode-mobile/troubleshooting/trobleshooting-local-device/first-steps-to-try-for-error-aborted-due-to-an-internal-error.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
