WebList show zebra

I think there should be consistency whenever possible - if a poorly-encoded string displays incorrectly (as it does on Desktop) that’s understandable.

But the OP is claiming that such a string causes the entire Web framework to stop working, which is much more severe issue and inconsistent with what we expect.

However, I’m not able to reproduce this behavior:

Sub Opening() Handles Opening
  dim s as string = "🤢abcdéfg😁"
  me.AddRow s
  
  s = s.DefineEncoding(encodings.ISOLatin9)
  me.AddRow s
  
  s = s.DefineEncoding(nil)
  me.AddRow s
  
  
  s = s.ConvertEncoding(Encodings.UTF16BE)
  me.AddRow s
  
  
  s = s.DefineEncoding(nil)
  me.AddRow s
  
End Sub

This works just fine:

1 Like

@Sebastien_REMY

  • What Xojo version?
  • what macOS version?
  • what version of Safari?
  • Can you tell us the exact Hex values of the string which causes trouble?

I think it raises a RuntimeException, which are handled poorly on Web. If you don’t implement a handler (whether that’s try...catch or the UnhandledException event), things just appear to silently fail.

If there is no RuntimeException, then I join you in being concerned.

2 Likes

Xojo Version 2024 r4.2
Safari Version 18.3.1 (20620.2.4.11.6)
System 15.3.2 (24D81) on Apple M1

DBngin makes it easy to set up databases, so I set up and ran your example project.

I was able to reproduce the issue. With 2024r4.2 it exhibits the telltale sign of a RuntimeException within the web framework (where it breaks into the debugger but there’s nothing visible).

It looks like you might have run into this issue: #74312 - Web project stops at Event Loop when running in debug mode

2 Likes

Hi @Tim_Parnell I just use your app LifeBoat to test my app on DigitalOcean. It works fine and save me a lot of time. Thanks

2 Likes

Cool - can it be reproduced w/o SQL? Is it actually due to string encoding? Having a standalone reproduction would be great.

Yes, there’s an example project on the issue ticket I linked that is self-contained. All I can say is that it failed in 2024r4.2 and that ticket is marked as fixed :wink:

Can confirm: fails in 2024r4.2, but the ticket appears to be fixed. Some of my testing wasn’t in 2024r4.2 which may explain my results.