This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Static image not being projected

Hi all,

I was  developing some additional functions of LightCrafter on ubuntu based on "DLP LightCrafter Control Software -5.00". When I clicked the "Static Image/Test Pattern" tab then tested the "Static Image upload", the picture from "CustSeqInput "and "PatSeqImages" are projected properly, but the picture from "StaticImages" can not work. The Status bar just showed "Command Processing" and few seconds later, the whole GUI closed automatically.  I even tested it out without doing any changes to the code after I downloaded the software bundles for linux, the issue still remains.

Thanks in advance.

Martin


 

  • Hi Martin,

    To clarify, are you developing some new functionality for the LightCrafter GUI? If there is some other aspect of the SW you are modifying, please let us know.

    When you say:

    bojing zou said:
    I even tested it out without doing any changes to the code after I downloaded the software bundles for linux

    Do you mean you are running the software without modifying it or rebuilding it? Or are you rebuilding it, without changes, and then running the GUI?

    What version of Ubuntu are you using?

    Thanks,

    Clinton

  • Hi Clinton,

    Actually, I am developing a 3D scanning application which is executable on Ubuntu 12.04 LTS. I just tried to integrate this function into the GUI itself.

    I just run the GUI software directly before I integrate my application inside because it is an executable file called "LightCrafterGUI" .

    Apart from the static image, other image patterns are working fine.

    Thanks

    Martin

  • Hi Martin,

    Thanks for the additional information. I'm working to get an Ubuntu setup so I can test this functionality myself. I'll provide feedback early next week.

    Thanks,

    Clinton

  • Hi Martin,

    I have an Ubuntu machine setup and have tested the Static Image commands with the GUI. I have observed the same behavior you described. I will be investigating why this issue occurs.

    I have also tested the Static Image commands on a Windows machine and confirmed the commands work properly on that system.

    I will provide updates on this issue on this thread. If you have any other feedback, please post it here as well.

    Thanks,

    Clinton

  • HI Clinton,

    Thank you for quick reply. 

    Looking forward the solution for this glitch.

    Martin

  • Hi Martin,

    I've been debugging the GUI code. It appears the issue is in the static image file transfer line of code in the Linux machine (line 1410 in mainwindow.cpp). I've compared this to execution of the same line of code in my Windows 7 machine, which functions properly.

    I don't have a definitive root cause yet, I'm still investigating the issue. I will post more feedback early next week.

    Thanks,

    Clinton

  • Hi Clinton,

    Thanks for the investigation done by now. 

    Martin

  • Hi Martin,

    I wanted to provide an update. I've been stepping through the 'sendFile' function (line 2129 of mainwindow.cpp) to determine how the Linux and Windows programs are executing differently. It seems as though the Qt file operations (open, read, etc.) are functioning slightly differently in the two operating systems.

    The readLen variable, which keeps track of how much more data needs to be sent, is not decrementing in the Linux program. I eventually receive a 'SIGABRT' error, which I believe is due to the system realizing it is in an infinite loop.

    I'll post back more updates as I continue to debug this issue.

    Thanks,

    Clinton