Out of memory while appending to array!!!! #365
Replies: 8 comments
-
Posted at 2015-04-22 by @gfwilliams Interesting! Why do you do that instead of just loading it with the Web IDE?
It may not be related to what you're doing with the NRF module at all - it might just be that your code is creating an array with too many elements. For example the following code may well fail with that error eventually:
Maybe keep an eye on the value of |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-24 by Vishnu Hi Gordon, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-24 by @gfwilliams Are you using an up to date firmware? Some older firmwares might have had some memory leaks that could have caused problems. Otherwise, please could you run It should help me to find out why the memory usage is increasing. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-25 by krishna Hi Gordon,
in this
if i changed this one to static data like nrf_print("Helloworld"); there is no problem with memory... i think this "arr "array is creating some problem... Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-25 by @gfwilliams Are you using the newest firmware? There was a bug that could have caused a memory leak during early this kind of thing. As I said before, the traces would really help. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-27 by Vishnu Hi Gordon, i am using latest firmware..... i will try using "trace".... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-27 by Vishnu Hi Gordon, I have used trace() but ... unable to understand, here i am attaching the files.... and after running " nrf_print("helloworld");" this one in console ... i am getting error as in function called from system
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-27 by @gfwilliams Hmm. Well, To be honest the trace is only useful for bigger programs when you run a graphical diff to compare 'before' and 'after'. Which board were you running this on? If possible, can you It should compile in some assertions that may catch what the problem is. It's odd though, because I haven't noticed an error like that in 6 months or more. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-22 by Vishnu
Hi I am trying to use NRF module... I am inserted NRF module as a variable in "LIB/jswrap_***.c" file
and i am getting that variable data and using "eval" to use that module... up to some time it is working good...
but after some time i am getting "Out of memory while appending to array"
what exactly this means? what things we need consider to get out of this problem.....
Here i am attaching the file which i am using in firmware...
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions