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

Build and run errors #31

Open
hariseldon78 opened this issue Sep 29, 2024 · 1 comment
Open

Build and run errors #31

hariseldon78 opened this issue Sep 29, 2024 · 1 comment

Comments

@hariseldon78
Copy link
Contributor

Hi, I'm trying to run the application locally because I want to add a 128x64 display.
During the make quickstart I get this error:

[...]
[2s] Generating 1.5u r3 mt3
[2s] Generating 1.5u r4 mt3
[2s] Generating 1.5u r5 mt3
[1s] Generating 2u r0 mt3
[1s] Generating 2u r1 mt3
[1s] Generating 2u r2 mt3
[1s] Generating 2u r3 mt3
[1s] Generating 2u r4 mt3
[1s] Generating 2u r5 mt3
Plus 96 more tasks
43 |     cp.send(this.taskReference!.indexOf(item))
44 |     return {
45 |       name: item.name,
46 |       promise: new Promise<R>((resolve, reject) => {
47 |         cp.once('message', (m: any) => {
48 |           if (m.error) reject(new Error(m.error))
                                   ^
error: Out of bounds memory access (evaluating 'entryFunction(argc, argv)')
      at /home/roby/Developer/opensource/Cosmos-Keyboards/src/model_gen/processPool.ts:48:31
      at onceWrapper (node:events:37:21)
      at emit (node:events:201:48)
      at #emitIpcMessage (node:child_process:804:18)

Bun v1.1.27 (Linux x64)
make: *** [Makefile:48: keycaps2] Error 1

and then, during the make dev i get this error reported in the browser:

[plugin:vite:import-analysis] Failed to resolve import "../../../target/sockets-simple.json" from "src/lib/loaders/simpleparts.ts". Does the file exist?

/home/roby/Developer/opensource/Cosmos-Keyboards/src/lib/loaders/simpleparts.ts:5:20

1  |  import { BufferGeometry, Group, Matrix4, Triangle, Vector3 } from "three";
2  |  import { STLLoader } from "three/examples/jsm/loaders/STLLoader";
3  |  import sockets from "../../../target/sockets-simple.json";
   |                       ^
4  |  import { ITriangle } from "./simplekeys";
5  |  function socket(name) {

    at TransformPluginContext._formatError (file:///home/roby/Developer/opensource/Cosmos-Keyboards/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:49746:41)
    at TransformPluginContext.error (file:///home/roby/Developer/opensource/Cosmos-Keyboards/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:49741:16)
    at normalizeUrl (file:///home/roby/Developer/opensource/Cosmos-Keyboards/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:64331:23)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async file:///home/roby/Developer/opensource/Cosmos-Keyboards/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:64463:39
    at async Promise.all (index 2)
    at async TransformPluginContext.transform (file:///home/roby/Developer/opensource/Cosmos-Keyboards/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:64390:7)
    at async PluginContainer.transform (file:///home/roby/Developer/opensource/Cosmos-Keyboards/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:49587:18)
    at async loadAndTransform (file:///home/roby/Developer/opensource/Cosmos-Keyboards/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:52409:27)
    at async viteTransformMiddleware (file:///home/roby/Developer/opensource/Cosmos-Keyboards/node_modules/vite/dist/node/chunks/dep-CzJTQ5q7.js:62173:24

I'm using arch linux (btw) and bun 1.1.27.

@rianadon
Copy link
Owner

rianadon commented Oct 5, 2024

Hey. For some reason bun has been struggling with the wasm libraries. I've noticed this error appears randomly, and if you repeatedly run things eventually they'll work.

Node.js is also a lot more solid with these scripts for some reason. A make BUN= quickstart should work.

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

2 participants