Comments (5)
Hey I'm in luck, one of the contributors figured it out. goccy/go-json#350
However in looking at the go-json/issues I notice a few other panic issues. So I'm also going to institute a panic fallback to the standard library. It is going to make noticing this harder since dsq hides logs by default and even if it didn't you likely wouldn't look at logs if the program was successful.
But the most important thing is not crashing on valid input.
from dsq.
This originally showed up when I switched from 0.5.0 to 0.6.0 (and all later versions), and the commits between 0.5.0 and 0.6.0 make me think that the issue is probably further upstream in github.com/goccy/go-json, as that is a new dependency added to the go.mod
file.
from dsq.
Yeah the panic is in that library but while I can reproduce it inside of dsq and DataStation I cannot reproduce it using the library alone (even though it's hard to understand how it's a purely datastation/dsq bug). So I can't make a good issue for goccy/go-json yet.
I can't spend much more time debugging this at the moment. If Arch users mention this panic I'm going to suggest they download an official binary instead of the Arch one since -buildmode=pie is not supported at the moment (although I'd like to support it in the future).
I'd welcome any fixes/suggestions anyone has to fix this here or in goccy/go-json.
from dsq.
Also posted it on Reddit to see if anything about this sounded familiar to others: https://www.reddit.com/r/golang/comments/th2p4y/runtime_panic_when_accessing_global_variable_only/.
from dsq.
Alright 0.8.1 is out now with the fix.
from dsq.
Related Issues (20)
- Running dsq in interactive modes more than once on the same file results in an error
- quick aside and pointer to new benchmark
- `GLIBC_2.28' not foun on Ubuntu 16.04 HOT 1
- table "t_0" already exists on Windows 10 HOT 3
- Support CSV format output HOT 1
- Search multiple files HOT 1
- UserError Path enters non-object
- can't install dsp. HOT 1
- dsq failed to recognize nested field, if its parent object absents in some records HOT 3
- dsq --schema missing array in 11GB file HOT 2
- deprecated INT96 timestamp not supported for older Parquet files
- support csv files with no header HOT 1
- Can't run SQL on log files. HOT 5
- Excel sheet2 also show sheet1 data, not only sheet2 HOT 1
- add https://github.com/liquidaty/zsv to the benchmark comparison
- Issue with pretty print HOT 1
- dsq-win32-x64-v0.22.0.zip is virus infected ? HOT 1
- The result is wrong when I loading a JSON file with path specified
- Error querying empty json file
- panic: runtime error: index out of range [2] with length 2 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 dsq.