GraalVM windows native-image installation Problem -R:-InstallSegfaultHandler - graalvm

I am try install graalVM to windows machine, but i can`t install native image.
When I enter the command:
gu install native image
I get this error:
Start
[ [ SubstrateSegfaultHandler caught a segfault in thread 0x0000018bf6515a00 ] ]siginfo: ExceptionCode: -1073741819, reading address 0x000000000068eca8Current timestamp: 1664267123021
End
Segfault detected, aborting process. Use runtime option -R:-InstallSegfaultHandler if you don't want to use SubstrateSegfaultHandler.
But when i adding those option, it fals with same error
Example:
gu install native-image -R:-InstallSegfaultHandler

Related

Command failed with a non-zero return code (123)

I am running into an issue when I try to generate a build with electron-packager (npx electron-packager . --platform=win32 --arch=x64). On Windows with intel chip (inside guext linux vm) the same config (package.json) and same command yield a good *.exe application. However, when I try this inside a guest vm Linux on a macOS arm64, I run into :
Command failed with a non-zero return code (123) : wine64 ...
parameters ...
I haven't found an explanation in the wine website. I also looked online but without any luck. I noticed that I don't have wine32 and wine sometimes recommend the installation. Note that the command does not include the ia32 arch.
In any case, I tried the complete reinstallation of wine on a new guest vm (Ubuntu 22.04). After following the step by step from wineHQ website, I run into the same problems, including when I enter the last command :
sudo apt install --install-recommends winehq-stable
Where the error is :
wine-stable:i386 : Depends libc6:i386 (>= 2.34) but it is not
installable
I tried to install this package but to no avail (libc6:i386; no installation candidate), I did follow the answer here and still no candidate. Package replacing it (libdb1-compat libnss-nis libnss-nisplus libcrypt1) were installed but still no luck.
Not all the time, but sometimes, Ubuntu report a crash of wine64 when running npx electron-packager... . In it is possible to find UnreportableReason : You have some obselete package version installed... libcurl4, libsasl2-2, libsasl2-module, libsasl2-modules-db. -> I did upgrade those, but that does not change the result of the electron-package command. In the Stacktrace the backtrace is stopped due to "cannot access memory at address xxxxxxx".
I also tried to move the project folder directly into a locally emulated drive of the Linux vm, but that does not have a different outcome.
Finally, I also tried to remove the option --out, --ico, etc. and ended up just running :
npx electron-packager . --platform=win32 --arch=x64
I am out of idea.

How to setup Rails System Test

I am currently trying to set up some system testing for my rails web application (using Rails version 7.0.3.1)
When running rails test:system to run a single system test I had written, I am getting the below setup-related error
Command '/usr/bin/chromium-browser' requires the chromium snap to be installed.
Please install it with:
snap install chromium
.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/webdrivers-5.0.0/lib/webdrivers/system.rb:190:in `call': Failed to make system call: ["/usr/bin/chromium-browser", "--product-version"] (RuntimeError)
And then, when I try to run
snap install chromium
as suggested by the error I am getting back, I then run into the following error
error: cannot communicate with server: Post http://localhost/v2/snaps/chromium: dial unix /run/snapd.socket: connect: no such file or directory
I am lost as to how to move forward with this issue, which is preventing me from being able to run any system tests. There also seem to not be too many related issues online currently that applied to this case. Any help/ suggestions on where to look to further troubleshoot this error would be greatly appreciated.
Try to install it from the Google, depends on your ubuntu versions:
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
apt install ./google-chrome-stable_current_amd64.deb

./prereqs-ubuntu.sh Error: Ubuntu focal is not supported

I'm trying to use composer and for the same I'm using the below command for installation.
curl -O https://hyperledger.github.io/composer/latest/prereqs-ubuntu.sh
chmod u+x prereqs-ubuntu.sh
These above commands successfully executed.
But when I executed this command (./prereqs-ubuntu.sh) then I'm getting below error
Terminal Throws Error ///Ubuntu focal is not supported
Please help
Hyperledger Composer Installation
I also find this kind of error during Hyperledger Composer installation this problem mainly depends on the Ubuntu version.
Steps to overcome this problem.
upgrade ubuntu version as per your ubuntu versoin please follow:
https://www.fosslinux.com/38303/how-to-upgrade-to-ubuntu-20-04-lts-focal-fossa.htm
open file prereqs-ubuntu.sh with your compatible editor
update line:
#Array of supported versions
declare -a versions=('trusty' 'xenial' 'yakkety', 'bionic');
with
# Array of supported versions
declare -a versions=('trusty' 'xenial' 'yakkety', 'bionic', 'focal');
After saving this file
Run command: ./prereqs-ubuntu.sh
I hope this problem will resolve if anything please feel free to write.

Chromium in Docker throws "Failed to create shared context for virtualization"

I have a debian-based Docker container (the host machine is on Windows 10). It has Chromium installed via apt-get install -y --no-install-recommends chromium.
When I run a test command:
/usr/bin/chromium --headless --disable-gpu --no-sandbox --hide-scrollbars --window-size="1920,1080" --default-background-color=00000000 --hide-scrollbars --disable-features=NetworkService --virtual-time-budget=20000 --screenshot=/tmp/screenshot.png https://www.google.com
it complains saying:
[0916/202547.786718:ERROR:gpu_channel_manager.cc(398)] ContextResult::kFatalFailure: Failed to create shared context for virtualization.
I'm getting the correct screenshot despite the error, but I'd want to get rid of this alert anyway.
Googling didn't help.
I'm sorry, my answer isn't for chromium directly. But for cef (CefGlue), which based on it. I run on linux without gpu (server).
I got exactly same error on cef version 76.1.13.
Thanks to https://github.com/Zenika/alpine-chrome/issues/36#issuecomment-534392761
The reason is flag "--disable-software-rasterizer".
I used it with old version of cef. But for now it cause error.
I see, that you doesn't use this flag, but may be you skip it when ask question?

Ejabberd installation strange issue

OS: Debian 8.1 X64
trying to install eJabberd Community server based on this tutorial
At the end of installation, it pops error message
Error: Error running Post Install Script.
The installation may have not completed correctly
What am I doing wrong?
It looks like /bin/sh is Dash on your system (apparently the default since Debian Squeeze). However, the postinstall.sh script inside the package uses brace expansion, which while widely supported in various shells is not required by the POSIX standard, and thus Dash is not in error by not supporting it. The postinstall.sh script should either specify /bin/bash instead of /bin/sh in its first line, or abstain from using Bash-specific features.
You should be able to get a functioning ejabberd install by explicitly running the postinstall script with Bash:
sudo bash /opt/ejabberd-15.07/bin/postinstall.sh

Resources