panic alloc string #10

Open
opened 2024-07-25 17:42:28 +02:00 by cscherrNT · 2 comments
Collaborator
$ cargo run --bin wordlebench -r -- -w ger -n 2500
    Finished `release` profile [optimized] target(s) in 0.06s
     Running `target/release/wordlebench -w ger -n 2500`
2024-07-25T15:40:07.105296Z  INFO using naive solver
2024-07-25T15:40:07.105336Z  INFO using 16 threads for benchmarking
thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29:
assertion failed: self.is_char_boundary(n)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I assume that we tried to allocate too much memory?

```bash $ cargo run --bin wordlebench -r -- -w ger -n 2500 Finished `release` profile [optimized] target(s) in 0.06s Running `target/release/wordlebench -w ger -n 2500` 2024-07-25T15:40:07.105296Z INFO using naive solver 2024-07-25T15:40:07.105336Z INFO using 16 threads for benchmarking thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29: assertion failed: self.is_char_boundary(n) note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` I assume that we tried to allocate too much memory?
cscherrNT added the
Kind/Bug
Priority
Medium
Reviewed
Confirmed
labels 2024-07-25 17:42:28 +02:00
Author
Collaborator

does not happen with the english builtin wl

does not happen with the english builtin wl
Author
Collaborator

probably due to it not getting unicode and thinking things like ß is two chars

     Running `/home/cscherr/Documents/code/rust/wordle-analyzer/target/release/wordlebench -n 500 -s naive -w ger`
2024-08-02T15:11:13.771982Z  INFO using naive solver
2024-08-02T15:11:13.772047Z  INFO using 16 threads for benchmarking
thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29:
assertion failed: self.is_char_boundary(n)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("floß", 7.11686319239556e-6))) }
thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29:
assertion failed: self.is_char_boundary(n)
thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29:
assertion failed: self.is_char_boundary(n)
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("fügt", 2.6270300374614483e-6))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("böse", 0.0001073738822584243))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("weiß", 0.002409177601082145))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("säge", 3.677842052446027e-6))) }
thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29:
assertion failed: self.is_char_boundary(n)
thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29:
assertion failed: self.is_char_boundary(n)
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("weiß", 0.002409177601082145))) }
thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29:
assertion failed: self.is_char_boundary(n)
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("ließ", 7.241050066893737e-5))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("türe", 9.218487222364718e-6))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("müll", 3.157212463203668e-5))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("küss", 1.0317063419848598e-5))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("floß", 7.11686319239556e-6))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("prüf", 1.9583314824712616e-6))) }
thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22:
error playing the game during benchmark: SolverError { source: NoMatches(Some(("füge", 1.6717463874754672e-6))) }
probably due to it not getting unicode and thinking things like ß is two chars ``` Running `/home/cscherr/Documents/code/rust/wordle-analyzer/target/release/wordlebench -n 500 -s naive -w ger` 2024-08-02T15:11:13.771982Z INFO using naive solver 2024-08-02T15:11:13.772047Z INFO using 16 threads for benchmarking thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29: assertion failed: self.is_char_boundary(n) note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("floß", 7.11686319239556e-6))) } thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29: assertion failed: self.is_char_boundary(n) thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29: assertion failed: self.is_char_boundary(n) thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("fügt", 2.6270300374614483e-6))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("böse", 0.0001073738822584243))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("weiß", 0.002409177601082145))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("säge", 3.677842052446027e-6))) } thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29: assertion failed: self.is_char_boundary(n) thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29: assertion failed: self.is_char_boundary(n) thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("weiß", 0.002409177601082145))) } thread '<unnamed>' panicked at /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/alloc/src/string.rs:1923:29: assertion failed: self.is_char_boundary(n) thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("ließ", 7.241050066893737e-5))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("türe", 9.218487222364718e-6))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("müll", 3.157212463203668e-5))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("küss", 1.0317063419848598e-5))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("floß", 7.11686319239556e-6))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("prüf", 1.9583314824712616e-6))) } thread '<unnamed>' panicked at /home/cscherr/Documents/code/rust/wordle-analyzer/src/bench/mod.rs:61:22: error playing the game during benchmark: SolverError { source: NoMatches(Some(("füge", 1.6717463874754672e-6))) } ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: PlexSheep/wordle-analyzer#10
No description provided.