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
#11
RE: Building OSCAR Ubuntu 20.04
That sounds easy enough!

Code:
Reading symbols from OSCAR...
(No debugging symbols found in OSCAR)
(gdb) run
Starting program: /home/xxx/Apps/OSCAR/build/oscar/OSCAR
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff2a0d700 (LWP 50951)]
[New Thread 0x7ffff0f96700 (LWP 50979)]
[New Thread 0x7fffebfff700 (LWP 50980)]
[New Thread 0x7fffeb7fe700 (LWP 50981)]
[New Thread 0x7fffeaffd700 (LWP 50982)]
[Thread 0x7ffff2a0d700 (LWP 50951) exited]
[New Thread 0x7ffff2a0d700 (LWP 50986)]
[New Thread 0x7fffea7fc700 (LWP 50993)]
00000: Debug: Started logging thread
00000: Debug: OSCAR starting Thu Oct 8 13:37:38 2020
00000: Debug: APP-NAME: "OSCAR"
00001: Debug: APP-PATH: "/home/xxx/Apps/OSCAR/build/oscar"
00001: Debug: Trying "/home/xxx/Apps/OSCAR/build/oscar/Translations/oscar_qt_fr.qm"
00001: Debug: APP-RESOURCES: "/home/xxx/Apps/OSCAR/build/oscar"
00001: Debug: OSCAR 1.2.0-rc.2+master-1faaf625-plus (linux x86_64)
01001: Debug: Built with Qt 5.12.8 on Oct  8 2020 11:41:08
03001: Debug: system locale date format "dddd, MMMM d, yyyy"
03001: Debug: shortened date format "ddd MMM d yyyy" dayFirst false
03001: Debug: number of built-in *.qm files 0
03001: Debug: Inbuilt Translations: en_US
03001: Debug: number of external *.qm files 48
03002: Debug: Number of external translations is 26
03002: 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, sv, th, tr, zh
03002: Debug: Using default language en_US
05181: Debug: Logging UI initialized
05188: Debug: Using System Tray for Menu

Thread 1 "OSCAR" received signal SIGSEGV, Segmentation fault.
0x00007ffff71796e4 in QOpenGLContext::shareGroup() const () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
(gdb) bt
#0  0x00007ffff71796e4 in QOpenGLContext::shareGroup() const () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#1  0x00007ffff749a025 in  () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#2  0x00007ffff749a22f in QOpenGLFunctions::initializeOpenGLFunctions() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#3  0x0000555555748123 in getOpenGLVersionString() ()
#4  0x0000555555748864 in makeBuildInfo(QString) ()
#5  0x00005555555d685b in main ()
(gdb)
Well, there's the stack trace.

You can also run qmake with "CONFIG+=memdebug" and it will compile with ASAN, which checks for out-of-bounds memory errors, double-frees, etc.

So one would make distclean, then do qmake, then make?  How do you format the qmake statement?  Like this?
$ qmake CONFIG+=memdebug ../OSCAR-code/OSCAR_QT.pro

Seemed to have worked for qmake. Trying again.
Post Reply Post Reply






Donate to Apnea Board  
#12
RE: Building OSCAR Ubuntu 20.04
Code:
Reading symbols from OSCAR...
(gdb) run
Starting program: /home/xxx/Apps/OSCAR/build/oscar/OSCAR
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
==52215==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD.
[Inferior 1 (process 52215) exited with code 01]
What does this mean?

Tried using $LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libasan.so gdb OSCAR
No joy.  Added in . prior to /usr, no good.  Added variants of libasan.so (.1, .5, .5.0.0) and all permutations.  Nope.

Either get message from inside gdb that
Code:
ERROR: ld.so: object '/usr/lib/x86_64-linux-gnu/libasan.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
or 
Code:
==53253==ERROR: AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) on 0x602000000530
   #0 0x7f815e80c8df in operator delete(void*) (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x1108df)
   #1 0x55b343601641  (/usr/bin/gdb+0x140641)
   #2 0x55b3436f52e8  (/usr/bin/gdb+0x2342e8)
   #3 0x55b3436f4bbc  (/usr/bin/gdb+0x233bbc)
   #4 0x55b34377a736  (/usr/bin/gdb+0x2b9736)
   #5 0x55b34377bcae  (/usr/bin/gdb+0x2bacae)
   #6 0x55b343595a7f  (/usr/bin/gdb+0xd4a7f)
   #7 0x7f815da1d0b2 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
   #8 0x55b34359b41d  (/usr/bin/gdb+0xda41d)

0x602000000530 is located 0 bytes inside of 4-byte region [0x602000000530,0x602000000534)
allocated by thread T0 here:
   #0 0x7f815e809bc8 in malloc (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x10dbc8)
   #1 0x55b3436f6aee in operator new(unsigned long) (/usr/bin/gdb+0x235aee)

SUMMARY: AddressSanitizer: alloc-dealloc-mismatch (/usr/lib/x86_64-linux-gnu/libasan.so.5+0x1108df) in operator delete(void*)
In over my head...

The rabbit hole is deep!  Help!
Post Reply Post Reply
#13
RE: Building OSCAR Ubuntu 20.04
It appears that the fault happens during the call to QOpenGLFunctions::initializeOpenGLFunctions() () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
Diving into the QT code is over my head (way too deep!) so the only thing I can suggest is to avoid the call. You can do this by defining BROKEN_OPENGL_BUILD for qmake - as before: qmake DEFINES+=BROKEN_OPENGL_BUILD ../OSCAR-code/OSCAR.pro

This isn't usually needed for most recent Linux builds, but possibly there is something odd about the nvidia driver... I don't know... I'm not sure it won't cause other problems, but let's see if we can get to creating a main window, at least.
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
#14
RE: Building OSCAR Ubuntu 20.04
Thanks for responding.  In the directory OSCAR-code there is no file named OSCAR.pro.  There is a OSCAR_QT.pro.
In OSCAR/OSCAR-code/oscar there is a oscar.pro

What do I try?

I have tried nvidia-390 which is quite old, as well as nvidia-418, neither of which will run with OSCAR on my machine.  Just updated my computer from 18.04 LTS to 20.04 last night.  There are things which don't seem to work well any more.  It's always a pain to upgrade in place...

Nevermind, I typed OSCAR_QT.pro which worked.  Is there any reason one can't make -j4 for building OSCAR?  Ordinary make is kind of slow.
Post Reply Post Reply






Donate to Apnea Board  
#15
RE: Building OSCAR Ubuntu 20.04
I usually run make -j3 myself (leaving 1 core free), so there's no reason you can't do more. Smile

Given that your error is in OpenGL, I don't think ASAN will help here, so you can skip that bit. For future reference, I'd just create another build directory (e.g. "debug") and run a fresh qmake from within there. I haven't seen your error message before, so I don't know if it that would address your issue specifically.
Post Reply Post Reply
#16
RE: Building OSCAR Ubuntu 20.04
BrokenGL seems to work.  OSCAR is running.  No idea why opengl is broken.  It wasn't broken in 18.04.
Post Reply Post Reply
#17
RE: Building OSCAR Ubuntu 20.04
As I remember, there is a Ubuntu 18.04 version & a 20.04 one because of dependency.
What you have to do is to erase the temp directory which is in your home.
Mine is named tmp_deb_OSCAR-test (but it was a beta version).
and all the build directory.
After what, you make all the process.
- qmake ../OSCAR/OSCAR_QT.pro --> it is supposed to generate the makefile
- make (you can add -j parameter to specify how many core have to be used : don't put more than the half of the number of the "real" core of the physical machine).

I have 4 cores with 2 thread by core --> I make a -j 2.
From France. English spoken. Equipped since end of 2009. Currently RedMed S9.
Linux user since 2009 --> current main distribution : Xubuntu 18.04
LUG (named ALDIL) Member since 2015. certifications : ITIL © and ISTQB©


Post Reply Post Reply






Donate to Apnea Board  
#18
RE: Building OSCAR Ubuntu 20.04
Just reverted video driver to nvidia-418.  glmark2 seems to work fine.  No idea if the score means anything, but all the test ran without error.  Old laptop.  Graphics rendered fine and all animation was good.

Code:
$ glmark2
=======================================================
   glmark2 2014.03+git20150611.fa71af2d
=======================================================
   OpenGL Information
   GL_VENDOR:     NVIDIA Corporation
   GL_RENDERER:   GeForce GTX 680M/PCIe/SSE2
   GL_VERSION:    4.6.0 NVIDIA 418.152.00
=======================================================
[build] use-vbo=false: FPS: 4352 FrameTime: 0.230 ms
[build] use-vbo=true: FPS: 6011 FrameTime: 0.166 ms
[texture] texture-filter=nearest: FPS: 5742 FrameTime: 0.174 ms
[texture] texture-filter=linear: FPS: 5704 FrameTime: 0.175 ms
[texture] texture-filter=mipmap: FPS: 5839 FrameTime: 0.171 ms
[shading] shading=gouraud: FPS: 5581 FrameTime: 0.179 ms
[shading] shading=blinn-phong-inf: FPS: 5620 FrameTime: 0.178 ms
[shading] shading=phong: FPS: 5613 FrameTime: 0.178 ms
[shading] shading=cel: FPS: 5642 FrameTime: 0.177 ms
[bump] bump-render=high-poly: FPS: 4620 FrameTime: 0.216 ms
[bump] bump-render=normals: FPS: 5997 FrameTime: 0.167 ms
[bump] bump-render=height: FPS: 5900 FrameTime: 0.169 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 4997 FrameTime: 0.200 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 3931 FrameTime: 0.254 ms
[pulsar] light=false:quads=5:texture=false: FPS: 5674 FrameTime: 0.176 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 2585 FrameTime: 0.387 ms
[desktop] effect=shadow:windows=4: FPS: 3790 FrameTime: 0.264 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 934 FrameTime: 1.071 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 1267 FrameTime: 0.789 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 1120 FrameTime: 0.893 ms
[ideas] speed=duration: FPS: 5291 FrameTime: 0.189 ms
[jellyfish] <default>: FPS: 4151 FrameTime: 0.241 ms
[terrain] <default>: FPS: 538 FrameTime: 1.859 ms
[shadow] <default>: FPS: 4388 FrameTime: 0.228 ms
[refract] <default>: FPS: 1376 FrameTime: 0.727 ms
[conditionals] fragment-steps=0:vertex-steps=0: FPS: 5248 FrameTime: 0.191 ms
[conditionals] fragment-steps=5:vertex-steps=0: FPS: 5027 FrameTime: 0.199 ms
[conditionals] fragment-steps=0:vertex-steps=5: FPS: 5371 FrameTime: 0.186 ms
[function] fragment-complexity=low:fragment-steps=5: FPS: 5311 FrameTime: 0.188 ms
[function] fragment-complexity=medium:fragment-steps=5: FPS: 5225 FrameTime: 0.191 ms
[loop] fragment-loop=false:fragment-steps=5:vertex-steps=5: FPS: 5404 FrameTime: 0.185 ms
[loop] fragment-steps=5:fragment-uniform=false:vertex-steps=5: FPS: 5392 FrameTime: 0.185 ms
[loop] fragment-steps=5:fragment-uniform=true:vertex-steps=5: FPS: 4949 FrameTime: 0.202 ms
=======================================================
                                 glmark2 Score: 4502
=======================================================
$
Don't know, no broken packages.  Using gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
Post Reply Post Reply
#19
RE: Building OSCAR Ubuntu 20.04
untoutseul05 I don't understand the italics 

What you have to do is to erase the temp directory which is in your home.  Mine is named tmp_deb_OSCAR-test (but it was a beta version).

I don't have any temp, tmp, .temp, .tmp, etc. directories in /home.  My settings are to display all files including hidden.  There's a recent change in .config and also in Documents, but they are due to successfully building the BROKEN_GL version.
My App area is in /home/Apps.  OSCAR is an app.  It's in /home/Apps/OSCAR.  

When I rebuild, (when nothing is going right) I use make distclean to remove all the old stuff.  It removes all the stuff in the build area.  The BROKEN_GL build I did was with make -j2.  Next time I'll do -j4 since I have an i7.  -j4 helps during the compilation phase.  Don't think it helps during linking.
Post Reply Post Reply
#20
RE: Building OSCAR Ubuntu 20.04
The tmp_deb-OSCAR directory that untoutseul05 mentions is created during the package build time. If you run OSCAR right out of the compile folder, you won't create it. - Or if you manually copy the files to somewhere else.
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






Donate to Apnea Board  


Possibly Related Threads...
Thread Author Replies Views Last Post
  cleaning up data folder, ubuntu 18.04 BB63 2 113 07-27-2020, 08:07 PM
Last Post: becker44a
  Oscar installing on Ubuntu 18.04 - problem - please help spioch 5 323 03-31-2020, 03:47 PM
Last Post: spioch
Sad Oscar kills the Ubuntu VM it is running in [solved: bug in VirtualBox, not OSCAR] fredex 1 350 12-16-2019, 08:47 PM
Last Post: fredex
Question OSCAR not building on Linux Manjaro Cattaur 6 602 12-06-2019, 06:07 AM
Last Post: delta
  OSCAR: installation issue with Ubuntu, workaround kencamargo 0 195 12-01-2019, 04:00 PM
Last Post: kencamargo
  Can't import from folder on Ubuntu/Xubuntu 18.04 with DreamStation Auto CPAP Camraithe 1 241 11-10-2019, 06:47 PM
Last Post: Crimson Nape
  Building OSCAR happydreams 12 806 10-17-2019, 08:02 AM
Last Post: fredex


New Posts   Today's Posts






About Apnea Board

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