MantisBT - Community
View Issue Details
0027813Community[OCCT] OCCT:Visualizationpublic2016-08-26 14:022016-12-09 16:39
Timo 
mkv 
normalfeature 
closedfixed 
[OCCT] 7.0.0 
[OCCT] 7.1.0[OCCT] 7.1.0 
Not needed
0027813: Visualization - add method V3d_View::DiagnosticInformation() similar to vglinfo command
Would it be possible to put the code of Draw command VGlInfo (see ViewerTest_OpenGlCommands.cxx) or something similar into an API function, so that application code could easily use it?

In this way, information about the OpneGL version,... could be e.g. easily put into an automatically generated bug report of an application and facilitate analysis of errors that are connected to the graphics card.

It would be especially helpful for C# or other wrapper based applications which do not have direct access to OpenGL functions like glGetString.

What do you think about it?

No tags attached.
Issue History
2016-08-26 14:02TimoNew Issue
2016-08-26 14:02TimoAssigned To => kgv
2016-08-26 14:12kgvNote Added: 0057093
2016-08-28 17:18kgvSummaryPut VGlInfo into the API => Visualization - add method V3d_View::DiagnosticInformation() similar to vglinfo command
2016-08-28 17:58gitNote Added: 0057234
2016-08-28 18:01kgvNote Added: 0057235
2016-08-28 18:01kgvAssigned Tokgv => san
2016-08-28 18:01kgvStatusnew => resolved
2016-08-30 16:20kgvAssigned Tosan => apl
2016-08-30 18:44aplNote Added: 0057304
2016-08-30 18:44aplAssigned Toapl => bugmaster
2016-08-30 18:44aplStatusresolved => reviewed
2016-08-30 18:56mkvAssigned Tobugmaster => mkv
2016-08-31 13:03mkvNote Added: 0057326
2016-08-31 13:04mkvNote Added: 0057327
2016-08-31 13:04mkvAssigned Tomkv => kgv
2016-08-31 13:04mkvStatusreviewed => assigned
2016-08-31 21:07gitNote Added: 0057371
2016-08-31 21:07kgvNote Added: 0057372
2016-08-31 21:07kgvAssigned Tokgv => bugmaster
2016-08-31 21:07kgvStatusassigned => resolved
2016-08-31 21:08kgvStatusresolved => reviewed
2016-09-01 14:19mkvAssigned Tobugmaster => mkv
2016-09-01 15:03gitNote Added: 0057390
2016-09-02 13:32mkvNote Added: 0057413
2016-09-02 13:32mkvNote Added: 0057414
2016-09-02 13:32mkvNote Added: 0057415
2016-09-02 13:32mkvAssigned Tomkv => bugmaster
2016-09-02 13:32mkvStatusreviewed => tested
2016-09-02 13:32mkvTest case number => Not needed
2016-09-09 09:40mkvChangeset attached => occt master 26d9c835
2016-09-09 09:40mkvAssigned Tobugmaster => mkv
2016-09-09 09:40mkvStatustested => verified
2016-09-09 09:40mkvResolutionopen => fixed
2016-10-28 21:48gitNote Added: 0059571
2016-12-09 16:30aivStatusverified => closed
2016-12-09 16:39aivFixed in Version => 7.1.0

Notes
(0057093)
kgv   
2016-08-26 14:12   
> It would be especially helpful for C# or other wrapper based applications
> which do not have direct access to OpenGL functions like glGetString.
It is possible to do this in C# application - we have already did this before.
But I agree that it will be much better and simpler to have this information through indirect API from OCCT.
(0057234)
git   
2016-08-28 17:58   
Branch CR27813 has been created by kgv.

SHA-1: ab0827fbddd7aa93ea937e8ce1b5e89a6fd4a4f5


Detailed log of new commits:

Author: kgv
Date: Thu Aug 25 22:22:35 2016 +0300

    0027813: Visualization - add method V3d_View::DiagnosticInformation() similar to vglinfo command
    
    New method V3d_View::DiagnosticInformation() has been introduced
    providing the access to low-level OpenGL context information
    for diagnostic automated reports or displaying in application About System.
(0057235)
kgv   
2016-08-28 18:01   
Patch is ready for review.
(0057304)
apl   
2016-08-30 18:44   
Dear bugmaster,

The patch has been reviewed. Please test.
(0057326)
mkv   
2016-08-31 13:03   
Dear BugMaster,
Branch CR27813 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms on Release mode.
SHA-1: ab0827fbddd7aa93ea937e8ce1b5e89a6fd4a4f5

There are following compilation errors:
Linux:
http://jenkins-test-07.nnov.opencascade.com:8080/view/CR27813-master/job/CR27813-master-OCCT-Debian70-64-opt-compile/1/parsed_console/ [^]
/dn54/builds/CR27813-master/Debian70-64-opt/OCCT/src/OpenGl/OpenGl_Context.cxx:2529:67: error: ambiguous overload for ‘operator+’ in ‘TCollection_AsciiString() + aVMemMiB’

MacOS:
http://jenkins-test-07.nnov.opencascade.com:8080/view/CR27813-master/job/CR27813-master-OCCT-MacOS-opt-compile/1/parsed_console/ [^]
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Icons.h:179:32: error: use of undeclared identifier 'IconGetterProcPtr'
...
(0057327)
mkv   
2016-08-31 13:04   
Dear kgv,
Branch CR27813 has been rejected due to:
- compilation errors
(0057371)
git   
2016-08-31 21:07   
Branch CR27813 has been updated forcibly by kgv.

SHA-1: 1dacfe5ca827f9fe332b1311d3d81fa6b736e8d2
(0057372)
kgv   
2016-08-31 21:07   
Please check updated branch.
(0057390)
git   
2016-09-01 15:03   
Branch CR27813 has been updated forcibly by mkv.

SHA-1: 26d9c83516ab1bc077697ea795be29fa5b049c24
(0057413)
mkv   
2016-09-02 13:32   
Dear BugMaster,
Branch CR27813 was rebased on IR-2016-09-01 of occt git-repository.
(0057414)
mkv   
2016-09-02 13:32   
Dear BugMaster,
Branch CR27813 from occt git-repository (and IR-2016-09-01 from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested on Release mode.
SHA-1: 26d9c83516ab1bc077697ea795be29fa5b049c24

Number of compiler warnings:

occt component :
Linux: 0 (0 on master)
Windows: 0 (0 on master)
MacOS : 0 (0 on master)

products component :
Linux: 64 (64 on master)
Windows: 0 (0 on master)
MacOS : 1135

Regressions/Differences/Improvements:
No regressions/differences

Testing cases:
Not needed

Testing on Linux:
occt component :
Total MEMORY difference: 89831781 / 89472953 [+0.40%]
Total CPU difference: 19336.269999999946 / 19241.090000000015 [+0.49%]
products component :
Total MEMORY difference: 30002480 / 29985574 [+0.06%]
Total CPU difference: 5075.209999999989 / 5115.309999999973 [-0.78%]

Testing on Windows:
occt component :
Total MEMORY difference: 57147628 / 57155154 [-0.01%]
Total CPU difference: 18283.832003298834 / 18057.115749998855 [+1.26%]
products component :
Total MEMORY difference: 21260692 / 21225231 [+0.17%]
Total CPU difference: 4903.5638328999485 / 4849.119483899957 [+1.12%]

There are no differences in images found by testdiff.
(0057415)
mkv   
2016-09-02 13:32   
Dear BugMaster,
Branch CR27813 is TESTED.
(0059571)
git   
2016-10-28 21:48   
Branch CR27813 has been deleted by kgv.

SHA-1: 26d9c83516ab1bc077697ea795be29fa5b049c24