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

Interactive mode does not load on Windows 10 #288

Closed
WeeknightMVP opened this issue Jul 10, 2018 · 11 comments
Closed

Interactive mode does not load on Windows 10 #288

WeeknightMVP opened this issue Jul 10, 2018 · 11 comments
Assignees
Labels
priority High-priority issues type: bug Issues reporting bugs or unexpected/unwanted behavior
Milestone

Comments

@WeeknightMVP
Copy link

> saw
 saw: <stdout>: commitBuffer: invalid argument (invalid character)
> saw -I
 saw: <stdout>: commitBuffer: invalid argument (invalid character)
@atomb
Copy link
Contributor

atomb commented Jul 11, 2018

Do you know if this is also true for Cryptol? If not, that'll narrow down what might be going wrong.

@WeeknightMVP
Copy link
Author

The cryptol binary included with SAW runs fine (disregarding alternative interpretation of the splash logo):

> cryptol
ΓöÅΓöüΓò╕ΓöÅΓöüΓöôΓò╗ Γò╗ΓöÅΓöüΓöôΓò║Γö│Γò╕ΓöÅΓöüΓöôΓò╗
Γöâ  ΓöúΓö│Γö¢ΓöùΓö│Γö¢ΓöúΓöüΓö¢ Γöâ Γöâ ΓöâΓöâ
ΓöùΓöüΓò╕Γò╣ΓöùΓò╕ Γò╣ Γò╣   Γò╣ ΓöùΓöüΓö¢ΓöùΓöüΓò╕
version 2.5.0 (9597082)

Loading module Cryptol
Cryptol> _

@atomb
Copy link
Contributor

atomb commented Jul 12, 2018

Good to know! So is the failure you're observing with standalone Cryptol using the 2.5.0 release? If so, the upcoming 2.6.0 release should fix the problem.

@WeeknightMVP
Copy link
Author

The standalone Cryptol binary and the Cryptol binary included with SAW both run with no error. The behavior occurs with the SAW binary, not Cryptol.

@atomb
Copy link
Contributor

atomb commented Jul 12, 2018

Ah, right! Thinko on my part.

@atomb atomb added this to the 0.3 milestone Aug 8, 2018
@eddywestbrook
Copy link
Contributor

The fix is to run the following command in the windows shell:

> chcp.com 65001

This sets the Windows shell to use code page 65001, i.e., to use UTF-8. It should also fix the garbled SAW splash screen as well.

The question is then: how do we incorporate this into SAW, so the user doesn't have to do this manually?

For more info, look here:

https://stackoverflow.com/questions/27616611/run-time-exception-when-attempting-to-print-a-unicode-character/27622364#27622364

https://stackoverflow.com/questions/25373116/how-can-i-set-my-ghci-prompt-to-a-lambda-character-on-windows

@WeeknightMVP
Copy link
Author

Thanks! Running Cryptol after this command now shows the expected pretext:

> chcp.com 65001
Active code page: 65001
> cryptol
┏━╸┏━┓╻ ╻┏━┓╺┳╸┏━┓╻
┃  ┣┳┛┗┳┛┣━┛ ┃ ┃ ┃┃
┗━╸╹┗╸ ╹ ╹   ╹ ┗━┛┗━╸
version 2.6.1 (0d0eb2c)

Loading module Cryptol
Cryptol>

However, on multiple Windows 10 workspaces when trying to start recent nightlies of SAW in any mode, not just interactive, since mid-July or so, instead of a commitBuffer error, a system error window displays "The code execution cannot proceed because libstdc++-6.dll was not found. Reinstalling the program may fix this problem." Looks like you're already addressing this with recent commits.

@atomb
Copy link
Contributor

atomb commented Sep 18, 2018

Oh, nice, that's a much more informative error than we were getting! On our Window machines, it was just quitting without any message, with exit code 127. It took a while to track it down to libstdc++-6.dll, and even so we haven't quite resolved it yet. We're working on it, though.

@weaversa
Copy link
Contributor

weaversa commented Oct 3, 2018

I am having this same problem. Can't run SAW on Windows 10.

@atomb
Copy link
Contributor

atomb commented Oct 3, 2018

Yeah, it does seem to not be working at all on Windows since we pulled in the latest version of ABC, which now depends on libstdc++. Getting that to link statically has been a challenge. We're working on it, but don't yet know quite how to solve it.

@atomb atomb added priority High-priority issues and removed priority High-priority issues labels Apr 1, 2019
@atomb atomb removed this from the 0.3 milestone May 21, 2019
@atomb atomb added this to the 1.0 milestone Jun 4, 2019
@atomb atomb modified the milestones: 1.0, 0.4 Oct 1, 2019
@atomb atomb modified the milestones: 0.4, 1.0 Oct 14, 2019
@atomb atomb modified the milestones: 0.5, 0.6 Mar 31, 2020
@atomb atomb modified the milestones: 0.6, 0.7 Aug 13, 2020
@atomb atomb self-assigned this Oct 16, 2020
@atomb atomb modified the milestones: 0.7, 0.8 Dec 1, 2020
@atomb atomb added the type: bug Issues reporting bugs or unexpected/unwanted behavior label Mar 26, 2021
@atomb atomb modified the milestones: 0.8, 0.9 Apr 1, 2021
@atomb
Copy link
Contributor

atomb commented Oct 6, 2021

The SAW REPL will now run on Windows again. In cases where color or Unicode output causes problems, the --no-color flag should allow it to start up.

atomb pushed a commit that referenced this issue Oct 6, 2021
@atomb atomb closed this as completed in 43b72e1 Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority High-priority issues type: bug Issues reporting bugs or unexpected/unwanted behavior
Projects
None yet
Development

No branches or pull requests

5 participants