Comments (4)
Sorry to hear that it breaks - that being said, it is largely outside my control, so I don't have any useful suggestion I'm afraid.
If I follow correctly, the presence of mapshot mod makes it crash in the xvfb case. Assuming that mapshot is indeed called automatically in that case to create a snapshot, I can imagine it makes sense - calling tons of take_screenshot is more likely to hit rendering corner cases. Though if mapshot is just loaded without issuing a screenshot though it would be weird - the mod basically does nothing in that case.
from mapshot.
Thanks for your notice and advice, I'll try to solve this, will report what I find.
from mapshot.
I tested more on windows and X window in CLI mode, with all other mods removed, similar error and crash log, so I guess it's not caused by xvfb, nor by other mods.
When using mapshot mod in game console, it works correctly.
From the crash log, it seems that it's caused by factorio not being able to reach base mod files in mapshot temporary working dir (CLI mode).
Digging further into crash log and 1.1.36 patch note, I found that it might relate to a bugfix about base mod and --disable-prototype-history:
*Fixed crash when starting game without base mod and with --disable-prototype-history. more
https://forums.factorio.com/98968
So I guess --disable-prototype-history caused factorio failing to reach base mod files in mapshot temporary working dir(CLI mode) after 1.1.36 update.
I tried to remove default "--disable-prototype-history" from mapshot render.go source and rebuild, it worked successfully(albeit much slower) after removing --disable-prototype-history argument.
Still I don't know why factorio cannot reach base mod file in temporary working dir with "--disable-prototype-history" in 1.1.36.
Hope my findings help, thanks for your time.
from mapshot.
That is great, thanks for the investigation, good work!
I don't have time right now to do a proper fix, so for now I've updated the README to refer to your findings & workaround.
I'm not sure what I will do here. Maybe at least I'll add a flag to fiddle with the default parameters - that would allow to work around the issue without having to rebuild.
from mapshot.
Related Issues (20)
- Serve requires factorio binary HOT 2
- Can you also compile your releases to ARM architecture? HOT 1
- Can it support multiple surfaces? (other than nauvis) HOT 12
- Question on running in headless linux server using xvfb HOT 2
- Support listing saves versions from just the static files
- Detect which mod to load
- Suggestion of Steam issue solution HOT 3
- Option ‘disable-audio’ does not exist HOT 2
- Dynamic render resolution HOT 2
- Option ‘disable-prototype-history’ does not exist HOT 2
- Mod incompatibility: allow filtering of mods HOT 3
- Always exits with error? HOT 4
- Hide "flying-text" entities. HOT 1
- Surface setting not used HOT 2
- Should not include pictures of non-generated chunks HOT 1
- Timelapse feature HOT 1
- Mapshot hangs after generating map HOT 5
- Additional Layers HOT 1
- Add delay on render to render flames
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 mapshot.