microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.29k stars 290 forks source link

Creating a new .ipynb file or opening two at the same time immediately crashes M1 MacBook Pro #5885

Closed ggrantrowberry closed 3 years ago

ggrantrowberry commented 3 years ago

Environment data

Expected behaviour

Create a new ipynb file. Or open multiple ipynb files.

Actual behaviour

Crashes the computer. When I create a new ipynb file from the left sidebar or if I try to open a secondary ipynb file and sometimes even when I open a previously create ipynb file it crashes the entire computer. My music stops playing immediately, the screen freezes, turns pink and then shuts down. Then the computer restarts itself.

Steps to reproduce:

  1. In the left sidebar create a new ipynb file.
  2. There is no two. It immediately crashes.

Logs

Output from macOS Problem Report

``` panic(cpu 6 caller 0xfffffe0013ccfc4c): "Kernel stack memory corruption detected" Debugger message: panic Memory ID: 0xff OS release type: User OS version: 20D91 Kernel version: Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101 Fileset Kernelcache UUID: F78A48EC84D7C3283E7C6C67D00889A7 Kernel UUID: 9FE8C0DA-8ED0-381C-9CEC-2A779F3E1503 iBoot version: iBoot-6723.81.1 secure boot?: YES Paniclog version: 13 KernelCache slide: 0x000000000c0bc000 KernelCache base: 0xfffffe00130c0000 Kernel slide: 0x000000000cbf0000 Kernel text base: 0xfffffe0013bf4000 Kernel text exec base: 0xfffffe0013cbc000 mach_absolute_time: 0x1d0e701f4 Epoch Time: sec usec Boot : 0x609e7e5b 0x000bf52c Sleep : 0x00000000 0x00000000 Wake : 0x00000000 0x00000000 Calendar: 0x609e7f9a 0x00071d57 CORE 0 recently retired instr at 0xfffffe0013e26c0c CORE 1 recently retired instr at 0xfffffe0013e26c0c CORE 2 recently retired instr at 0xfffffe0013e26c0c CORE 3 recently retired instr at 0xfffffe0013e26c0c CORE 4 recently retired instr at 0xfffffe0013e26c10 CORE 5 recently retired instr at 0xfffffe0013e26c10 CORE 6 recently retired instr at 0xfffffe0013e25748 CORE 7 recently retired instr at 0xfffffe0013e26c10 Panicked task 0xfffffe167bbc2b88: 9993 pages, 23 threads: pid 1442: Code Helper (Ren Panicked thread: 0xfffffe1678718cb0, backtrace: 0xfffffe30b42eae30, tid: 14192 lr: 0xfffffe0013d09fd0 fp: 0xfffffe30b42eaea0 lr: 0xfffffe0013d09d9c fp: 0xfffffe30b42eaf10 lr: 0xfffffe0013e2bf0c fp: 0xfffffe30b42eaf30 lr: 0xfffffe0013e1d8b8 fp: 0xfffffe30b42eafe0 lr: 0xfffffe0013cc37e8 fp: 0xfffffe30b42eaff0 lr: 0xfffffe0013d09a2c fp: 0xfffffe30b42eb380 lr: 0xfffffe0013d09a2c fp: 0xfffffe30b42eb3f0 lr: 0xfffffe00144a465c fp: 0xfffffe30b42eb410 lr: 0xfffffe0013ccfc4c fp: 0xfffffe30b42eb420 lr: 0xfffffe001429e04c fp: 0xfffffe30b42eb680 lr: 0xfffffe0013f46010 fp: 0xfffffe30b42eb800 lr: 0xfffffe0013f45544 fp: 0xfffffe30b42eba40 lr: 0xfffffe0013f76a70 fp: 0xfffffe30b42ebb10 lr: 0xfffffe0013f5f944 fp: 0xfffffe30b42ebd60 lr: 0xfffffe0013f604d0 fp: 0xfffffe30b42ebdb0 lr: 0xfffffe00143067ac fp: 0xfffffe30b42ebe40 lr: 0xfffffe0013e1d59c fp: 0xfffffe30b42ebef0 lr: 0xfffffe0013cc37e8 fp: 0xfffffe30b42ebf00 last started kext at 5267458626: com.apple.filesystems.autofs 3.0 (addr 0xfffffe0013b6c000, size 16384) last stopped kext at 4125335571: com.apple.driver.usb.AppleUSBHostPacketFilter 1.0 (addr 0xfffffe0013a5c000, size 16384) loaded kexts: com.apple.filesystems.autofs 3.0 com.apple.fileutil 20.036.15 com.apple.driver.AppleTopCaseHIDEventDriver 4030.5 com.apple.iokit.IOBluetoothSerialManager 8.0.3d9 com.apple.driver.AppleBiometricServices 1 com.apple.driver.BCMWLANFirmware4378.Hashstore 1 com.apple.driver.DiskImages.UDIFDiskImage 493.0.0 com.apple.driver.DiskImages.FileBackingStore 493.0.0 com.apple.driver.CoreKDL 1 com.apple.driver.SEPHibernation 1 com.apple.filesystems.apfs 1677.81.1 com.apple.driver.AppleSmartBatteryManager 161.0.0 com.apple.driver.AppleUSBDeviceNCM 5.0.0 com.apple.driver.AppleThunderboltIP 4.0.3 com.apple.driver.AppleALSColorSensor 1.0.0d1 com.apple.driver.AppleAOPVoiceTrigger 11.5 com.apple.nke.l2tp 1.9 com.apple.filesystems.tmpfs 1 com.apple.IOTextEncryptionFamily 1.0.0 com.apple.filesystems.hfs.kext 556.60.1 com.apple.security.BootPolicy 1 com.apple.BootCache 40 com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0 com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1 com.apple.driver.ApplePMP 1 com.apple.driver.AppleSmartIO2 1 com.apple.AppleEmbeddedSimpleSPINORFlasher 1 com.apple.driver.ApplePMPFirmware 1 com.apple.driver.AppleCS42L83Audio 437.96 com.apple.driver.AppleSPMIPMU 1.0.1 com.apple.driver.AppleDPDisplayTCON 1 com.apple.driver.AppleTAS5770LAmp 437.96 com.apple.driver.AppleSummitLCD 1.0.0 com.apple.driver.AppleT8020SOCTuner 1 com.apple.driver.AppleT8103CLPCv3 1 com.apple.AGXG13G 172.26.2 com.apple.driver.AppleAVD 376 com.apple.driver.AppleAVE2 401.63.3 com.apple.driver.AppleJPEGDriver 4.6.0 com.apple.driver.AppleMobileDispH13G-DCP 140.0 com.apple.driver.usb.AppleUSBHostT8103 1 com.apple.driver.AudioDMAController-T8103 1.59 com.apple.driver.AppleS5L8960XNCO 1 com.apple.driver.AppleT8103PMGR 1 com.apple.driver.AppleS8000AES 1 com.apple.driver.AppleS8000DWI 1.0.0d1 com.apple.driver.AppleS5L8960XWatchDogTimer 1 com.apple.driver.AppleInterruptController 1.0.0d1 com.apple.driver.AppleBluetoothModule 1 com.apple.driver.AppleSamsungSerial 1.0.0d1 com.apple.driver.AppleBCMWLANBusInterfacePCIe 1 com.apple.driver.AppleT8020DART 1 com.apple.driver.AppleSynopsysMIPIDSI 1.0.0 com.apple.driver.AppleS5L8920XPWM 1.0.0d1 com.apple.driver.AppleS5L8940XI2C 1.0.0d2 com.apple.driver.AppleSPIMC 1 com.apple.driver.AppleT8101 1 com.apple.driver.AppleM68Buttons 1.0.0d1 com.apple.iokit.IOUserEthernet 1.0.1 com.apple.iokit.IOKitRegistryCompatibility 1 com.apple.iokit.EndpointSecurity 1 com.apple.driver.AppleDiskImages2 1 com.apple.AppleSystemPolicy 2.0.0 com.apple.nke.applicationfirewall 310 com.apple.kec.InvalidateHmac 1 com.apple.kext.triggers 1.0 com.apple.driver.usb.IOUSBHostHIDDevice 1.2 com.apple.driver.AppleHIDKeyboard 223 com.apple.driver.AppleActuatorDriver 4400.28 com.apple.driver.AppleMultitouchDriver 4400.28 com.apple.driver.AppleHSBluetoothDriver 4030.5 com.apple.driver.IOBluetoothHIDDriver 8.0.3d9 com.apple.iokit.IOAVBFamily 930.1 com.apple.plugin.IOgPTPPlugin 900.11 com.apple.iokit.IOEthernetAVBController 1.1.0 com.apple.driver.AppleMesaSEPDriver 100.99 com.apple.iokit.IOBiometricFamily 1 com.apple.driver.usb.cdc.ncm 5.0.0 com.apple.driver.usb.cdc 5.0.0 com.apple.driver.AppleUSBAudio 401.4 com.apple.iokit.IOAudioFamily 300.6.1 com.apple.vecLib.kext 1.2.0 com.apple.driver.DiskImages.KernelBacked 493.0.0 com.apple.driver.AppleSEPHDCPManager 1.0.1 com.apple.iokit.AppleSEPGenericTransfer 1 com.apple.driver.IOBluetoothHostControllerPCIeTransport 8.0.3d9 com.apple.iokit.IOBluetoothHostControllerTransport 8.0.3d9 com.apple.driver.AppleConvergedIPCOLYBTControl 1 com.apple.driver.AppleConvergedPCI 1 com.apple.driver.AppleBluetoothDebug 1 com.apple.driver.AppleBTM 1.0.1 com.apple.driver.usb.networking 5.0.0 com.apple.driver.AppleThunderboltPCIDownAdapter 4.1.1 com.apple.driver.AppleThunderboltDPInAdapter 8.1.4 com.apple.driver.AppleThunderboltDPAdapterFamily 8.1.4 com.apple.driver.AppleThunderboltUSBDownAdapter 1.0.4 com.apple.driver.AppleAOPAudio 14.32 com.apple.nke.ppp 1.9 com.apple.driver.AppleBSDKextStarter 3 com.apple.driver.AppleDCPDPTXProxy 1.0.0 com.apple.driver.DCPDPFamilyProxy 1 com.apple.filesystems.hfs.encodings.kext 1 com.apple.driver.AppleSPU 1 com.apple.driver.AppleDiagnosticDataAccessReadOnly 1.0.0 com.apple.AGXFirmwareKextG13GRTBuddy 172.26.2 com.apple.AGXFirmwareKextRTBuddy64 172.26.2 com.apple.iokit.IONVMeFamily 2.1.0 com.apple.driver.AppleNANDConfigAccess 1.0.0 com.apple.driver.AppleHPM 3.4.4 com.apple.driver.AppleCSEmbeddedAudio 437.96 com.apple.driver.AppleStockholmControl 1.0.0 com.apple.driver.AppleDialogPMU 1.0.1 com.apple.driver.AppleHIDTransportSPI 4400.35 com.apple.driver.AppleHIDTransport 4400.35 com.apple.driver.AppleInputDeviceSupport 4400.35 com.apple.driver.AppleEmbeddedAudio 437.96 com.apple.iokit.AppleARMIISAudio 80.34 com.apple.driver.ApplePassthroughPPM 3.0 com.apple.iokit.IOGPUFamily 20.23 com.apple.driver.AppleH11ANEInterface 4.52.0 com.apple.driver.AppleH13CameraInterface 2.82.0 com.apple.driver.AppleH10PearlCameraInterface 14.70.0 com.apple.driver.DCPAVFamilyProxy 1 com.apple.iokit.IOMobileGraphicsFamily-DCP 343.0.0 com.apple.driver.AppleDCP 1 com.apple.driver.AppleFirmwareKit 1 com.apple.driver.AppleSPMI 1.0.1 com.apple.driver.AppleUSBXDCIARM 1.0 com.apple.driver.AppleUSBXDCI 1.0 com.apple.iokit.IOUSBDeviceFamily 2.0.0 com.apple.driver.usb.AppleUSBXHCIARM 1 com.apple.driver.usb.AppleUSBXHCI 1.2 com.apple.driver.AppleEmbeddedUSBHost 1 com.apple.driver.usb.AppleUSBHub 1.2 com.apple.driver.usb.AppleUSBHostCompositeDevice 1.2 com.apple.driver.AppleT8103TypeCPhy 1 com.apple.driver.AppleSART 1 com.apple.driver.ApplePMGR 1 com.apple.driver.watchdog 1 com.apple.driver.AppleDisplayCrossbar 1.0.0 com.apple.iokit.IODisplayPortFamily 1.0.0 com.apple.driver.AppleTypeCPhy 1 com.apple.driver.AppleThunderboltNHI 7.2.8 com.apple.driver.AppleT8103PCIeC 1 com.apple.iokit.IOThunderboltFamily 9.3.2 com.apple.driver.ApplePIODMA 1 com.apple.driver.AppleT8103PCIe 1 com.apple.driver.AppleBluetoothDebugService 1 com.apple.driver.AppleBCMWLANCore 1.0.0 com.apple.iokit.IO80211FamilyV2 1200.12.2b1 com.apple.driver.IOImageLoader 1.0.0 com.apple.driver.AppleMobileDispH13G-DFR 140.0 com.apple.iokit.IOMobileGraphicsFamily 343.0.0 com.apple.driver.AppleMCA2-T8103 510.72 com.apple.driver.AppleGPIOICController 1.0.2 com.apple.driver.AppleFireStormErrorHandler 1 com.apple.driver.AppleMultiFunctionManager 1 com.apple.driver.corecapture 1.0.4 com.apple.driver.AppleEmbeddedPCIE 1 com.apple.driver.AppleMobileApNonce 1 com.apple.iokit.IOTimeSyncFamily 900.11 com.apple.driver.DiskImages 493.0.0 com.apple.iokit.IOGraphicsFamily 585 com.apple.iokit.IOBluetoothFamily 8.0.3d9 com.apple.iokit.IOBluetoothPacketLogger 8.0.3d9 com.apple.driver.FairPlayIOKit 68.6.0 com.apple.iokit.CoreAnalyticsFamily 1 com.apple.driver.AppleSSE 1.0 com.apple.driver.AppleSEPKeyStore 2 com.apple.driver.AppleUSBTDM 511.60.2 com.apple.iokit.IOUSBMassStorageDriver 184.40.6 com.apple.iokit.IOPCIFamily 2.9 com.apple.iokit.IOSCSIBlockCommandsDevice 436.40.6 com.apple.iokit.IOSCSIArchitectureModelFamily 436.40.6 com.apple.driver.AppleIPAppender 1.0 com.apple.driver.AppleFDEKeyStore 28.30 com.apple.driver.AppleEffaceableStorage 1.0 com.apple.driver.AppleCredentialManager 1.0 com.apple.driver.KernelRelayHost 1 com.apple.iokit.IOUSBHostFamily 1.2 com.apple.driver.AppleUSBHostMergeProperties 1.2 com.apple.driver.usb.AppleUSBCommon 1.0 com.apple.driver.AppleSMC 3.1.9 com.apple.driver.RTBuddy 1.0.0 com.apple.driver.AppleEmbeddedTempSensor 1.0.0 com.apple.driver.AppleARMPMU 1.0 com.apple.iokit.IOAccessoryManager 1.0.0 com.apple.driver.AppleOnboardSerial 1.0 com.apple.iokit.IOSkywalkFamily 1 com.apple.driver.mDNSOffloadUserClient 1.0.1b8 com.apple.iokit.IONetworkingFamily 3.4 com.apple.iokit.IOSerialFamily 11 com.apple.driver.AppleSEPManager 1.0.1 com.apple.driver.AppleA7IOP 1.0.2 com.apple.driver.IOSlaveProcessor 1 com.apple.driver.AppleBiometricSensor 2 com.apple.iokit.IOHIDFamily 2.0.0 com.apple.AUC 1.0 com.apple.iokit.IOAVFamily 1.0.0 com.apple.iokit.IOHDCPFamily 1.0.0 com.apple.iokit.IOCECFamily 1 com.apple.iokit.IOAudio2Family 1.0 com.apple.driver.AppleEmbeddedAudioLibs 1.17 com.apple.driver.AppleFirmwareUpdateKext 1 com.apple.driver.AppleM2ScalerCSCDriver 265.0.0 com.apple.iokit.IOSurface 289.3 com.apple.driver.IODARTFamily 1 com.apple.security.quarantine 4 com.apple.security.sandbox 300.0 com.apple.kext.AppleMatch 1.0.0d1 com.apple.driver.AppleMobileFileIntegrity 1.0.5 com.apple.kext.CoreTrust 1 com.apple.security.AppleImage4 3.0.0 com.apple.iokit.IOCryptoAcceleratorFamily 1.0.1 com.apple.driver.AppleARMPlatform 1.0.2 com.apple.iokit.IOStorageFamily 2.1 com.apple.iokit.IOSlowAdaptiveClockingFamily 1.0.0 com.apple.iokit.IOReportFamily 47 com.apple.kec.pthread 1 com.apple.kec.corecrypto 11.1 com.apple.kec.Libm 1 ** Stackshot Succeeded ** Bytes Traced 441554 (Uncompressed 1132912) ** ```

claudiaregio commented 3 years ago

Hi @ggrantrowberry, does this happen when you try to create a new notebook from the command palette? Hold down cmd + shift + P and select "Jupyter: Create new blank notebook"?

I am not able to reproduce with the exact same setup. Same VS Code version, Mac M1 + iOS version, extension version, python version, and environment. Not sure what could be happening here, could potentially be an issue with the computer? Will have someone else take a look tomorrow to see if there are other thoughts.

claudiaregio commented 3 years ago

Does it happen just with .ipynb files or other files as well? Could you try creating a .py file and see if the same thing happens?

ggrantrowberry commented 3 years ago

Hi @ggrantrowberry, does this happen when you try to create a new notebook from the command palette? Hold down cmd + shift + P and select "Jupyter: Create new blank notebook"?

The crashing does not happen with other file types. I was able to create a new blank notebook using this method. I tried creating a second one and then it crashed. Once my machine rebooted I opened VS Code and it tried automatically opening the .ipynb file I had created previously. It then immediately crashed.

I wasn't able to open VS Code to work on other file types so I uninstalled VS Code and downloaded it again. I downloaded the Mac Universal version of VS Code. I tried creating new .ipynb files and had no issue. I could also open up multiple at once. My previous install was the Apple Silicon version of VS Code. So, to verify, I uninstalled the Universal version and re-downloaded the Apple Silicon version and the same crashing happened. It looks like it is just a problem in the Apple Silicon version of VS Code.

claudiaregio commented 3 years ago

Issue moved to microsoft/vscode #123903 via ZenHub

claudiaregio commented 3 years ago

@ggrantrowberry Thanks for the extra information! Glad you were able to get it working. I had the Apple Silicon version of VS Code as well but was still not able to reproduce...I have transferred the issue to see if there is anything to double check on our end regarding that build