Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not enough memory Taranis X9D + 1.2.5 (OpenTX 2.2.1) #109

Closed
David-VG opened this issue May 3, 2018 · 4 comments
Closed

Not enough memory Taranis X9D + 1.2.5 (OpenTX 2.2.1) #109

David-VG opened this issue May 3, 2018 · 4 comments

Comments

@David-VG
Copy link

David-VG commented May 3, 2018

Hi,

I know this is OpenTX related but just to let you know:

I get this message with OpenTX 2.2.1 with the last 1.2.5. Not a problem with 1.2.4 or earlier scripts:

"Script panic
not enougth memory"

There are a similar issue here:
betaflight/betaflight-tx-lua-scripts#97

I dont get the same error at the simulator, just with the real TX.

@teckel12
Copy link
Owner

teckel12 commented May 3, 2018

@David-VG How are you installing the script? Are you moving the iNav.lua file from the src folder or TELEMETRY as noted in the instructions?

Basically, the file in src isn't pre-compiled, and it will take more memory to compile (more memory than the transmitter has). The one you should be using is the one in the TELEMETRY folder, which is pre-compiled and therefore uses less memory.

Out of memory isn't an issue with Lua Telemetry, it's either that you didn't install the correct script or you have too much running on your transmitter (there's very limited memory on Taranis transmitters). If you're using the iNav.lua from the TELEMETRY folder and it's still says out of memory, your only option is to remove other scripts. Nothing can be done about the limited memory on the transmitter.

Anyway, please follow the INAV Lua Telemetry Screen Setup instructions. Also, if you could review the final item in the Tips to be sure that answers your question.

@teckel12 teckel12 changed the title Not enought memory Taranis X9D + 1.2.5 (OpenTX 2.2.1) Not enough memory Taranis X9D + 1.2.5 (OpenTX 2.2.1) May 3, 2018
@David-VG
Copy link
Author

David-VG commented May 3, 2018

Hi @teckel12 ,

Yeah, i tried both methods (usually used the pre-compiled one but today upgrading to 1.2.5 and noticing the memory issue also tried the lua ones). When I use Inav i only use the Lua Telemetry precompiled scripts.

While using inav, long time ago i was using the old (and smaller) betaflight vtx sript but i dont use it as a Telemetry Screen now, just Lua Telemetry as a Screen.

Really there is an issue related to OpenTX memory and now there is less memory avaliable for the X9 model. With some speciffic firmwares some scripts works (happens also with betaflight-tx-lua-scripts).

I will try those binary firmwares + the luac and will give some feedback.

@David-VG
Copy link
Author

David-VG commented May 3, 2018

Well, trying opentx-x9d+-noheli-lua-luac-internalppm-en-2.2.1.bin (as I commented at the betaflight issue) the script works again. :/

@teckel12
Copy link
Owner

teckel12 commented May 3, 2018

@David-VG You could also remove the luac to save more space.

@teckel12 teckel12 closed this as completed May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants