TotalCross / totalcross

TotalCross is a Software Development Kit that helps cross platform application development. Currently supported platforms are: Windows, Wince, Android, iOS, Linux and Linux ARM for embedded systems.
https://www.totalcross.com
GNU Lesser General Public License v2.1
222 stars 40 forks source link

munmap_chunk(): invalid pointer on IMX8 Nano #259

Closed r0n22 closed 3 years ago

r0n22 commented 3 years ago

munmap_chunk(): invalid pointer on IMX8 Nano

Trying to run the Arm64 build on IMX8 Nano. When running Embedded Hello World I am getting the above error

Describe the bug

Compile the Hello world Sample and copy the latest arm64 Launcher and libtcvm.so to the folder. Running the code with ./Launcher HelloWorld

I see a quick flash on the screen and the following output:

Testing video drivers... SDL_VIDEODRIVER available: x11 wayland dummy SDL_VIDEODRIVER usable : wayland SDL_VIDEODRIVER selected : wayland SDL_DisplayMode #0: current display mode is 800x480x67 SDL_RENDER_DRIVER available: opengl opengles2 software SDL_RENDER_DRIVER selected : opengles2 munmap_chunk(): invalid pointer Aborted

Expected behavior

Hello World application to Run

Devices:

Please complete the following information:

Additional context

teras commented 3 years ago

It looks for me that this issue is similar to #263 and #265 . The only difference is it is using opengles2 instead of x11. And also this happens in ARM64 platform, all of the times. So it seems like an ARM64 bug.

Please @Farshid-Monhaseri confirm so we can concentrate on this issue.

pedropaulolyra commented 3 years ago

Any updates?

pedropaulolyra commented 3 years ago

To check if the problem is with Knowcode or not, I'm attaching two samples, the 2i app uses knowcode and the coronachart doen't. Both is using version 7.0.

Could you please try it @VicMisael ?

install 2i.zip install coronachart.zip

VicMisael commented 3 years ago

2i doesn't work, a crash related to knowcodeXML, coronachart runs fine,Both of the 64 bits executable don't work since mine is 32 bit

VicMisael commented 3 years ago

You can try this libtcvm? It should solve this issue

libtcvm.zip