Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

The extension stops receiving messages from native app after receiving a message

123 views
Skip to first unread message

DevHexa

unread,
May 6, 2025, 6:22:44 AMMay 6
to Chromium Extensions
Hi,

On windows, with chrome 64 bits and native application 32 bits.
My extension stops receiving messages after receiving the following message.
I don't think it's a message length issue, as much longer messages are fine. I also don't see any blocking characters (I base64 encoded the message content to avoid this kind of problem...).
But,  if i delete the last character in the item "data" , the message is fine !!!!
        If i replace the last character by another, the message is not fine !!!
An idea ?
Thank you

The message : {"close":false,"data":"eyJyZWdpc3RlciI6eyJqc0NhbGxiYWNrIjoid29hLnRsc2kuY2FsbGJhY2tzLmNyZWVyQ29udGV4dGVCQU0iLCJuYXRpdmVBcHAiOiJQUkVBUFAiLCJvcmlnaW4iOiJIRVhBRVhUUkVTUE9OU0UiLCJyZXF1ZXN0VHlwZSI6ImNyZWVyQ29udGV4dGVCQU0ifSwicmVxdWVzdCI6eyJpZGVudEJlbiI6IjE2NTE5MjYyMjAwOTciLCJtb2RlSW5zdCI6IldIUiIsInBhdE5BSVNEIjoiMDEvMTIvMTk2NSIsInBhdFJHIjoiMSJ9LCJyZXF1ZXN0SWQiOjEwNCwicmVzcG9uc2UiOnsiY29kZUVycmV1ciI6MCwiY29udGV4dGVCQU0iOiI8P3htbCB2ZXJzaW9uPVwiMS4wXCI/PlxuPHVybjpDb250ZXh0ZUJBTSB4bWxuczp1cm49XCJ1cm46c2lyYW06YmFtOmN0eGJhbVwiIFZlcnNpb249XCIwMV8wMlwiPjx1cm46SWQ+MzU5ZDJjYTItYjEzNy00YTA1LWFlYzAtZTIwYzgzNzA2Y2QxPC91cm46SWQ+PHVybjpUZW1wcz4yMDI1LTA0LTI0VDA5OjQ3OjUzLjk5Nlo8L3VybjpUZW1wcz48dXJuOkVtZXR0ZXVyPjAwMDQ2NzEzMDE3ODwvdXJuOkVtZXR0ZXVyPjx1cm46Q09VVkVSVFVSRT48IS0tT3B0aW9uYWw6LS0+PHVybjpHcmFu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WZpY2F0aW9uPjIwMDItMDYtMDc8L3VybjpEYXRlQ2VydGlmaWNhdGlvbj48L3VybjpOaXI+PHVybjpEYXRlTmFpPjE5NjctMDctMjE8L3VybjpEYXRlTmFpPjx1cm46UmFuZz4xPC91cm46UmFuZz48dXJuOnBvcnRldXI+MDwvdXJuOnBvcnRldXI+PC91cm46QkVORUZJQ0lBSVJFPjwhLS1PcHRpb25hbDotLT48IS0tT3B0aW9uYWw6LS0+PCEtLU9wdGlvbmFsOi0tPjwhLS1PcHRpb25hbDotLT48dXJuOkJFTkVGSUNJQUlSRT48IS0tdXJuOk5pci0tPjx1cm46RGF0ZU5haT4xOTk1LTAxLTE2PC91cm46RGF0ZU5haT48dXJuOlJhbmc+MTwvdXJuOlJhbmc+PHVybjpwb3J0ZXVyPjA8L3Vybjpwb3J0ZXVyPjwvdXJuOkJFTkVGSUNJQUlSRT48IS0tT3B0aW9uYWw6LS0+PCEtLU9wdGlvbmFsOi0tPjwhLS1PcHRpb25hbDotLT48IS0tT3B0aW9uYWw6LS0+PHVybjpCRU5FRklDSUFJUkU+PCEtLXVybjpOaXItLT48dXJuOkRhdGVOYWk+MTk5OC0wNy0wMTwvdXJuOkRhdGVOYWk+PHVybjpSYW5n","requestId":11}

Oliver Dunk

unread,
May 8, 2025, 6:05:11 AMMay 8
to DevHexa, Chromium Extensions
Hi,

On first thought, this sounds like a possible issue with how the message is being encoded or read.

Do you see the same problem sending the same message with the sample code here?

Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB


--
You received this message because you are subscribed to the Google Groups "Chromium Extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/3d0e3915-ae8f-40de-80aa-fb5ee744bc8dn%40chromium.org.

DevHexa

unread,
May 14, 2025, 11:52:43 AMMay 14
to Chromium Extensions, Oliver Dunk, Chromium Extensions, DevHexa
Hello, 
I found the problem: my native application calls a DLL that modifies the standard output.
I need to set the binary format for each message.
Thank you. 

Oliver Dunk

unread,
May 19, 2025, 8:02:03 AMMay 19
to DevHexa, Chromium Extensions
Thanks for following up! It is always nice to hear an update :)
Oliver Dunk | DevRel, Chrome Extensions | https://developer.chrome.com/ | London, GB

Reply all
Reply to author
Forward
0 new messages