Comments (4)
Hello @VorlonCD , thank you for sharing this. Have your tried restarting DeepStack? It appears DeepStack is unable to write its data to the AppData directory. This might be due to something on the windows end, probably an update. Restarting should fix this issue
from deepstack.
Yes, a restart of deepstack always fixes. I've seen 404 and 500 errors after it is running well for some time. I wonder if there is some resiliency that could be built in so the service restarts what it needs to get back on track after the error? A few theories why it might happen - 1) an abrupt disconnect in the middle of processing an image, 2) Windows cleans the TEMP folder and maybe it kills a temp file you expect to see?
from deepstack.
I've also seen the 500 error after running for about 2 days.
from deepstack.
@johnolafenwa - The attached update to detection.py does 2 things:
- Fixes issue where python.exe would crash due to unhanded crash in a FINALLY block
- Outputs actual exception message when the server returns error 500 - error occurred on the server. That way we get to see all the
CUDNN_STATUS_ALLOC_FAILED
andCUDA out of memory
messages back in any program that reads the json ERROR property such as AITOOL. (latest commit, not released yet).
Detail:
I would commonly notice that Deepstack.exe did not have any spawned python.exe's's because they crashed.
As the STDERR.TXT shows:
File "C:\DeepStack\intelligencelayer\shared\detection.py", line 138, in objectdetection
os.remove(img_path)
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\Vorlon\\AppData\\Local\\Temp\\DeepStack\\83e9c5b0-d698-44f3-a8df-d19655d9f7da
So for some reason (perhaps because the temporary image file is still 'in use') the os.remove command here gives that error:
finally:
db.set(req_id, json.dumps(output))
if os.path.exists(img_path):
os.remove(img_path)
And the exception is not caught because it is in a FINALLY block so the py script crashes bubbye.
The solution in the attachment calls a SafeFileDelete function that ignores the exception if it happens.
To use, backup and replace this file with the one in the zip.
C:\DeepStack\intelligencelayer\shared\detection.py
`
from deepstack.
Related Issues (20)
- How to get Age and Gender HOT 1
- How to configure timeout more than 1 minutes? HOT 1
- [Feature Request] The ability to limit/select the CUDA device
- Is it dead, John? HOT 2
- Pythone.exe closing down on start up. HOT 12
- DeepStack stop working ! Python.exe get killed! HOT 1
- Enhance not working on Windows build
- intel-ncs-2
- Making the sharedfiles folder "ignored" breaks the DEV branch HOT 1
- getting error 403 on my smaller image
- API timeout after few hours of no usage HOT 1
- Container high cpu usage on idle
- Download not available Windows 10 CPU or GPU version HOT 6
- Windows download missing HOT 1
- Doc site ssl cert is expired HOT 8
- Doc Site Migration HOT 3
- All the output pt files from custom training has same size
- end of deepstack? HOT 5
- any one could share models
- Run another port except(80)
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 deepstack.