StepListener different calls pc/android
Hi! I'm trying to implement the steplistener class. I noticed that class to add method of StepListener are different from pc to android phone, settigns and code are the same. How is this possible?
Comments (9)
-
-
repo owner Does this have to do with the new minification?
https://bitbucket.org/axelclk/symja_android_library/issue/87
Instead of the
symja-mini-YYYY-MM-DD.jar
you now have to use the latest
symja-lib-YYYY-MM-DD.jar
library, if you want to use a smaller library on Android.
-
I'v done some tests. If I run Integrate(x*(x+1),x) on a background thread, my listener has a different output (smaller, there are missing a lot of steps), more my logcat reports a lot of logs from symja. Else, if I run Integrate(x^2+x, x) I obtain the same stepListener results as if I run the command on the main thread. This is a bit weird :/
Edit. I tried both symja-mini-YYYY-MM-DD.jar and symja-lib-YYYY-MM-DD.jar
-
repo owner Is the problem solved now? Does it have to do with Android behaviour?
-
Sorry, but even with the last build and following your tips the output is the same (I tried the same Integrate(x*(x+1),x) ...)
edit: now, the listener receive only one step (the last one) also if executed in the main thread.
-
repo owner Do you have a repository on the web where I can see an example of your implementation?
-
Hi, unfortunately I have no public repo. But..I noticed that if I remove all other thread except the main thread everything work as it should. Maybe it is an heap issue but even trying to use largeHeap=true this doesn't work. Definitively this is not a Symja error but a bad Android memory management eventhough I don't know how to make symja + 1 other thread working together.
-
repo owner Unfortunately there are a lot of possibilities to leak memory management. See:
-
repo owner - changed status to closed
- Log in to comment
Something similar once happened to me...is a question of memory. Are you executing it on the main thread on another thread? If latter, try to execute the code in the main thread and see what happens.