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

Error: [libs/datamodel/connectors/dml/src/model.rs:363:66] called Option::unwrap() on a None value #12259

Closed
tomhoule opened this issue Mar 11, 2022 · 2 comments · Fixed by prisma/prisma-engines#2791
Assignees
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/schema Issue for team Schema. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: mysql topic: prisma db pull CLI: prisma db pull topic: STATE ERROR BOOP
Milestone

Comments

@tomhoule
Copy link
Contributor

Command: prisma db pull
Version: 3.10.0
Binary Version: 73e60b76d394f8d37d8ebd1f8918c79029f0db86
Report: https://prisma-errors.netlify.app/report/13685
OS: x64 linux 5.13.0-30-generic

JS Stacktrace:

Error: [libs/datamodel/connectors/dml/src/model.rs:363:66] called `Option::unwrap()` on a `None` value
    at ChildProcess.<anonymous> (/home/thang/mentemia/mentemia.supportal/node_modules/prisma/build/index.js:46135:30)
    at ChildProcess.emit (events.js:375:28)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)

Rust Stacktrace:

   0: user_facing_errors::Error::new_in_panic_hook
   1: user_facing_errors::panic_hook::set_panic_hook::{{closure}}
   2: std::panicking::rust_panic_with_hook
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:610:17
   3: std::panicking::begin_panic_handler::{{closure}}
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:500:13
   4: std::sys_common::backtrace::__rust_end_short_backtrace
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/sys_common/backtrace.rs:139:18
   5: rust_begin_unwind
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/panicking.rs:498:5
   6: core::panicking::panic_fmt
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/panicking.rs:107:14
   7: core::panicking::panic
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/core/src/panicking.rs:48:5
   8: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
   9: core::ops::function::impls::<impl core::ops::function::FnMut<A> for &mut F>::call_mut
  10: <alloc::vec::Vec<T> as alloc::vec::spec_from_iter::SpecFromIter<T,I>>::from_iter
  11: dml::model::Model::unique_criterias
  12: dml::model::Model::strict_unique_criterias_disregarding_unsupported
  13: sql_introspection_connector::commenting_out_guardrails::commenting_out_guardrails
  14: sql_introspection_connector::calculate_datamodel::calculate_datamodel
  15: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  16: <core::future::from_generator::GenFuture<T> as core::future::future::Future>::poll
  17: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
  18: <futures_util::future::future::Then<Fut1,Fut2,F> as core::future::future::Future>::poll
  19: <futures_util::future::either::Either<A,B> as core::future::future::Future>::poll
  20: tokio::runtime::task::harness::poll_future
  21: tokio::runtime::task::raw::poll
  22: std::thread::local::LocalKey<T>::with
  23: tokio::runtime::thread_pool::worker::Context::run_task
  24: tokio::runtime::thread_pool::worker::Context::run
  25: tokio::macros::scoped_tls::ScopedKey<T>::set
  26: tokio::runtime::thread_pool::worker::run
  27: tokio::loom::std::unsafe_cell::UnsafeCell<T>::with_mut
  28: tokio::runtime::task::core::CoreStage<T>::poll
  29: tokio::runtime::task::harness::Harness<T,S>::poll
  30: tokio::runtime::blocking::pool::Inner::run
  31: std::sys_common::backtrace::__rust_begin_short_backtrace
  32: core::ops::function::FnOnce::call_once{{vtable.shim}}
  33: <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/alloc/src/boxed.rs:1694:9
      <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/alloc/src/boxed.rs:1694:9
      std::sys::unix::thread::Thread::new::thread_start
             at /rustc/db9d1b20bba1968c1ec1fc49616d4742c1725b4b/library/std/src/sys/unix/thread.rs:106:17
  34: <unknown>
  35: clone

@tomhoule tomhoule added kind/bug A reported bug. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: mysql team/schema Issue for team Schema. process/candidate labels Mar 11, 2022
@tomhoule
Copy link
Contributor Author

It could be the same as #9546 — let's check both at the same time.

@janpio janpio added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. topic: prisma db pull CLI: prisma db pull labels Mar 11, 2022
@floelhoeffel floelhoeffel added bug/2-confirmed Bug has been reproduced and confirmed. and removed process/candidate bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. labels Mar 16, 2022
@floelhoeffel
Copy link

State error boop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/2-confirmed Bug has been reproduced and confirmed. kind/bug A reported bug. team/schema Issue for team Schema. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: mysql topic: prisma db pull CLI: prisma db pull topic: STATE ERROR BOOP
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants