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

ASSERT_EFI_ERROR (Status = Invalid Parameter) 46:117 00:009 ASSERT [OpenCore] MemoryAllocationLib.c(148): !(((INTN)(RETURN_STATUS)(Status)) < 0) #2376

Open
heryTz opened this issue Feb 1, 2024 · 5 comments
Labels
bug Something isn't working project:oc

Comments

@heryTz
Copy link

heryTz commented Feb 1, 2024

I'm trying to boot Monterey 12 with OpenCore 0.9.7.

It looks like it can't allocate memory from the error message.

The specification of my system:

─ CPU
  └── Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
      ├── SSE: SSE4.2
      ├── SSSE3: Supported
      ├── Cores: 4
      └── Threads: 8

─ Motherboard
  ├── Model: 83B2
  └── Vendor: HP

─ GPU
  └── UHD Graphics 620
      ├── Device ID: 0x5917
      ├── Vendor: 0x8086
      ├── ACPI Path: \_SB_.PCI0.GFX0
      └── PCI Path: PciRoot(0x0)/Pci(0x2,0x0)

─ Network
  ├── Ethernet Connection (4) I219-LM
  │   ├── Device ID: 0x15d7
  │   ├── Vendor: 0x8086
  │   ├── ACPI Path: \_SB_.PCI0.GLAN
  │   └── PCI Path: PciRoot(0x0)/Pci(0x1f,0x6)
  └── Wireless 8265 / 8275
      ├── Device ID: 0x24fd
      ├── Vendor: 0x8086
      ├── ACPI Path: \_SB_.PCI0.RP04.PXSX
      └── PCI Path: PciRoot(0x0)/Pci(0x1c,0x0)/Pci(0x0,0x0)

─ Audio
  └── Sunrise Point-LP HD Audio
      ├── Device ID: 0x9d71
      ├── Vendor: 0x8086
      ├── ACPI Path: \_SB_.PCI0.HDAS
      ├── PCI Path: PciRoot(0x0)/Pci(0x1f,0x3)
      └── Codec: CX8200

─ Storage
  ├── ADATA USB Flash Drive
  │   ├── Type: Hard Disk Drive (HDD)
  │   ├── Connector: SCSI
  │   └── Location: External
  └── ATA SanDisk SD9SN8W-
      ├── Type: Solid State Drive (SSD)
      ├── Connector: SCSI
      └── Location: Internal

EFI.zip
opencore-2024-02-01-110158.txt

@mikebeaton mikebeaton added bug Something isn't working project:oc labels Feb 1, 2024
@mikebeaton
Copy link
Contributor

mikebeaton commented Feb 1, 2024

Hi - Please could you get an OpenCore log using the debug build from inside 'macOS XCODE5 Artifacts' here: https://github.com/acidanthera/OpenCorePkg/actions/runs/7748685601 - the idea is to get a bit more data on exactly which call to FreePool is failing. (To get this build artifacts file you have to be logged in to GitHub, and you have to wait a moment for the build artifacts to appear, and then scroll down to the very bottom of the screen.)

@mikebeaton
Copy link
Contributor

mikebeaton commented Feb 3, 2024

Hi - Not sure if some context will help. I don't think it is running out of memory. It appears to be failing when freeing some memory which is has already successfully used (which could be caused e.g. by freeing a NULL ptr, freeing memory which was already freed, freeing a corrupted pointer). This is occurring after kext prelinking and patching (using that allocated memory) has finished and succeeded. Additionally, your exact EFI is booting Monterey 12.7.3 (21H1015) successfully on a different machine (a Dell) which I have tested here (network disabled of course; and some features of macOS not working when booted with this mismatched EFI, of course). I might have expected, or hoped, to replicate your error when using your EFI - even on a different machine, assuming it gets as far as where you saw the error - but I don't. However the error seems clear and real. So debugging it would either involve someone here purchasing the exact same machine, or (hopefully simpler and quicker) someone here sending you test versions to run on your machine, and you sending back the logs from running these.

@heryTz
Copy link
Author

heryTz commented Feb 3, 2024

I've used other EFI setups and it worked. I will drag the configuration here as soon as the PC is at my disposal.
Otherwise, I'm interested if someone can give me the test version to recover the logs.

@mikebeaton
Copy link
Contributor

mikebeaton commented Feb 3, 2024

Not sure if I fully understood, but here is the test version (again).
OpenCore-0.9.8-DEBUG.zip
EFI_test.zip

@mikebeaton
Copy link
Contributor

Have managed to get hold of very similar hardware and cannot replicate. However an assert, as opposed to some clean error followed by halt or restart, is still something we would ideally like to get to the bottom of.

Logs from test version as above would be very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working project:oc
Development

No branches or pull requests

2 participants