Skip to content
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 access violation error and crash #59

Open
gbogarinb opened this issue May 17, 2024 · 0 comments
Open

Strange access violation error and crash #59

gbogarinb opened this issue May 17, 2024 · 0 comments

Comments

@gbogarinb
Copy link

gbogarinb commented May 17, 2024

I get a strange crash when I edit a svelte file in Helix, I narrowed down the culprit to the svelte.dll that's generated by helix using this repo, I really don't know what can be the cause of the problem and if it is even related to this repo in particular, but it does stop when I remove the svelte.dll from the build. If you think it has nothing to do with this repo then feel free to close this.
I tried to attach a debugger to the hx process and this is all I got, not really my field, but maybe it's helpful to someone.

ModLoad: 00007ffe`35240000 00007ffe`3524a000   C:\Users\gg\repos\helix\runtime\grammars\regex.dll
(81ac.7ccc): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
*** WARNING: Unable to verify checksum for C:\Users\gg\repos\helix\runtime\grammars\svelte.dll
ucrtbase!strncpy+0x38:
00007ffe`4736d2a8 488b02          mov     rax,qword ptr [rdx] ds:00000000`00000000=????????????????

This is the file that causes the crash.

<script lang="ts">
  import {Table, TableBody, TableBodyCell, TableBodyRow, TableHead, TableHeadCell } from 'flowbite-svelte';
  import {client} from "$lib/endpoints";

  export let data;
  console.log("Data " + JSON.stringify(data));

  async function getAll() {
    const response = await client.getAll({fetch, params:{ include_inactive: true }});
    data = response;
    console.log("Data " + JSON.stringify(data));
  }
</script>

<nav>
<a href="/sale">Sales</a>
<a href="/client">Clients</a>
<a href="/product">Products</a>
<a href="/payment">Payments</a>
</nav>
<h1>Clients</h1>
<button on:click={getAll}>Call get</button>  
<Table striped={true}>
  <TableHead>
  <TableHeadCell>Id</TableHeadCell>
  <TableHeadCell>Name</TableHeadCell>
  </TableHead>
  <TableBody tableBodyClass="divide-y">
  {#each data.clients as client}
    <TableBodyRow>
      <TableBodyCell>{client.id}</TableBodyCell>
      <TableBodyCell>{client.name}</TableBodyCell>
    </TableBodyRow>
  {/each}
    <TableBodyRow>
      <TableBodyCell></TableBodyCell>
      <TableBodyCell>Add</TableBodyCell>
    </TableBodyRow>
  </TableBody>
</Table>
<!-- <button on:click={get}>Call get</button> -->  

And it happens always when I edit this line, exaclty when I hit > after /.
Untitled video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant