Skip to content
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

Helloworld example fails on freshly built moddable SDK on Linux Arch x64 #981

Closed
tve opened this issue Dec 13, 2022 · 5 comments
Closed
Labels
fixed - please verify Issue has been fixed. Please verify and close.

Comments

@tve
Copy link
Contributor

tve commented Dec 13, 2022

Build environment: Linux Arch x64
Target device: desktop simulator,

Description
A brief summary of the problem

Steps to Reproduce

  1. Build and install moddable SDK for linux following the instructions, except that on Arch I have to use make SHELL=/usr/bin/dash
  2. Start xsbug
  3. Run mcconfig -d -m -p lin
  4. Observe that xsbug immediately displays a stack trace on readPreferenceString and in its console shows:
/home/sw/moddable/moddable/modules/piu/PC/lin/piuFiles.c (222) # Break: readPreferenceString: No such file or directory!

I'm totally new to the moddable SDK, so most lilely it's me doing something wrong...
image

@andycarle andycarle changed the title Helloworld example fails on freshly built moddable SDK Helloworld example fails on freshly built moddable SDK on Linux Arch x64 Dec 13, 2022
@mkellner
Copy link
Collaborator

Can you try running mcconfig -d -m -p lin a second time?

@tve
Copy link
Contributor Author

tve commented Dec 13, 2022

same result (I'm on Gitter if that's convenient)

@tve
Copy link
Contributor Author

tve commented Dec 13, 2022

So the answer is that I has started xsbug before starting the helloworld example. Stopping xsbug, re-running mcconfig brought up xsbug that without the error.
The getting started instructions kind'a lead to this situation: https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/Moddable%20SDK%20-%20Getting%20Started.md?plain=1#L367-L378

@mkellner
Copy link
Collaborator

I am looking further into the cause of the problem. There should be no problem starting with or without xsbug running (as the build will start xsbug if necessary). I will update this issue when I have more information.

I'm glad you have a workaround for now.

@phoddie
Copy link
Collaborator

phoddie commented Dec 16, 2022

This exception has been quieted.

@phoddie phoddie added the fixed - please verify Issue has been fixed. Please verify and close. label Dec 16, 2022
@phoddie phoddie closed this as completed Dec 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed - please verify Issue has been fixed. Please verify and close.
Projects
None yet
Development

No branches or pull requests

3 participants