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

Unhandled exception: invalid byte sequence in UTF-8 #79

Open
ricardocaracante opened this issue Apr 8, 2023 · 1 comment
Open

Unhandled exception: invalid byte sequence in UTF-8 #79

ricardocaracante opened this issue Apr 8, 2023 · 1 comment

Comments

@ricardocaracante
Copy link

Hi, can someone help me with this problem?

[ 2023-04-08 16:11:56 ] - [ Ui ] - Launch Modsvaskr UI v0.1.12 - Logs in C:/Modsvaskr/Modsvaskr.log
[ 2023-04-08 16:12:08 ] - [ InGameTestsRunner ] - [ In-game testing Skyrim SE ] - 3 available in-game tests suites: npcs, locations, npcshead
[ 2023-04-08 16:12:12 ] - [ InGameTestsRunner ] - [ In-game testing Skyrim SE ] - 1 tests suites have statuses changes:
[ 2023-04-08 16:12:12 ] - [ InGameTestsRunner ] - [ In-game testing Skyrim SE ] * locations:
[ 2023-04-08 16:12:12 ] - [ InGameTestsRunner ] - [ In-game testing Skyrim SE ] - First test to run should be locations / dlc2solstheimworld/16/18.
[ 2023-04-08 16:12:12 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - Launch game (#0) using configured launcher (skse64_loader.exe)...
[ 2023-04-08 16:12:22 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:23 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:24 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:25 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:26 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:27 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:28 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:29 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:30 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:32 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:33 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:34 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:35 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:36 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:37 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:38 ] - [ SkyrimSe ] - [ Game Skyrim SE ] - SkyrimSE.exe is not running. Wait for its startup...
[ 2023-04-08 16:12:39 ] - [ Ui ] - Unhandled exception: invalid byte sequence in UTF-8
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/game.rb:137:in split' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/game.rb:137:in launch'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/in_game_tests_runner.rb:151:in block (2 levels) in run' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/in_game_tests_runner.rb:120:in loop'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/in_game_tests_runner.rb:120:in block in run' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/in_game_tests_runner.rb:252:in with_auto_test_monitoring'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/in_game_tests_runner.rb:112:in run' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/tests_runner.rb:148:in run'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/ui.rb:154:in block (7 levels) in run' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:136:in block in initialize'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:48:in loop' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:48:in initialize'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/ui.rb:62:in new' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/ui.rb:62:in block (5 levels) in run'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:136:in block in initialize' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:48:in loop'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:48:in initialize' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/ui.rb:52:in new'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/ui.rb:52:in block (3 levels) in run' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:136:in block in initialize'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:48:in loop' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/curses_menu-0.2.0/lib/curses_menu.rb:48:in initialize'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/ui.rb:46:in new' C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/ui.rb:46:in run'
C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/bin/modsvaskr:7:in <top (required)>' bin/modsvaskr:29:in load'
bin/modsvaskr:29:in `

'
[ 2023-04-08 16:12:39 ] - [ Ui ] - Close Modsvaskr UI

(I dont't have any skills in coding)

Thanks!

@rostalan
Copy link

rostalan commented Aug 6, 2023

Hi, Might have figured out a fix for the byte sequence error:
In file: C:/Modsvaskr/vendor/bundle/ruby/2.6.0/gems/modsvaskr-0.1.12/lib/modsvaskr/game.rb (this location is user specific, I have it somewhere else...) on line 137 replace the entire line with: @pid = Integer(tasklist_stdout.force_encoding("iso-8859-1").split[1]).
This enforces encoding to European character set as described here: link
This fixed the Unhandled Exception for me and allowed me to run the tests (until I ran into other issues... :) ).

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

2 participants