-
Notifications
You must be signed in to change notification settings - Fork 9
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
strange characters at the end of "Component-Example" url on pharo 12 #24
Comments
Hi @git-dmou I'm really puzzled here. I tried the menu and all items work without a problem. Which Pharo version are you using and which VM version? I tried Pharo 10 and 12. The code for the Component Examples does not seem special if compared to other applications. Sunny regards, |
@git-dmou I see you're using Pharo 12 (didn't read the title carefully enough)... |
@git-dmou retried with new image, but still works. |
Hello Erik, I'm on windows 11, I've tried on 2 differents computers, VM: 120-x64 2024-01-15 update image pharo 12 from the same day tried on chrome and Firefox. I browsed the code quickly and saw no differences between apps in the building of url as you said ! |
Specific language setting on browser? |
I've tried english on firefox and french on chrome |
Which characters are appended? You wrote 'random'. Does this mean it differs between executions? |
by random I mean a couple of different char at each exec. I'll try with the breakpoint |
Maybe also add a breakpoint on: |
you're right, non random chars in the pharo area ! |
Hmmm...that still leaves the FFI stuff (but it works for other applications, so what would make this one special?), since it behaves the same in both Chrome and Firefox.
Do a 'reset' from the CodeParadise menu and try to run the application (now named 'fixmesoon'). |
and it works ! |
Not fully sure yet ;-).
I made it a single character shorter, but still has the same 'ending'. I am wondering whether the final URL size (56 bytes/chars) is causing an issue. This is 2 longs (2x 4 bytes) short of 64 bytes, which might be some sort of magic size limit. |
Remember that Soelace-Examples works okay, but also ends with '-Examples'. |
It works, it should be a length problem .... |
however, "building-my-first-app" is longer, but has no problem |
Maybe not every length. Could you try the following version? If this works, it is not perse the length. This is a version with the same length but different content. We're just trying to find the cause by taking away possibilities ;-)
Remember to reset the menu before trying to open the application. |
Thx for helping out and testing these things out by the way! 🙏 |
Okay. So it seems this specific length is an issue. I'm investigating a little here. I will try to come back with some more tests if you're okay with that. |
your welcome |
Could you give me the result of evaluating the following in a Playground?
It should probably answer something like FFICalloutAPI or TFCalloutAPI. |
TFCalloutAPI |
Could you please evaluate/inspect the following?
Does it answer the correct (duplicated) String or does it also have random characters added?
|
Have dug deep into the code (into primitives and generated FFI code), but can't find the location where things go wrong. My feeling is it has to do with the FFI (Foreign Function Interface). I'll post a question on the Discord channel. Hopefully someone can help out. Thx so far and I will keep you updated. |
quite tricky ! |
Strange, doing variations: WebBrowser openOn: 'http://localhost:8080/static/app.html?Component-Examples' - APPENDS
WebBrowser openOn: 'http://localhost:8080/static/map.html?Component-Examples' - APPENDS
WebBrowser openOn: 'http://localhost:8080/static/app.html?ComponentExamples' - WORKS
WebBrowser openOn: 'http://localhost:8080/app.html?Component-Examples' WORKS
WebBrowser openOn: 'http://localhost:8080/something/app.html?Component-Examples' WORKS
WebBrowser openOn: 'http://localhost/static/app.html?Component-Examples' - WORKS
|
@astares It seems the exact length is an issue. I also posted this on Discord (see link below).
https://discord.com/channels/223421264751099906/786544722235228160/1197203535285211166 |
Yes - same issue. Seems length based |
opened pharo-project/pharo#15980 as it is more Pharo related than a Code paradise issue |
Hello Erik, Pharo 12.0.0 after the UFFI issue pharo-project/pharo#15980 fixed |
when starting the "Component-Examples" application from code paradise menu, the browser open with an url ending with 2 random characters .... and of course, the loading never end.
when I remove these chars, to get a clean url, the application opens as expected.
I've tried all the applications from the menu and this is the only case of this strange behaviour.
The text was updated successfully, but these errors were encountered: