With SDK 8.1.1, I’ve been encountering Error: Illegal Access (Out of Bounds)
exceptions originating from Exception.printStackTrace
. These occur both for exceptions thrown by my own code and those triggered by SDK functions.
Below is a log excerpt from one such occurrence. In this instance, the issue arises during a special case where onReceive
is called immediately and synchronously from Communications.makeWebRequest
. This might be related to the problem. Notably, there is an odd empty line in the stack trace between two function calls, which could be a clue.
8.5.2025 19:08:02: No phone
Exception: No phone
Stack:
- checkResponseCode() at D:\ProjectsLocal\ohg\source\requests\BaseRequest.mc:37 0x100004b3
- onReceive() at D:\ProjectsLocal\ohg\source\requests\BaseSitemapRequest.mc:66 0x10000f2a
- at
- makeRequest() at D:\ProjectsLocal\ohg\source\requests\BaseSitemapRequest.mc:59 0x10001054
Error: Illegal Access (Out of Bounds)
Details: Failed invoking <symbol>
Stack:
- debugException() at D:\ProjectsLocal\ohg\source\helpers\Logger.mc:46 0x1000088a
- handleException() at D:\ProjectsLocal\ohg\source\ui\error\ExceptionHandler.mc:29 0x100017c9
- onException() at D:\ProjectsLocal\ohg\source\requests\SitemapRequest.mc:59 0x1000239b
- onReceive() at D:\ProjectsLocal\ohg\source\requests\BaseSitemapRequest.mc:75 0x10000fa4
- at
This ultimately results in an application crash.
For reference, here is the source code corresponding to the stack trace, in case it's helpful for identifying the root cause.
https://github.com/TheNinth7/ohg