Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Bug #11

Open
hez2010 opened this issue May 1, 2019 · 2 comments
Open

Internal Bug #11

hez2010 opened this issue May 1, 2019 · 2 comments

Comments

@hez2010
Copy link

hez2010 commented May 1, 2019

I use SimdJsonSharp.Managed.

Exception has occurred: CLR/System.InvalidOperationException
An unhandled exception of type 'System.InvalidOperationException' occurred in SimdJsonSharp.Managed.dll: 'Internal bug'
   at SimdJsonSharp.stage1_find_marks.find_structural_bits(Byte* buf, UInt64 len, ParsedJson pj)
   at SimdJsonSharp.SimdJson.JsonParse(Byte* jsonData, UInt64 length, ParsedJson pj, Boolean reallocIfNeeded)
   at SimdJsonSharp.SimdJson.ParseJson(Byte* jsonData, Int32 length, Boolean reallocIfNeeded)
   at JsonTest.Program.Main(String[] args) in c:\Users\hez20\Desktop\JsonTest\Program.cs:line 14

test code:

using System;
using System.Text;
using SimdJsonSharp;

namespace JsonTest
{
    class Program
    {
        static unsafe void Main(string[] args)
        {
            var p = Encoding.UTF8.GetBytes("{\"test\": 1}");
            fixed (byte* ptr = p)
            {
                var json = SimdJson.ParseJson(ptr, p.Length);
            }
            return;
        }
    }
}
@EgorBo
Copy link
Owner

EgorBo commented May 26, 2019

Doesn't reproduce on SimdJsonSharp.Bindings 1.7.0. (SimdJsonN).
The managed bindings are out of date a bit.

@valentk777
Copy link

Cannot reproduce on Managed as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants