Skip to content

Bug: Regular crashes due to invalid UTF-8 in output. #9195

Closed
@kaetemi

Description

@kaetemi

What happened?

Llama.cpp crashes several times a day due to invalid UTF-8 in its output in /completion endpoint.

Ideally this should just return an error code.

Name and Version

latest

What operating system are you seeing the problem on?

No response

Relevant log output

llama-server [falcon-7b:2048:10]: terminate called after throwing an instance of 'nlohmann::json_abi_v3_11_3::detail::type_error'
llama-server [falcon-7b:2048:10]:   what():  [json.exception.type_error.316] invalid UTF-8 byte at index 612: 0x5C
Error in request to /completion: socket hang up

Metadata

Metadata

Assignees

Labels

bug-unconfirmedmedium severityUsed to report medium severity bugs in llama.cpp (e.g. Malfunctioning Features but still useable)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions