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

munmap_chunk(): invalid pointer on IMX8 Nano #259

Closed
r0n22 opened this issue Jan 7, 2021 · 5 comments · Fixed by #279
Closed

munmap_chunk(): invalid pointer on IMX8 Nano #259

r0n22 opened this issue Jan 7, 2021 · 5 comments · Fixed by #279
Assignees
Labels
bug Something isn't working high Linux ARM Issue related to the platform Linux ARM
Milestone

Comments

@r0n22
Copy link

r0n22 commented Jan 7, 2021

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:

  • Device: IMX8 Nano
  • OS: Yocto
  • OS Version: Dunfell
  • TotalCross Version: 7.0.0-nightly

Additional context

@r0n22 r0n22 added the bug Something isn't working label Jan 7, 2021
@teras teras added Linux ARM Issue related to the platform Linux ARM high labels Jan 13, 2021
@teras
Copy link
Collaborator

teras commented Jan 13, 2021

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
Copy link

Any updates?

@pedropaulolyra
Copy link

pedropaulolyra commented Jan 18, 2021

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 VicMisael self-assigned this Jan 18, 2021
@VicMisael
Copy link
Collaborator

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
Copy link
Collaborator

You can try this libtcvm? It should solve this issue

libtcvm.zip

flsobral added a commit that referenced this issue Jan 20, 2021
Some devices crash when opengl is used, so for now,
we'll force the usage of the software renderer until we
find a way to test for hardware accelerated graphics
support without crashing.

probably fixes #259
flsobral added a commit that referenced this issue Jan 20, 2021
Some devices crash when opengl is used, so for now,
we'll force the usage of the software renderer until we
find a way to test for hardware accelerated graphics
support without crashing.

probably fixes #259
flsobral added a commit that referenced this issue Jan 21, 2021
Some devices crash when opengl is used, so for now,
we'll force the usage of the software renderer until we
find a way to test for hardware accelerated graphics
support without crashing.

probably fixes #259
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working high Linux ARM Issue related to the platform Linux ARM
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants