bpcs icon indicating copy to clipboard operation
bpcs copied to clipboard

AssertionError if the grids are between 2 and 64 grids (refer to previous issue)

Open aquamarine01 opened this issue 2 years ago • 4 comments

Good day Sir, sorry to bother you again. I am currently experimenting with both your repo and a repo i found on the previous (currently active) issue by Pekai-tan.

This repo is fine and working well if the message grids are either 1 grid or more than 64 grids, and repo by Pekai-tan only working if the message grids are between 2 and 64 grids and if more than that, the decoded message will be null.

I wonder if there is a way to make it work well without the message grids problem.

Again, sorry to bother you again Sir

aquamarine01 avatar May 05 '23 13:05 aquamarine01

Also i want to know the cause of the problem. The error log only shows AssertionError without any detailed information, so I cannot figure it out

aquamarine01 avatar May 05 '23 13:05 aquamarine01

Could you include a working example that shows the error you're getting, including the stack trace? That would help me reproduce and then I could figure out what's going wrong

mobeets avatar May 15 '23 13:05 mobeets

Let's say i have a file that has 15 grids of message, If i use this library, there will be "AssertionError" error since the message grids are bigger than 2 grids and smaller than 64 grids. But if the file has 128 grids, there will be no error.

here is the screenshot of the error (sorry if i did some editing on your code, because i want to see it without stacking alert log for simpler view and do some translations too) image

aquamarine01 avatar Jun 21 '23 12:06 aquamarine01

As for the library that is on previous issue.

Let's assume we have the same case, that i have 15 message grids. The library works well because the message grids are more than 2 grids and less than 64 grids. But if the message grids are either 1 grid or more than 64 grids (for example: 128 grids), it does not work well. There is no error log, no sign of error on run, it just gives an output of file that has nothing in it (in my case, i use txt file)

aquamarine01 avatar Jun 21 '23 12:06 aquamarine01