Comments (5)
The error indicates dereferencing a null pointer and accessing its field at offset 0xc0.
Depending on how RecordWriter
template is instantiated and which constructor of RecordWriter
is called, you might need move constructor and move assignment. Compiler-generated ones might be correct or not, depending on member variables of your class.
You likely need to also override Done
(and call BufferedWriter::Done()
in it), assuming that the stream needs to be closed somehow and that closing it might fail.
FdWriter
might be hard to follow because it derives from FdWriterBase
(for functionality common between FdWriter
template instantiations) and FdWriterCommon
(for functionality common between FdWriterBase
and FdStreamWriterBase
). If you do not need a configurable policy regarding owning the underlying Amazon S3 stream, your class does not have to be a template, so it would look more like FdWriter
+ FdWriterBase
+ FdWriterCommon
flattened. Other aspects of FdWriter
(like dest_fd
, dest
, Reset
) are provided for completeness or efficiency and do not need to be emulated.
If you can show the code, I could try to find the error.
from riegeli.
Thank you for your quick response!
My code is here: https://gist.github.com/CodeArno/d922d50de4bd3624b8750fc2b717fc9d
Other than the line "Initialize for..." from initialize()
nothing gets logged, so it doesn't seem like any of my other methods ever get called.
from riegeli.
The appropriate base class constructor must be called:
RiegeliS3Writer::RiegeliS3Writer(
Aws::S3::S3Client* s3_client, const std::string& bucket_name, const std::string& key_path)
: riegeli::BufferedWriter(riegeli::kDefaultBufferSize),
s3_client_(s3_client), bucket_name_(bucket_name), key_path_(key_path) {
initialize();
}
The default constructor constructs a dummy closed object.
I will think what to do to make it more clear or to let it fail in a more obvious way.
from riegeli.
That did it - everything works now. Thank you so much!
from riegeli.
6d4d59c should make this a tiny bit more helpful.
from riegeli.
Related Issues (20)
- warning: class 'Chunk' was previously declared as a struct HOT 1
- base/buffer.h: Type qualifiers ignored on function return type HOT 1
- Riegeli is incompatible with --incompatible_load_proto_rules_from_bzl HOT 1
- Non-tfrecord build
- import error HOT 4
- build error HOT 1
- build error HOT 4
- Riegeli depends on deprecated target @com_google_protobuf//:cc_wkt_protos
- Build failure with C++17 w/ Clang HOT 1
- Build error: clang w/ c++17 HOT 3
- Any chance of a Java port? HOT 4
- Supporting CMake build HOT 3
- This is very mundane -- how to install (and run bazel..). HOT 3
- The size of float is no diff between double HOT 1
- C++ version failing to build
- bazel build python:build_pip_package fails
- Add release tags, or release to pypi?
- Make Riegeli available as an external Bazel dependency HOT 4
- Expected to work on M1? HOT 3
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 riegeli.