Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

runtime error in function avash_call #64

Closed
ghost opened this issue Nov 26, 2020 · 2 comments
Closed

runtime error in function avash_call #64

ghost opened this issue Nov 26, 2020 · 2 comments

Comments

@ghost
Copy link

ghost commented Nov 26, 2020

Hello, when I want to run a .lua script i get an error:

RunScript: Failed to run scripts/five_node_network.lua
runtime error: invalid memory address or nil pointer dereference
stack traceback: in function 'avash_call'
scripts/five_node_network.lua:12: in main chunk

the problem comes from the avash_call function.
I specify that the functions avash_sleepmicro and avash_setvar work well.

How i can fix it ?

@otherview
Copy link
Contributor

Hi!

How are you running the command ?
If you're running it straight from the command line ./avash runscript scripts/five_node_network.lua try running it from the CLI

./avash                                                                                                                                                                                                                                 
Config file set: /../../.avash.yaml
Avash successfully configured.
avash> runscript scripts/five_node_network.lua

@ghost
Copy link
Author

ghost commented Nov 27, 2020

thanks @otherview it works!

@ghost ghost closed this as completed Nov 27, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant