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

Mac crashes when I click the 'Templates' button #24890

Open
giacomocaironi opened this issue Jan 10, 2019 · 14 comments
Assignees

Comments

@giacomocaironi
Copy link

@giacomocaironi giacomocaironi commented Jan 10, 2019

Godot version:
Godot 3.1 Beta
Godot 3.0.6

OS/device including version:
iMac (27-inch, Late 2012), macOS High Sierra

Issue description:
Computer crashes when I click on the templates button and the Asset Lib button.
Same problem of this issue #23202 but in this case that solution does't work.

@akien-mga

This comment has been minimized.

Copy link
Member

@akien-mga akien-mga commented Jan 11, 2019

Is there any specific error reported?

@giacomocaironi

This comment has been minimized.

Copy link
Author

@giacomocaironi giacomocaironi commented Jan 11, 2019

Where I could get these errors?

@akien-mga

This comment has been minimized.

Copy link
Member

@akien-mga akien-mga commented Jan 11, 2019

If it actually crashes, macOS has a crash handler that you can use to get the crash details. I think it shows up by itself saying "Application has crashed" with possibility to see details.

Otherwise, launch Godot from the command line to see the output in the terminal.

@giacomocaironi

This comment has been minimized.

Copy link
Author

@giacomocaironi giacomocaironi commented Jan 11, 2019

Nothing shows up because the computer crashes, not only Godot

@giacomocaironi

This comment has been minimized.

Copy link
Author

@giacomocaironi giacomocaironi commented Jan 11, 2019

Anyway my computer crashes also if I try the download the export templates from within the editor

@akien-mga

This comment has been minimized.

Copy link
Member

@akien-mga akien-mga commented Jan 11, 2019

@Faless Any idea how HTTP requests could crash an OS? o_O

@bruvzg

This comment has been minimized.

Copy link
Member

@bruvzg bruvzg commented Jan 11, 2019

Can't reproduce.

Templates in project manager works OK, but project manager sometimes freezes on exit if Templates tab was opened. With one network thread waiting for semaphore and another one stuck in NetSocketPosix::recv.

Asset Lib in editor works correctly, including exiting editor.

@bruvzg

This comment has been minimized.

Copy link
Member

@bruvzg bruvzg commented Jan 11, 2019

Where I could get these errors?

You can look for crash reports in ⁨Applications⁩ ▸ ⁨Utilities⁩ ▸ ⁨Console⁩.app, User Reports section. Look for Godot_date_time_machinename.crash records.

@Faless

This comment has been minimized.

Copy link
Contributor

@Faless Faless commented Jan 15, 2019

Any idea how HTTP requests could crash an OS? o_O

That sounds like fun for a security researcher...

Templates in project manager works OK, but project manager sometimes freezes on exit if Templates tab was opened. With one network thread waiting for semaphore and another one stuck in NetSocketPosix::recv.

That's an Heisenbug I've been trying to hunt down for a while :(

@monsieurpigeon

This comment has been minimized.

Copy link

@monsieurpigeon monsieurpigeon commented Aug 8, 2019

Just got this error after : clicking on asset manager templates, hard shutdown, reboot.

*** Panic Report ***
panic(cpu 0 caller 0xffffff8012514f25): "m_free: freeing an already freed mbuf"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4903.270.47/bsd/kern/uipc_mbuf.c:3792
@rcarmo

This comment has been minimized.

Copy link

@rcarmo rcarmo commented Sep 28, 2019

I am getting exactly the same kernel panic on a MacBook Air running Mojave, within 30s of Godot being launched, regardless of what we do.

Interestingly enough, it happens on my kids' restricted accounts, but (so far, after 5 minutes of testing) not on mine.

I don't have Godot crash logs - I have kernel panic logs (the entire machine goes poof), with the crash logs point to it happening inside Godot:

Anonymous UUID:       4CABA775-C409-456C-6A9F-10E52AA3A7B3

Sat Sep 28 15:07:00 2019

*** Panic Report ***
panic(cpu 3 caller 0xffffff8018514f25): "m_free: freeing an already freed mbuf"@/BuildRoot/Library/Caches/com.apple.xbs/Sources/xnu/xnu-4903.270.47/bsd/kern/uipc_mbuf.c:3792
Backtrace (CPU 3), Frame : Return Address
0xffffff91265838d0 : 0xffffff8017fad6ed 
0xffffff9126583920 : 0xffffff80180e9185 
0xffffff9126583960 : 0xffffff80180da8ba 
0xffffff91265839d0 : 0xffffff8017f5ab40 
0xffffff91265839f0 : 0xffffff8017fad107 
0xffffff9126583b10 : 0xffffff8017facf53 
0xffffff9126583b80 : 0xffffff8018514f25 
0xffffff9126583bb0 : 0xffffff801852fd98 
0xffffff9126583c20 : 0xffffff801853035a 
0xffffff9126583c50 : 0xffffff80183b2c93 
0xffffff9126583cb0 : 0xffffff8018523c5b 
0xffffff9126583dd0 : 0xffffff8018534f68 
0xffffff9126583ed0 : 0xffffff8018534ced 
0xffffff9126583f40 : 0xffffff80185b92ad 
0xffffff9126583fa0 : 0xffffff8017f5b306 

BSD process name corresponding to current thread: Godot

Mac OS version:
18G87

Kernel version:
Darwin Kernel Version 18.7.0: Thu Jun 20 18:42:21 PDT 2019; root:xnu-4903.270.47~4/RELEASE_X86_64
Kernel UUID: 982F17B3-0252-37FB-9869-88B3B1C77335
Kernel slide:     0x0000000017c00000
Kernel text base: 0xffffff8017e00000
__HIB  text base: 0xffffff8017d00000
System model name: MacBookAir7,2 (Mac-937CB26E2E02BB01)

System uptime in nanoseconds: 130856035701
last loaded kext at 53635548881: com.apple.nke.webcontentfilter	5 (addr 0xffffff7f991d8000, size 24576)
loaded kexts:
com.apple.nke.webcontentfilter	5
com.apple.kext.mcx.alr	1180
com.apple.filesystems.exfat	1.4
com.apple.driver.AudioAUUC	1.70
com.apple.fileutil	20.036.15
com.apple.driver.AGPM	110.25.11
com.apple.driver.ApplePlatformEnabler	2.7.0d0
com.apple.driver.X86PlatformShim	1.0.0
com.apple.filesystems.autofs	3.0
com.apple.driver.AppleHDAHardwareConfigDriver	282.54
com.apple.driver.AppleUpstreamUserClient	3.6.5
com.apple.driver.AppleHDA	282.54
com.apple.driver.AppleGraphicsDevicePolicy	3.50.12
com.apple.AGDCPluginDisplayMetrics	3.50.12
com.apple.driver.AppleIntelBDWGraphics	12.1.0
com.apple.driver.AppleHV	1
com.apple.iokit.IOUserEthernet	1.0.1
com.apple.driver.AGDCBacklightControl	3.50.12
com.apple.driver.AppleThunderboltIP	3.1.2
com.apple.driver.eficheck	1
com.apple.iokit.IOBluetoothSerialManager	6.0.14d3
com.apple.driver.pmtelemetry	1
com.apple.Dont_Steal_Mac_OS_X	7.0.0
com.apple.driver.AppleBacklight	170.12.12
com.apple.driver.AppleFIVRDriver	4.1.0
com.apple.driver.AppleCameraInterface	6.8.0
com.apple.driver.AppleIntelBDWGraphicsFramebuffer	12.1.0
com.apple.driver.AppleLPC	3.1
com.apple.driver.AppleOSXWatchdog	1
com.apple.driver.AppleSMCLMU	212
com.apple.driver.AppleIntelSlowAdaptiveClocking	4.0.0
com.apple.driver.ACPI_SMC_PlatformPlugin	1.0.0
com.apple.driver.AppleMCCSControl	1.5.9
com.apple.iokit.IOBluetoothUSBDFU	6.0.14d3
com.apple.iokit.SCSITaskUserClient	408.250.3
com.apple.driver.AppleUSBStorageCoexistentDriver	456.260.3
com.apple.driver.AppleUSBCardReader	456.260.3
com.apple.driver.AppleFileSystemDriver	3.0.1
com.apple.driver.AppleVirtIO	2.1.3
com.apple.filesystems.hfs.kext	407.200.4
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless	1.0.0d1
com.apple.BootCache	40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib	1.0.0
com.apple.AppleSystemPolicy	1.0
com.apple.driver.AppleTopCaseHIDEventDriver	138.4
com.apple.filesystems.apfs	945.275.7
com.apple.driver.AppleAHCIPort	329.260.5
com.apple.driver.AirPort.BrcmNIC	1400.1.1
com.apple.private.KextAudit	1.0
com.apple.driver.AppleSmartBatteryManager	161.0.0
com.apple.driver.AppleRTC	2.0
com.apple.driver.AppleACPIButtons	6.1
com.apple.driver.AppleHPET	1.8
com.apple.driver.AppleSMBIOS	2.1
com.apple.driver.AppleACPIEC	6.1
com.apple.driver.AppleAPIC	1.7
com.apple.nke.applicationfirewall	201
com.apple.security.TMSafetyNet	8
com.apple.kext.triggers	1.0
com.apple.driver.DspFuncLib	282.54
com.apple.kext.OSvKernDSPLib	528
com.apple.driver.AppleGraphicsControl	3.50.12
com.apple.iokit.IOAVBFamily	760.6
com.apple.plugin.IOgPTPPlugin	740.2
com.apple.iokit.IOEthernetAVBController	1.1.0
com.apple.iokit.IOSkywalkFamily	1
com.apple.driver.AppleSSE	1.0
com.apple.driver.AppleBacklightExpert	1.1.0
com.apple.iokit.IONDRVSupport	530.51
com.apple.driver.AppleHDAController	282.54
com.apple.iokit.IOHDAFamily	282.54
com.apple.driver.AppleThunderboltEDMSink	4.2.0
com.apple.driver.AppleThunderboltDPOutAdapter	5.6.9
com.apple.iokit.IOAcceleratorFamily2	404.14
com.apple.iokit.IOSurface	255.6.1
com.apple.driver.AppleSMBusPCI	1.0.14d1
com.apple.AppleGPUWrangler	3.50.12
com.apple.AppleGraphicsDeviceControl	3.50.12
com.apple.iokit.IOSlowAdaptiveClockingFamily	1.0.0
com.apple.driver.IOPlatformPluginLegacy	1.0.0
com.apple.driver.X86PlatformPlugin	1.0.0
com.apple.driver.IOPlatformPluginFamily	6.0.0d8
com.apple.driver.AppleSMBusController	1.0.18d1
com.apple.iokit.IOGraphicsFamily	530.66
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport	6.0.14d3
com.apple.iokit.IOBluetoothHostControllerUSBTransport	6.0.14d3
com.apple.iokit.IOBluetoothHostControllerTransport	6.0.14d3
com.apple.driver.usb.AppleUSBHub	1.2
com.apple.iokit.IOUSBMassStorageClass	4.0.4
com.apple.driver.AppleUSBAudio	315.6
com.apple.driver.usb.IOUSBHostHIDDevice	1.2
com.apple.iokit.IOAudioFamily	206.5
com.apple.vecLib.kext	1.2.0
com.apple.driver.usb.cdc	5.0.0
com.apple.driver.usb.networking	5.0.0
com.apple.driver.usb.AppleUSBHostCompositeDevice	1.2
com.apple.iokit.IOSerialFamily	11
com.apple.filesystems.hfs.encodings.kext	1
com.apple.driver.AppleUSBMergeNub	900.4.2
com.apple.driver.AppleHSBluetoothDriver	138.4
com.apple.driver.IOBluetoothHIDDriver	6.0.14d3
com.apple.iokit.IOBluetoothFamily	6.0.14d3
com.apple.driver.AppleMultitouchDriver	2450.1
com.apple.driver.AppleInputDeviceSupport	2440.2
com.apple.driver.AppleHIDKeyboard	208
com.apple.driver.AppleHSSPIHIDDriver	55.1
com.apple.driver.AppleXsanScheme	3
com.apple.iokit.IOAHCIBlockStorage	301.270.1
com.apple.iokit.IOAHCIFamily	288
com.apple.driver.AppleThunderboltDPInAdapter	5.6.9
com.apple.driver.AppleThunderboltDPAdapterFamily	5.6.9
com.apple.driver.AppleThunderboltPCIDownAdapter	2.1.5
com.apple.driver.AppleThunderboltNHI	4.7.9
com.apple.iokit.IOThunderboltFamily	6.8.6
com.apple.iokit.IO80211Family	1200.12.2
com.apple.driver.mDNSOffloadUserClient	1.0.1b8
com.apple.driver.corecapture	1.0.4
com.apple.driver.AppleHSSPISupport	55.1
com.apple.driver.AppleIntelLpssSpiController	3.0.60
com.apple.driver.AppleIntelLpssDmac	3.0.60
com.apple.driver.AppleIntelLpssGspi	3.0.60
com.apple.driver.AppleIntelLpssI2C	3.0.60
com.apple.driver.usb.AppleUSBXHCIPCI	1.2
com.apple.driver.usb.AppleUSBXHCI	1.2
com.apple.driver.usb.AppleUSBHostPacketFilter	1.0
com.apple.iokit.IOUSBFamily	900.4.2
com.apple.driver.AppleUSBHostMergeProperties	1.2
com.apple.driver.AppleEFINVRAM	2.1
com.apple.driver.AppleEFIRuntime	2.1
com.apple.iokit.IOSMBusFamily	1.1
com.apple.iokit.IOHIDFamily	2.0.0
com.apple.security.quarantine	3
com.apple.security.sandbox	300.0
com.apple.kext.AppleMatch	1.0.0d1
com.apple.driver.DiskImages	493.0.0
com.apple.driver.AppleFDEKeyStore	28.30
com.apple.driver.AppleEffaceableStorage	1.0
com.apple.driver.AppleKeyStore	2
com.apple.driver.AppleUSBTDM	456.260.3
com.apple.driver.AppleMobileFileIntegrity	1.0.5
com.apple.iokit.IOUSBMassStorageDriver	145.200.2
com.apple.iokit.IOSCSIBlockCommandsDevice	408.250.3
com.apple.iokit.IOSCSIArchitectureModelFamily	408.250.3
com.apple.iokit.IOStorageFamily	2.1
com.apple.kext.CoreTrust	1
com.apple.driver.AppleCredentialManager	1.0
com.apple.driver.KernelRelayHost	1
com.apple.iokit.IOUSBHostFamily	1.2
com.apple.driver.usb.AppleUSBCommon	1.0
com.apple.driver.AppleBusPowerController	1.0
com.apple.driver.AppleSEPManager	1.0.1
com.apple.driver.IOSlaveProcessor	1
com.apple.iokit.IOReportFamily	47
com.apple.iokit.IOTimeSyncFamily	740.2
com.apple.iokit.IONetworkingFamily	3.4
com.apple.driver.AppleACPIPlatform	6.1
com.apple.driver.AppleSMC	3.1.9
com.apple.iokit.IOPCIFamily	2.9
com.apple.iokit.IOACPIFamily	1.4
com.apple.kec.pthread	1
com.apple.kec.Libm	1
com.apple.kec.corecrypto	1.0

EOF

There is no user segment address or debugging information, just the backtrace above and a hint that this might be caused by a content filter (which is consistent with this working on my account and not my kids').

However, it's the first time I've ever seen the web content filter take out the entire machine in well over 20 years of using Macs...

@rcarmo

This comment has been minimized.

Copy link

@rcarmo rcarmo commented Sep 28, 2019

Follow-up: I tried the following steps:

  1. whitelisting godotengine.org for my kids
  2. removing all internet access restrictions
  3. Just leaving it sit after launch

In all cases, Godot caused the machine to panic within a few seconds even if I just let it sit still and didn't click on anything.

When I opened it in my account (which is not an admin account, I never run anything as admin) I was able to download and run a demo.

@Faless

This comment has been minimized.

Copy link
Contributor

@Faless Faless commented Oct 3, 2019

@rcarmo this really seems like an OS problem of some kind.
Having to guess, I would say something is wrong with the content filter.

It's worth noticing, that Apple patched a use-after-free vulnerability in that area (and then fucked up the update of their next OSX version again).

I can suggest you try to update OSX to the last version (September 26, 2019)

See:
https://support.apple.com/en-us/HT210548
https://blog.zecops.com/vulnerabilities/analysis-and-poc-of-content-filter-kernel-use-after-free/

@Faless Faless self-assigned this Oct 3, 2019
@rcarmo

This comment has been minimized.

Copy link

@rcarmo rcarmo commented Oct 9, 2019

That update did not fix the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants
You can’t perform that action at this time.