Comments (3)
I've been trying to chase this one down for a while now as well:
https://forum.image.sc/t/imagej-tensorflow-now-with-command-to-change-tensorflow-library-version-switch-to-gpu/31744/24?u=markkitt
from imagej-launcher.
My theory is that something is getting confused by the inconsistent use of slashes and backslashes. What's strange is that some are reporting that this could be dependent on the shell / command prompt. There is also possible environment variable involvement.
Regarding environment variable involvement we are using putenv
:
imagej-launcher/src/main/c/platform.c
Line 701 in 47befcb
This is actually deprecated:
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/putenv?view=msvc-170
_putenv_s
is preferred with regard to the C Runtime:
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/putenv-wputenv?view=msvc-170
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/putenv-s-wputenv-s?view=msvc-170
The problem with Windows is that there is often more than one C Runtime (CRT) lying around. What we really want to do is set it for the entire process tree. In that case we may want to use
SetEnvironmentVariable
and GetEnvironmentVariable
from the Win32 API:
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-setenvironmentvariable
The blocker for me in solving this is that I cannot reproduce the issue yet.
from imagej-launcher.
Can someone figure out how to reproduce the issue?
from imagej-launcher.
Related Issues (20)
- JRE not detected on linux64 HOT 3
- Build fails on Ubuntu 20.04 HOT 2
- Fiji icon in the launcher HOT 5
- Issues with JBR SDK HOT 15
- "Falling back to system Java" rather than dynamic linking on macOS
- ImageJ 1.x's ImageJ.cfg is not fully supported HOT 4
- Centralize Firewall Requirements HOT 2
- Re-consider Linux subdirs for JRE HOT 6
- Tests need to consider upgrade paths, not just fresh bundles HOT 1
- Make --console work without --headless HOT 1
- Universal (x86/arm64) launcher for Mac OS HOT 32
- Console error message on Big Sur upon startup
- XInitThreads is not called in imagej-launcher for linux64 HOT 11
- Fix GitHub Actions CI to build and deploy cross-platform
- net.imagej:imagej-launcher:LATEST download links are wrong
- imagej-launcher 6.0.2 fails with Java 11 on Ubuntu HOT 2
- imagej-launcher --version crashes (v6.0.2)
- Try replacing this project with ijp-imagej-launcher HOT 3
- Launcher on windows with java 11+ doesn't work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagej-launcher.