After upgrading to Prisma 3.10 from 3.9, remix site crashes on connection (Codesigning issue on M1 Macs)
See original GitHub issueBug description
In a Remix.run site I’m developing, I updated Prisma from 3.9.1 to 3.10. This made the server crash with the following message.
Downgrading to Prisma 3.9.2 worked again. Tested multiple times to switch version with consistent behaviour.
Watching Remix app in development mode...
💿 Built in 228ms
Remix App Server started at http://localhost:3000
fatal error: all goroutines are asleep - deadlock!
[1] 26432 killed npx remix dev --debug
goroutine 1 [semacquire]:
sync.runtime_Semacquire(0x1400001ad28)
runtime/sema.go:56 +0x38
sync.(*WaitGroup).Wait(0x1400001ad20)
sync/waitgroup.go:130 +0xa4
main.runService(0x1)
github.com/evanw/esbuild/cmd/esbuild/service.go:138 +0x494
main.main()
github.com/evanw/esbuild/cmd/esbuild/main.go:203 +0x1f0
goroutine 6 [chan receive]:
main.runService.func1(0x140000261e0, 0x1400001ad20)
github.com/evanw/esbuild/cmd/esbuild/service.go:66 +0x3c
created by main.runService
github.com/evanw/esbuild/cmd/esbuild/service.go:64 +0x1a8
goroutine 7 [chan receive]:
main.(*serviceType).sendRequest(0x140000261e0, {0x1029e7320, 0x14003885ce0})
github.com/evanw/esbuild/cmd/esbuild/service.go:163 +0x104
main.runService.func2(0x140000261e0)
github.com/evanw/esbuild/cmd/esbuild/service.go:92 +0x40
created by main.runService
github.com/evanw/esbuild/cmd/esbuild/service.go:89 +0x2b8
Note that Prisma studio works in both versions.
How to reproduce
Unclear. Similar issues have been discussed in the Remix discord (https://discord.com/channels/770287896669978684/938793097414975528/938795339757010964)
See also https://github.com/prisma/prisma/issues/11995
Expected behavior
No response
Prisma information
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
System seems to crash on connection to the database.
Environment & setup
Computer: MacBook Pro 14 inch, M1 Max, macOS Monterey 12.2 Database: Postgresql 14.1 installed from homebrew Node: v17.6.0 Remix: 1.2.2 (also tested 1.2.1)
Prisma Version
Non-working version
Environment variables loaded from .env
prisma : 3.10.0
@prisma/client : 3.10.0
Current platform : darwin-arm64
Query Engine (Node-API) : libquery-engine 73e60b76d394f8d37d8ebd1f8918c79029f0db86 (at node_modules/@prisma/engines/libquery_engine-darwin-arm64.dylib.node)
Migration Engine : migration-engine-cli 73e60b76d394f8d37d8ebd1f8918c79029f0db86 (at node_modules/@prisma/engines/migration-engine-darwin-arm64)
Introspection Engine : introspection-core 73e60b76d394f8d37d8ebd1f8918c79029f0db86 (at node_modules/@prisma/engines/introspection-engine-darwin-arm64)
Format Binary : prisma-fmt 73e60b76d394f8d37d8ebd1f8918c79029f0db86 (at node_modules/@prisma/engines/prisma-fmt-darwin-arm64)
Default Engines Hash : 73e60b76d394f8d37d8ebd1f8918c79029f0db86
Studio : 0.458.0
Working version
Environment variables loaded from .env
prisma : 3.9.2
@prisma/client : 3.9.2
Current platform : darwin-arm64
Query Engine (Node-API) : libquery-engine bcc2ff906db47790ee902e7bbc76d7ffb1893009 (at node_modules/@prisma/engines/libquery_engine-darwin-arm64.dylib.node)
Migration Engine : migration-engine-cli bcc2ff906db47790ee902e7bbc76d7ffb1893009 (at node_modules/@prisma/engines/migration-engine-darwin-arm64)
Introspection Engine : introspection-core bcc2ff906db47790ee902e7bbc76d7ffb1893009 (at node_modules/@prisma/engines/introspection-engine-darwin-arm64)
Format Binary : prisma-fmt bcc2ff906db47790ee902e7bbc76d7ffb1893009 (at node_modules/@prisma/engines/prisma-fmt-darwin-arm64)
Default Engines Hash : bcc2ff906db47790ee902e7bbc76d7ffb1893009
Studio : 0.457.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:18 (7 by maintainers)
Top Results From Across the Web
Mac App Store url problem on Mac M1 - Apple Developer
The problem is on MacBook M1 - it is working, but once the App Store app for review is opened, my iOS app...
Read more >PoC-in-GitHub: PoC auto collect from GitHub. ⚠️ Be ... - Gitee
A remote code execution vulnerability exists in Windows Remote Desktop Gateway (RD Gateway) when an unauthenticated attacker connects to the target system using ......
Read more >how to install express in console Code Example
If it still fails, a git process may have crashed in this repository earlier: ... Unable to resolve dependency tree error when installing...
Read more >securitystuffbackup / PoC-in-GitHub - GitLab
CVE-2022-22954 (2022-04-11). VMware Workspace ONE Access and Identity Manager contain a remote code execution vulnerability due to server-side ...
Read more >Poster Abstracts - Asia-Pacific Journal of Clinical Oncology
After definitive surgery, patients received pembrolizumab or placebo for nine cycles or until recurrence/unacceptable toxicity (adjuvant). Dual ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pantharshit00 do you have an M1 Mac? From my understanding this specifically triggers on
darwin-arm64
.The steps to reproduce that work for me, if useful:
package.json
with the following:yarn install && yarn prisma generate
package.json
to the following:yarn install && yarn prisma generate
I experienced something similar though with a Next.js application - I wasn’t able to put together a reproduction as my clean repo didn’t crash the process, so I decided to try deleting all
.prisma
generated directories before runningprisma generate
again, and that worked!I have a monorepo, so I located all
.prisma
directories withfind . -name .prisma
, then deleted each one.So at least for me, the issue manifested when I already had a generated client from 3.9, and cleaning up the old version before running generate again appears to have fixed it.