When are we going to get proper error messages?

62 views
Skip to first unread message

Die4Ever2005

unread,
Jan 26, 2026, 5:14:32 PM (9 days ago) Jan 26
to Chrome Built-in AI Early Preview Program Discussions
These

UnknownError: Other generic failures occurred.

Are so annoying to try to debug

Thomas Steiner

unread,
Jan 27, 2026, 3:49:39 AM (8 days ago) Jan 27
to Die4Ever2005, Chrome Built-in AI Early Preview Program Discussions
Hi there,

This error can occur when JSON Schema constraints are invalid. We have an internal bug open to improve this. Here's an example:

const session = await LanguageModel.create();
const schema = { "type": "answer" };
await session.prompt(`Is red a color?`, { responseConstraint: schema });
> Uncaught UnknownError: Other generic failures occurred.

Another source of this error is if the GPU runs into an "out of memory" situation. In such cases, often (but not always) the "bypass performance requirements" flag is set, but we'd still appreciate a new bug report with attached GPU logs and crash logs (see the troubleshooting guide for how to obtain those).

Thanks,
Tom 


--
You received this message because you are subscribed to the Google Groups "Chrome Built-in AI Early Preview Program Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-ai-dev-previe...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chrome-ai-dev-preview-discuss/0b87b080-01c9-4d72-b481-bfaa0508c339n%40chromium.org.


--
Thomas Steiner, PhD—Developer Relations Engineer (blog.tomayac.comtoot.cafe/@tomayac)

Google Spain, S.L.U.
Torre Picasso, Pl. Pablo Ruiz Picasso, 1, Tetuán, 28020 Madrid, Spain

CIF: B63272603
Inscrita en el Registro Mercantil de Madrid, sección 8, Hoja M­-435397 Tomo 24227 Folio 25

----- BEGIN PGP SIGNATURE -----
Version: GnuPG v2.4.8 (GNU/Linux)

iFy0uwAntT0bE3xtRa5AfeCheCkthAtTh3reSabiGbl0ck
0fjumBl3DCharaCTersAttH3b0ttom.xKcd.cOm/1181.
----- END PGP SIGNATURE -----

Die4Ever2005

unread,
Jan 29, 2026, 2:58:51 AM (6 days ago) Jan 29
to Chrome Built-in AI Early Preview Program Discussions, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions, Die4Ever2005
It seems like this is the regex causing the issue

let m = await LanguageModel.create(); await m.prompt('hello', {responseConstraint: /^[^\n><]{1,800}$/});

It fails every time. Works fine if I remove the responseConstraint.

Version 145.0.7632.18 (Official Build) beta (64-bit)
Foundational model state: Ready
Model Name: v3Nano
Version: 2025.06.30.1229
Backend Type: GPU (highest quality)
File path: /home/ray/.config/google-chrome-beta/OptGuideOnDeviceModel/2025.8.8.1141
Folder size: 4,088.14 MiB

Die4Ever2005

unread,
Jan 29, 2026, 3:00:52 AM (6 days ago) Jan 29
to Chrome Built-in AI Early Preview Program Discussions, Die4Ever2005, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
This also fails with a simple regex


let m = await LanguageModel.create();
await m.prompt('hello', {responseConstraint: /^.*$/});

Uncaught UnknownError: Other generic failures occurred.

Die4Ever2005

unread,
Jan 29, 2026, 3:09:21 AM (6 days ago) Jan 29
to Chrome Built-in AI Early Preview Program Discussions, Die4Ever2005, Thomas Steiner, Chrome Built-in AI Early Preview Program Discussions
Same issue on
Version 145.0.7632.26 (Official Build) beta (64-bit)

Felipe Marcos de abreu Aquino

unread,
Jan 29, 2026, 3:52:37 AM (6 days ago) Jan 29
to Die4Ever2005, Chrome Built-in AI Early Preview Program Discussions, Thomas Steiner
I’ve been following this thread and can confirm that I'm seeing similar behavior. The generic UnknownError is indeed a major roadblock for debugging, especially when working with complex responseConstraint implementations.
Regarding the Regex issue mentioned:
It seems the current parser for responseConstraint might be struggling with specific engine-level validations before even hitting the model. Even a catch-all regex like /^.*$/ failing suggests that the validation layer itself might be crashing or timing out before the GPU backend can process the prompt.
To help the team, I’ll perform a few more tests on my end with:
Different backend types (switching between GPU and CPU if possible).
Testing if the same failure occurs with very short prompts vs longer ones.
@Tom, as a developer with long-term experience in complex system architectures, I'd suggest that even if the root cause is a GPU memory/timeout issue, the API should ideally catch these specific failure modes and map them to more descriptive error codes (e.g., REGEXP_VALIDATION_FAILED or INSUFFICIENT_GPU_RESOURCES) rather than the catch-all UnknownError.
I'll collect my logs and attach them to a new bug report as suggested.
Best regards,
Felipe Aquino
Senior Software Developer

Thomas Steiner

unread,
Jan 29, 2026, 4:21:26 AM (6 days ago) Jan 29
to Felipe Marcos de abreu Aquino, Die4Ever2005, Chrome Built-in AI Early Preview Program Discussions, Thomas Steiner
Thank you all for confirming the source of these errors. We'd appreciate quick bug reports with just these minimal reproductive cases at https://new.crbug.com. Thank you very much! There's work happening on making the error messages more useful, but specific pain points definitely help the team focus their attention on the most confusing ones.

Cheers,
Tom 

Sumeet Singh

unread,
Jan 29, 2026, 5:17:56 AM (6 days ago) Jan 29
to Thomas Steiner, Felipe Marcos de abreu Aquino, Die4Ever2005, Chrome Built-in AI Early Preview Program Discussions
Hi Tom,

Thank you for the update. I will submit a bug report with these reproduction cases at https://new.crbug.com (https://new.crbug.com) as requested.

Best regards,

Sumeet Singh


Die4Ever2005

unread,
Jan 29, 2026, 2:05:44 PM (6 days ago) Jan 29
to Chrome Built-in AI Early Preview Program Discussions, Sumeet Singh, Felipe Marcos de abreu Aquino, Die4Ever2005, Chrome Built-in AI Early Preview Program Discussions, Thomas Steiner
I filed the bug, but I couldn't find the right component to file it under

Sumeet Singh

unread,
Jan 29, 2026, 8:12:01 PM (6 days ago) Jan 29
to Die4Ever2005, Chrome Built-in AI Early Preview Program Discussions, Felipe Marcos de abreu Aquino, Thomas Steiner
Hi Tom,

I have filed a bug report for the issues discussed in this thread: https://issues.chromium.org/issues/479676595 (https://issues.chromium.org/issues/479676595).

Like Die4Ever2005, I was unsure which component to file it under, so please let us know if it needs to be updated or moved to a different category.

Best regards,

Sumeet Singh

Thomas Steiner

unread,
Jan 30, 2026, 6:35:58 AM (5 days ago) Jan 30
to Sumeet Singh, Die4Ever2005, Chrome Built-in AI Early Preview Program Discussions, Felipe Marcos de abreu Aquino, Thomas Steiner
Thanks, both! Blink > AI > Prompt is the right component! Perfect!
Reply all
Reply to author
Forward
0 new messages