Comments (10)
Thanks for the report, the issue has been already fixed.
from draco.
Would be nice to get credit, you didn't fix it until I posted the pull request!
from draco.
Yes. @ondys, you should in future give credit where due. @rtoepfer's pull request, which he submitted yesterday, contains this patch for io/mesh_io.h
:
// Determine size of stream and write into a vector
auto is_size = is.tellg();
is.seekg(0, std::ios::end);
- is_size = is.tellg() - is_size;
- is.seekg(0, std::ios::beg);
- std::vector<char> data(is_size);
- is.read(&data[0], is_size);
+ auto vec_size = is.tellg() - is_size;
+ is.seekg(0, is_size);
+ std::vector<char> data(vec_size);
+ is.read(&data[0], vec_size);
Your diff to same, which you wrote half an hour ago, contains what appears to be a rewrite of his patch:
// Determine size of stream and write into a vector
- auto is_size = is.tellg();
+ const auto start_pos = is.tellg();
is.seekg(0, std::ios::end);
- is_size = is.tellg() - is_size;
- is.seekg(0, std::ios::beg);
+ const std::streampos is_size = is.tellg() - start_pos;
+ is.seekg(start_pos);
std::vector<char> data(is_size);
is.read(&data[0], is_size);
Not cool.
from draco.
It has been actually fixed internally shortly after the report yesterday. It just takes time to propagate the changes to the public repo. In any case, we definitely welcome any external pull requests and we will be happy to merge them as long as they don't conflict with our internal fixes.
from draco.
To be clear, you wrote:
has been actually fixed internally shortly after the report
Did you mean to say "shortly before"? Or did the fix take place after the report, but before you had a chance to read the report?
from draco.
Shortly after. We monitor the issue tracker and any reported bugs are fixed internally first and then they are pushed to the public repo (usually we do the final push only after sufficient number of changes accumulate, unless the fix is considered critical). Note that the pull request in question was posted after about one day after the actual report.
from draco.
from draco.
@ondys are you guys planning to eventually do all development in the open? Otherwise there will be such cases of duplicated work, which discourages contributions.
from draco.
@waldyrious we may eventually move it to open but we don't plan to do it in the near future. To reduce the chance of duplicate work, we will do our best to write a note on issues when they are picked up by internal developers.
from draco.
Understood -- thanks for the clarification.
from draco.
Related Issues (20)
- obj_encoder functions produce invalid OBJ files when using a non-english numeric locale HOT 2
- Tests fail on 32 bit systems HOT 1
- FileReaderFactory not reading files HOT 3
- WASM integration information HOT 1
- [ANN] git default branch change: master -> main HOT 1
- OSS-Fuzz issue 65877 HOT 1
- OSS-Fuzz issue 65986
- OSS-Fuzz issue 65989 HOT 1
- OSS-Fuzz issue 66259
- Compilation Error Involving StatusOr and Status Classes in Draco Library HOT 2
- Gstatic, CDNs, and per-domain caching policy HOT 1
- Download links are broken HOT 1
- Support for quads HOT 1
- C++ Documentation Improvement
- Severity Code Description The project file line does not display status Error C2440 "Initialize" : Unable to transfer from "void *" to "tinygltf: : GetFileSizeFunction draco_decoder F: \ resource \ Draco - 1.5.6 \ SRC \ Draco \ IO \ gltf_decoder.cc 489 HOT 2
- Optimizing 3D data with Draco Geometry Compression HOT 1
- Android Studio Build Error
- tex_coord data has no compression
- A problem about pointcloudsequentialencoder HOT 1
- I failed to compress the downsampled point cloud file with draco_encoder. HOT 1
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 draco.