SaschaWillems / glCapsViewer

C++ port of the OpenGL hardware capability viewer
GNU Lesser General Public License v3.0
103 stars 28 forks source link

Submitting report doesn't seem to work from Linux #11

Closed mmozeiko closed 1 year ago

mmozeiko commented 8 years ago

I've build glCapsViewer on ArchLinux and it shows that "Device not yet present in database". Then I'm trying to use Upload, and it seems to succeed - at least it shows success in "Report submitted" popup. But I cannot find my submission in http://opengl.gpuinfo.org/ list. I did also submit report using Windows precompiled binary from https://github.com/SaschaWillems/glCapsViewer/releases/ and that seems to show up in the list (http://opengl.gpuinfo.org/gl_generatereport.php?reportID=1235).

Any idea why submission from ArchLinux doesn't work?

SaschaWillems commented 8 years ago

Just saw this. I get an E-Mail if a new report is submitted, and the ones you submitted didn't show a valid report ID. So I guess the upload script isn't able to convert the report from the xml uploaded. Can you export the xml from the version you've built for ArchLinux and put it up somewhere (maybe on gist)? That way I can check with my development database why it isn't uploading correct.

mmozeiko commented 8 years ago

Here you go: https://gist.github.com/mmozeiko/ee40f7e158678307dfa6

jozefkucia commented 8 years ago

FWIW I have encountered exactly the same issue.

SaschaWillems commented 8 years ago

Just saw a few mails that hinted at Linux reports not getting uploaded.

@jozefkucia: Can you attach the report that failed to upload?

jozefkucia commented 8 years ago

I've uploaded the report to pastebin: http://pastebin.com/raw/4wEUtr2x

SaschaWillems commented 8 years ago

Thx. The error is probably caused by these:

GL_MAX_COMPUTE_WORK_GROUP_COUNT[0]

and

GL_MAX_COMPUTE_WORK_GROUP_SIZE[0]

For backwards compatibility with the existing application not compiled from source, the database columns for the first dimension of these are lacking the [0].

Before renaming these I'll have to do a new release of the capsviewer.

My (private) schedule is pretty tight right now, so I can't tell when I'll be able to squeeze this in. I'll try to fit it in sometime this weekend.

SaschaWillems commented 8 years ago

I had to do some client and server-side fixing, but it should work now. I have released updated versions for Windows and Linux, and could upload reports from both, so please test again.

mmozeiko commented 8 years ago

I've built latest version on ArchLinux, and upload fails with this error:

The report could not be uploaded : 
Unknown column 'GL_MAX_COMPUTE_WORK_GROUP_COUNT' in 'field list'

Here's xml report: https://gist.github.com/mmozeiko/10a1293560785245526c6a1665df2336

SaschaWillems commented 8 years ago

I see, it still has the GL_MAX_COMPUTE_WORK_GROUP_COUNT in there, but this shouldn't be the case. Gonna check this.

SaschaWillems commented 8 years ago

@mmozeiko: Can you please check the capslist.xml for this block:

<category name="GL_ARB_compute_shader">
    <requirements extension="GL_ARB_compute_shader" version=""/>
    <cap name="GL_MAX_COMPUTE_SHARED_MEMORY_SIZE" enum="0x8262" type="glint" components="1" />
    <cap name="GL_MAX_COMPUTE_UNIFORM_COMPONENTS" enum="0x8263" type="glint" components="1" />
    <cap name="GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS" enum="0x8264" type="glint" components="1" />
    <cap name="GL_MAX_COMPUTE_ATOMIC_COUNTERS" enum="0x8265" type="glint" components="1" />
    <cap name="GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS" enum="0x8266" type="glint" components="1" />
    <cap name="GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS" enum="0x90EB" type="glint" components="1" />
    <cap name="GL_MAX_COMPUTE_UNIFORM_BLOCKS" enum="0x91BB" type="glint" components="1" />
    <cap name="GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS" enum="0x91BC" type="glint" components="1" />
    <cap name="GL_MAX_COMPUTE_IMAGE_UNIFORMS" enum="0x91BD" type="glint" components="1" />
    <cap name="GL_MAX_COMPUTE_WORK_GROUP_COUNT" enum="0x91BE" type="glintindex" components="3" />
    <cap name="GL_MAX_COMPUTE_WORK_GROUP_SIZE" enum="0x91BF" type="glintindex" components="3" />
</category> 

There should be only one GL_MAX_COMPUTE_WORK_GROUP_COUNT and GL_MAX_COMPUTE_WORK_GROUP_SIZE both with three components.

mmozeiko commented 8 years ago

Yes, I have it exactly like that (showing with line numbers):

203     <category name="GL_ARB_compute_shader">
204         <requirements extension="GL_ARB_compute_shader" version=""/>
205         <cap name="GL_MAX_COMPUTE_SHARED_MEMORY_SIZE" enum="0x8262" type="glint" components="1" />
206         <cap name="GL_MAX_COMPUTE_UNIFORM_COMPONENTS" enum="0x8263" type="glint" components="1" />
207         <cap name="GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS" enum="0x8264" type="glint" components="1" />
208         <cap name="GL_MAX_COMPUTE_ATOMIC_COUNTERS" enum="0x8265" type="glint" components="1" />
209         <cap name="GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS" enum="0x8266" type="glint" components="1" />
210         <cap name="GL_MAX_COMPUTE_WORK_GROUP_INVOCATIONS" enum="0x90EB" type="glint" components="1" />
211         <cap name="GL_MAX_COMPUTE_UNIFORM_BLOCKS" enum="0x91BB" type="glint" components="1" />
212         <cap name="GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS" enum="0x91BC" type="glint" components="1" />
213         <cap name="GL_MAX_COMPUTE_IMAGE_UNIFORMS" enum="0x91BD" type="glint" components="1" />
214         <cap name="GL_MAX_COMPUTE_WORK_GROUP_COUNT" enum="0x91BE" type="glintindex" components="3" />
215         <cap name="GL_MAX_COMPUTE_WORK_GROUP_SIZE" enum="0x91BF" type="glintindex" components="3" />
216     </category>
HorstBaerbel commented 7 years ago

Uploading does not work on the current Win32 release version either.

SaschaWillems commented 7 years ago

What error message do you get? The last windows report submitted is only a few hours old.

And can you save the report do disk and upload somewhere so I can take a look at it?

mmozeiko commented 7 years ago

It was not working for me before, but now it works fine. Before I was getting error similar to one here (first comment): https://aur.archlinux.org/packages/vulkan-caps-viewer Something about permission denied when calling move_uploaded_file on server.

HorstBaerbel commented 7 years ago

The error message is: "The report could not be uploaded". I'm connected through the internet through a VPN tunnel, if that matters. Here's the xml. GitHub won't let me upload it as zip, why. ever...

SaschaWillems commented 1 year ago

Closing due to inactivity. If the issue still persists, feel free to open a new issue.