You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consttextEncoder=newTextEncoder();consttextDecoder=newTextDecoder();constdata=textEncoder.encode(requestMsg);console.log(data);// Just for screenshot observation of the data sent. setTimeout(()=>{invoke<Uint8Array>("test_new_ipc",data).then(res=>setResponseMsg(textDecoder.decode(res))).catch(err=>console.error(err));},5000);
2024-05-15 16:32:35.972 tauri-app-pc[57048:2111556] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit
[49, 50, 51]
2024-05-15 16:33:28.446 tauri-app-pc[57048:2111556] _TIPropertyValueIsValid called with 12 on nil context!
2024-05-15 16:33:28.446 tauri-app-pc[57048:2111556] imkxpc_setApplicationProperty:value:reply: called with incorrect property value 12, bailing.
thread 'main' panicked at library/core/src/panicking.rs:156:5:
unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
ELIFECYCLE Command failed with exit code 1.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
If the Unit8Array data is not empty, it can be sent successfully:
If the data is empty, the sending will fail. And will cause the program to crash.
Primary code
Code of rust
Code of ts
Reproduction
No response
Expected behavior
No response
Full
tauri info
outputStack trace
Additional context
No response
The text was updated successfully, but these errors were encountered: