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

criu dump failed for /dev/fb0 #527

Closed
fransjp84 opened this issue Jul 18, 2018 · 4 comments
Closed

criu dump failed for /dev/fb0 #527

fransjp84 opened this issue Jul 18, 2018 · 4 comments

Comments

@fransjp84
Copy link

fransjp84 commented Jul 18, 2018

Hello I'm trying to use criu on my custom embedded (arm) project.
I'm able to dump and restore simple loop example and now I'm trying to dump my real example and I got failed with following error:

(00.071189) Dumping path for -3 fd via self 8 [/dev/shm/shm_tmp/fusion.0.5]
(00.082202) Error (criu/proc_parse.c:553): Can't handle non-regular mapping on 4582's map 86aaa000
(00.082264) Error (criu/cr-dump.c:1219): Collect mappings (pid: 4582) failed with -1

when I check the process map, this is what I got:

86aaa000-86ab4000 rw-s 86aaa000 fe:01 1691 /dev/fb/0

86ab4000-8a67f000 rw-s 86ab4000 fe:01 1691 /dev/fb/0
Could you help me on this issue? Thanks

@adrianreber
Copy link
Member

adrianreber commented Jul 18, 2018

You hit one of the 'what cannot be dumped' points

https://criu.org/What_cannot_be_checkpointed#Devices

What does your program do with /dev/fb/0?

@fransjp84
Copy link
Author

Hello, Thanks for the reply, I dont exactly know the detail but I believe it is frame buffer where our SoC uses it to draw things to screen / or maybe it is SoC GPU device.

Based on the info you provided to me, does it means all UI based application that uses gpu to draw cant be dumped?

Thanks a lot

@adrianreber
Copy link
Member

It is not possible to dump applications using the GPU, as CRIU does not know how to extract the state of the GPU, which CRIU needs for the restore. If your application is writing to a VNC session it is possible (https://criu.org/VNC). CRIU also offers the possibility to write plugins: https://criu.org/Plugins

So if you know how to get the state of the GPU dumped you could solve your problem with a CRIU plugin.

@fransjp84
Copy link
Author

okay then, Thanks a lot for your help and info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants