Hello Guest, Welcome to Apnea Board !
As a guest, you are limited to certain areas of the board and there are some features you can't use.
To post a message, you must create a free account using a valid email address.

or Create an Account


New Posts   Today's Posts

Building OSCAR Ubuntu 20.04
#21
RE: Building OSCAR Ubuntu 20.04
If it helps at all
Code:
$ glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
   Dedicated video memory: 4096 MB
   Total available memory: 4096 MB
   Currently available dedicated video memory: 3532 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 680M/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 418.152.00
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 418.152.00
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 418.152.00
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Post Reply Post Reply
#22
RE: Building OSCAR Ubuntu 20.04
I installed the nvidia-cuda-toolkit and cuda 10.1.  Thought maybe some graphics stuff might be missing and perhaps that would change something.

Did a $ make distclean, which by the way, does not remove the subdirectories /html and /translations in /build/oscar.
Then 
$ qmake ../OSCAR-code/OSCAR_QT.pro 
$ make -j4  

-j4 speeds up things considerably!

Lo and behold OSCAR now runs!  Don't need BROKEN_GL.  Curiously, the OSCAR debug window reports
Code:
10432: Debug: Operating system: Ubuntu 20.04.1 LTS
10432: Debug: Graphics Engine: 4.6.0 NVIDIA 418.152.00
10432: Debug: Graphics Engine type: LegacyGFX

Is LegacyGFX correct?

In any case, the graphics seem to be crisper (and faster) than BROKEN_GL.  The graph traces are sharper as well.
Post Reply Post Reply
#23
RE: Building OSCAR Ubuntu 20.04
Sounds like your running the correct graphics driver now  like
Post Reply Post Reply
#24
RE: Building OSCAR Ubuntu 20.04
It's saying LegacyGFX when running because that preference is sticky. Once you turn it on, it stays on until you turn it off in preferences:

Preferences > General > Desktop OpenGL

(I'm betting yours still says "Software Engine".)
Post Reply Post Reply
#25
RE: Building OSCAR Ubuntu 20.04
sawinglogz, Yes you are correct.  Just changed it to OpenGL.  The app restarted and it's even better now.  Now running OSCAR 1.2.0-rc.2+master-1faaf625-plus (linux x86_64)

Hah, now I need to take out the sleep commands I put in for debug!  Must of added over 10 seconds of delay.

Yeah! Commented out my sleep statements. Now in OSCAR in a blink of an eye!
Post Reply Post Reply
#26
RE: Building OSCAR Ubuntu 20.04
i am also trying to use OSCAR under Ubuntu 20.04.3.
The deb throws Seg Fault.
Then debugging:

$ gdb OSCAR
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright © 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from OSCAR...
(No debugging symbols found in OSCAR)
(gdb) r
Starting program: /usr/bin/OSCAR
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff29cb700 (LWP 95895)]
[New Thread 0x7ffff0e30700 (LWP 95896)]
[New Thread 0x7fffebfff700 (LWP 95897)]
[New Thread 0x7fffeb7fe700 (LWP 95898)]
[Thread 0x7ffff29cb700 (LWP 95895) exited]
[New Thread 0x7ffff29cb700 (LWP 95900)]
[New Thread 0x7fffeaffd700 (LWP 95901)]
00000: Debug: Started logging thread
00000: Debug: OSCAR starting mié. nov. 10 08:03:07 2021
00000: Debug: APP-NAME: "OSCAR"
00000: Debug: APP-PATH: "/usr/bin"
00000: Debug: Trying "/usr/bin/Translations/oscar_qt_fr.qm"
00001: Debug: Trying "/usr/share/OSCAR/Translations/oscar_qt_fr.qm"
00001: Debug: APP-RESOURCES: "/usr/share/OSCAR"
00001: Debug: OSCAR 1.3.0+ee0520b2-plus (linux x86_64)
00001: Debug: Built with Qt 5.12.8 on Oct 17 2021 09:08:24
00001: Debug: system locale date format "dddd, d 'de' MMMM 'de' yyyy"
00001: Debug: shortened date format "ddd d 'de' MMM 'de' yyyy" dayFirst true
00001: Debug: number of built-in *.qm files 0
00001: Debug: Inbuilt Translations: en_US
00001: Debug: number of external *.qm files 51
00001: Debug: Number of external translations is 28
00001: Debug: Extra Translations: af, ar, bg, da, de, el, en_UK, es, es_MX, fi, fr, he, hu, it, ko, nl, no, ph, pl, pt, pt_BR, ro, ru, sv, th, tr, zh_CN, zh_TW
00001: Debug: Using default language en_US
00144: Debug: Logging UI initialized
00149: Debug: Using System Tray for Menu

Thread 1 "OSCAR" received signal SIGSEGV, Segmentation fault.
0x00007ffff73b36e4 in QOpenGLContext:ConfusedhareGroup() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
Post Reply Post Reply
#27
RE: Building OSCAR Ubuntu 20.04
A segfault at the OpenGL call means it is unhappy with your graphics video driver.

Next time you start OSCAR, hold down the shift key while it is starting. This should force a change to the software driver, which should be OK. We see this most often with Windows, and I haven't tried it with Linux.

Once OSCAR is running, you can use Help->Troubleshooting->System Information to verify which driver is in use.
Apnea Board Monitors are members who help oversee the smooth functioning of the Board. They are also members of the Advisory Committee which helps shape Apnea Board's rules & policies. Membership in the Advisory Members group does not imply medical expertise or qualification for advising Sleep Apnea patients concerning their treatment.
Post Reply Post Reply
#28
RE: Building OSCAR Ubuntu 20.04
Here is the checksum file for all OSCAR 1.3.0 distros.  Make sure your OSCAR download matches.

OSCAR  v1.3.0 MD5 Checksums.txt
Crimson Nape
Apnea Board Moderator
www.ApneaBoard.com
___________________________________
Useful Links -or- When All Else Fails:
The Guide to Understanding OSCAR
OSCAR Chart Organization
Attaching Images and Files on Apnea Board
Apnea Helpful Tips

INFORMATION ON APNEA BOARD FORUMS OR ON APNEABOARD.COM SHOULD NOT BE CONSIDERED AS MEDICAL ADVICE. ALWAYS SEEK THE ADVICE OF A PHYSICIAN BEFORE SEEKING TREATMENT FOR MEDICAL CONDITIONS, INCLUDING SLEEP APNEA. INFORMATION POSTED ON THE APNEA BOARD WEB SITE AND FORUMS ARE PERSONAL OPINION ONLY AND NOT NECESSARILY A STATEMENT OF FACT.
Post Reply Post Reply
#29
RE: Building OSCAR Ubuntu 20.04
@sancho : have you downloaded the deb in the official page or have you tried to make your own deb file ?
Did you purged the old version if a old one was installed before you install the 1.3.0 ?
If you tried to make your own deb file which script do you use ?
From France. English spoken. Equipped since end of 2009. ResMed AirSense 10 Autoset since November 2023.
Linux user since 2009 --> current main distribution : Xubuntu 22.04 (laptop)
LUG (named ALDIL) Member since 2015. certifications : ITIL© and ISTQB©


Post Reply Post Reply
#30
RE: Building OSCAR Ubuntu 20.04
Hi all, thanks for the very prompt answers/reaction.

This is what I tried:

1. deb from official page.

2. After my first post, also the executable built as per BUILD_Linux.md. I got essentially the same result, see below.

3. Checking md5, it is ok.

4. Pressing shift "while" running. I am not sure I am doing things right. The segfault shows up quite fast.
Is there any other way of trying an alternative driver?
I would rather try this on a temporary basis (modprobe, etc.). Changing permanent settings sometimes messes up systems in a hard-to-recover way.

Plus:

5. I had no previous versions to purge.

6. I did not try to make my own deb, but I guess point 2 above is exactly equivalent.


PS: I am not finding how to format text (code, italics, etc.) Does markdown work?
PS2: I just found it via "full edit". I have yet to find how to do this straight in the first posting time.


=================================================================
Output of gdb'ing the custom built OSCAR


Code:
$ gdb ./oscar/OSCAR
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
   <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ./oscar/OSCAR...
(No debugging symbols found in ./oscar/OSCAR)
(gdb) r
Starting program: /home/santiago/Documents/installers/cpap/OSCAR-code-master/build/oscar/OSCAR
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff29cb700 (LWP 125184)]
[New Thread 0x7ffff0e30700 (LWP 125185)]
[New Thread 0x7fffebfff700 (LWP 125186)]
[New Thread 0x7fffeb7fe700 (LWP 125187)]
[Thread 0x7ffff29cb700 (LWP 125184) exited]
[New Thread 0x7ffff29cb700 (LWP 125189)]
[New Thread 0x7fffeaffd700 (LWP 125190)]
00000: Debug: Started logging thread
00000: Debug: OSCAR starting mié. nov. 10 16:40:15 2021
00000: Debug: APP-NAME: "OSCAR"
00000: Debug: APP-PATH: "/home/santiago/Documents/installers/cpap/OSCAR-code-master/build/oscar"
00000: Debug: Trying "/home/santiago/Documents/installers/cpap/OSCAR-code-master/build/oscar/Translations/oscar_qt_fr.qm"
00000: Debug: APP-RESOURCES: "/home/santiago/Documents/installers/cpap/OSCAR-code-master/build/oscar"
00000: Debug: OSCAR 1.3.0 (linux x86_64)
00000: Debug: Built with Qt 5.12.8 on Nov 10 2021 08:30:08
00000: Debug: system locale date format "dddd, d 'de' MMMM 'de' yyyy"
00000: Debug: shortened date format "ddd d 'de' MMM 'de' yyyy" dayFirst true
00000: Debug: number of built-in *.qm files 0
00000: Debug: Inbuilt Translations: en_US
00000: Debug: number of external *.qm files 51
00000: Debug: Number of external translations is 28
00000: Debug: Extra Translations: af, ar, bg, da, de, el, en_UK, es, es_MX, fi, fr, he, hu, it, ko, nl, no, ph, pl, pt, pt_BR, ro, ru, sv, th, tr, zh_CN, zh_TW
00000: Debug: Using default language en_US
00138: Debug: Logging UI initialized
00142: Debug: Using System Tray for Menu

Thread 1 "OSCAR" received signal SIGSEGV, Segmentation fault.
0x00007ffff73b36e4 in QOpenGLContext::shareGroup() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
Post Reply Post Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  OSCAR for Ubuntu Linux "blocked and dangerous" edgreenberg 3 738 07-17-2023, 06:27 AM
Last Post: edgreenberg
  Unable to install Oscar on ubuntu 22.04 BrassCat 2 781 05-17-2023, 07:19 PM
Last Post: BrassCat
  Update Oscar 1.2.0 to 1.4.0 on Ubuntu 18.04 mcman56 2 600 09-26-2022, 04:47 PM
Last Post: untoutseul05
Sad Problem to install Oscar 1.4.0 with Ubuntu Budgie 22.04 kkwete 2 672 06-22-2022, 03:06 AM
Last Post: kkwete
  error building OSCAR from source: unknown warning option timpani 20 2,076 03-11-2022, 12:50 AM
Last Post: Jeff8356
  Installation of OSCAR in Ubuntu 16.04 ? anderson5420 0 729 03-10-2021, 10:30 AM
Last Post: anderson5420
  New computer - back to building OSCAR happydreams 12 1,336 01-28-2021, 11:15 AM
Last Post: happydreams


New Posts   Today's Posts


About Apnea Board

Apnea Board is an educational web site designed to empower Sleep Apnea patients.