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

When the code enables UI, the system freezes. #67

Closed
UAVlover opened this issue Apr 27, 2023 · 9 comments
Closed

When the code enables UI, the system freezes. #67

UAVlover opened this issue Apr 27, 2023 · 9 comments

Comments

@UAVlover
Copy link

Recently, I got a new computer installed with the latest version of Ubuntu 20.04.6. When running a program that includes "tools/ui/pangolin_window.h" to draw the UI interface, the system freezes. If the UI is disabled in the program, the program can run normally and print output in the terminal. Programs that directly call the Pangolin library for visualization can visualize and run normally, and it is currently unclear what the reason is.

@gaoxiang12
Copy link
Owner

@UAVlover Yeah, same for my Yoga Pro 14s. I wonder if should be some hardware problems with OpenGL in the recent GPU cards.

@UAVlover
Copy link
Author

@gaoxiang12 Thank you for your response, Dr. Gao. My new PC is a ThinkBook 16+ 2022, and I'm hoping that other guys who have same problem can write down their PC model here, which may help.

@UAVlover
Copy link
Author

UAVlover commented Apr 29, 2023

@gaoxiang12 Hello, Dr.Gao. I have found a useful way to deal with this problem.

  1. sudo vim /etc/default/grub
  2. find GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
  3. Then add "nomodeset" at the end, save, and exit. for example, GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
  4. sudo update-grub
  5. reboot
    After these operations, all programs can be executed well on my PC. You can check it on your PC. If it works well, maybe you can add this tip to the document, which could be helpful.

@ForLoveandPeace
Copy link
Contributor

Hi, you can export LIBGL_ALWAYS_SOFTWARE=1, instead of adding "nomodeset" in /etc/default/grub. Hope it will help you.

@UAVlover
Copy link
Author

UAVlover commented May 9, 2023

@ForLoveandPeace Thanks. In fact, I have tested this method, as you mentioned. But, it didn't work on my PC.

@DrZhongCH
Copy link

I think I installed NVIDIA GPU for DL previously. Adding "nomodeset" does not work for me. export LIBGL_ALWAYS_SOFTWARE=1 solve the problem.

@UAVlover
Copy link
Author

UAVlover commented May 15, 2023

I think I installed NVIDIA GPU for DL previously. Adding "nomodeset" does not work for me. export LIBGL_ALWAYS_SOFTWARE=1 solve the problem.

@DrZhongCH Thanks for your comment. It's wired , I installed nvidia driver too. Anyway, your problem has been solved ! Our discussion would be helpful for other guys!

@fongpd
Copy link

fongpd commented Nov 18, 2023

My PC is colorful yx p16,when I run the first program of the book,my system was freezed.

@wzh506
Copy link

wzh506 commented Apr 4, 2024

I tried expoert LIBGL_ALWAYS_SOFTWARE =1 but failed,I wonder how....

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

6 participants