-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile S3 projects #74
Comments
Unable to reproduce the error. The compiler logs are inconclusive. |
I just tested this in v1.3.477 and I was able to reproduce it |
Can you attach the project svg file so we can test it on a dev box? We need to find the root cause for the intermittent performance on S3 projects. |
Check the C libraries. I used a custom block in a ActivityBoard project to
invoke #include "s3.h", and that caused it to generate the error...
…On Wed, Aug 28, 2019 at 5:34 PM Jim Ewald ***@***.***> wrote:
Can you attach the project svg file so we can test it on a dev box? We
need to find the root cause for the intermittent performance on S3 projects.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=AEWSVOE655ZGFU4TOISWK6DQG4KRDA5CNFSM4IQO7UI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5M3SII#issuecomment-525973793>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEWSVOBSCXLTACBY76QHXTDQG4KRDANCNFSM4IQO7UIQ>
.
|
I'm sorry but I am not connecting the dots here. This issue only occurs with S3 board type. All other board types, including the Activity Board, do not exhibit this error. What exactly is it that we are looking for in the C libraries? |
Start with a new Activity Board project. Add any block to make a project
that compiles to test it. Then, add a custom code block. In the includes
field, add:
#include "s3.h"
Try compiling again.
…On Wed, Aug 28, 2019, 7:05 PM Jim Ewald ***@***.***> wrote:
I'm sorry but I am not connecting the dots here. This issue only occurs
with S3 board type. All other board types, including the Activity Board, do
not exhibit this error. What exactly is it that we are looking for in the C
libraries?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=AEWSVOADAFAARJZEO3VL3Y3QG4VHNA5CNFSM4IQO7UI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5M7WEY#issuecomment-525990675>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEWSVOCMEE6LYTJ2J57Z5K3QG4VHNANCNFSM4IQO7UIQ>
.
|
Which system are you using when you see this error? For example, the svg file runs without error on my dev system but not on production Solo. To be transparent, I have been working to clean up the code on the compiler system and may have inadvertently corrected whatever is triggering the 500 error. It would also be helpful to know exactly what is being sent to the compiler server. The URL including any query strings, and the request body. |
Sllo and my local dev
…On Thu, Aug 29, 2019, 10:01 AM Jim Ewald ***@***.***> wrote:
Which system are you using when you see this error? For example, the svg
file runs without error on my dev system but not on production Solo. To be
transparent, I have been working to clean up the code on the compiler
system and may have inadvertently corrected whatever is triggering the 500
error.
It would also be helpful to know exactly what is being sent to the
compiler server. The URL including any query strings, and the request body.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=AEWSVOFVO5AUKB74MI77QX3QG76HDA5CNFSM4IQO7UI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5PFAXY#issuecomment-526274655>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEWSVOBQIA4BQOHGYY7YCK3QG76HDANCNFSM4IQO7UIQ>
.
|
The problem appears to the in the S3 header file.
|
I don't see anything in the s3.h file that might trigger the decode. I am deploying an update to the cloud compiler that will provide more details in this area of the code. |
I can confirm that the issue is in Simple Libraries. Version 1.4.122 does not exhibit the issue. Version 1.4.131 does exhibit the issue. I have an older version of the library on my dev system, which is why it was working there and not in the production system. I am going to open an issue over in the Simple Libraries repo and leave this issue open until it is resolved. |
Strange. As far as I know, the s3 library has not been changed. Is it
possible that the file is corrupted? If so, a recompile should just fix
it. Or just replace the .a and .h with the previous version...
…On Thu, Aug 29, 2019, 7:03 PM Jim Ewald ***@***.***> wrote:
I can confirm that the issue is in Simple Libraries. Version 1.4.122 does
not exhibit the issue. Version 1.4.131 does exhibit the issue. I have an
older version of the library on my dev system, which is why it was working
there and not in the production system.
I am going to open an issue over in the Simple Libraries repo and leave
this issue open until it is resolved.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#74?email_source=notifications&email_token=AEWSVOF3YKTUYAN2DPLUSBDQHB5YLA5CNFSM4IQO7UI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5QKBOQ#issuecomment-526426298>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AEWSVOHHKPAOUT4X2UYG5ETQHB5YLANCNFSM4IQO7UIQ>
.
|
The file open function in Python 3 is, as a default, quite strict about the characters it will accept when the file is open in it's default text mode. This same code worked successfully in Python 2.7. A more complete explanation is available in the parallaxinc/Simple-Libraries#200 issue. I updated the code in the cloud compiler to accept the full Latin-1 character set and it now is able to parse the s3.h file successfully. |
In 1.3.477, I can verify that S3 programs compile with one exception: the factory reset/restore S3 demo block returns this error: Compile... Aw snap. A server error 500 has been detected. This may in fact be a separate issue, if the error is actually a missing binary called in the generated C code: // ------ Libraries and Definitions ------ // ------ Main Program ------ } |
I am not able to reproduce this error on Solo or in my dev environment. The compiler reports that the binary was successfully delivered to the client browser. Perhaps I need to actually have an S3 plugged in first? |
I found an event in the compiler logs that indicates that the demo init binary is not getting bundled into the Docker container. I'm investigating that now. |
I updated the Cloud Compiler to include the missing S3 demo initialization binary. I'm not sure how that was omitted initially. Can someone in possession of an S3 retry the demo init routine to verify that this works as expected now? |
Hard-cleared my Chrome cache, restarted my computer, and re-tested with actual S3 connected to my reawakened computer:
So while the presence of that binary is necessary of course, there is still something else afoot. |
Thanks for that feedback. Once the binary was made available, the compiler had an issue in converting the binary file to a json object. This is another artifact of migrating from Python2 to 3. The latest version of the compiler (v1.3.7) addresses this error. Let's test this again and verify that I have it right this time. |
That did the trick! Restore block is working now also. |
Compiling any S3 program fails with a generic server 500 error message. Project for all other board type appear to compile without incident.
The text was updated successfully, but these errors were encountered: