Unable to mine on os x 10.13.4 #374

Open
opened 4 months ago by duke · 4 comments
duke commented 4 months ago
Owner

On latest dev branch :

2024-01-04 05:01:11 HushRandomXMiner started
2024-01-04 05:01:11 RandomX cache is null, something is wrong, cannot mine!
2024-01-04 05:01:11 RandomX cache is null, something is wrong, cannot mine!
2024-01-04 05:01:25 RandomXMiner: Cannot create RandomX VM, aborting!

and a coredump.

This means randomx_alloc_cache is returning NULL. My guess is that randomx doesn't like this system with the RANDOMX_FLAG_FULL_MEM that the code uses.

@fekt are you able to initiate mining on all the mac systems you have access to?

On latest `dev` branch : ``` 2024-01-04 05:01:11 HushRandomXMiner started 2024-01-04 05:01:11 RandomX cache is null, something is wrong, cannot mine! 2024-01-04 05:01:11 RandomX cache is null, something is wrong, cannot mine! 2024-01-04 05:01:25 RandomXMiner: Cannot create RandomX VM, aborting! ``` and a coredump. This means `randomx_alloc_cache` is returning NULL. My guess is that randomx doesn't like this system with the `RANDOMX_FLAG_FULL_MEM` that the code uses. @fekt are you able to initiate mining on all the mac systems you have access to?
duke added the
low priority
bug
labels 4 months ago
Collaborator

@duke Yes, mining works fine for me. I know to get the latest RandomX to work, I had to previously comment out some conditional version check stuff for anything below OSX 11:
19e18cf37a

Uncommenting all that or testing with the code that would be used on older versions may work for you. My builds were not recognizing __builtin_available for some reason.

@duke Yes, mining works fine for me. I know to get the latest RandomX to work, I had to previously comment out some conditional version check stuff for anything below OSX 11: https://git.hush.is/hush/hush3/commit/19e18cf37a57f7d89330deb4d8ef36fe520ffc89 Uncommenting all that or testing with the code that would be used on older versions may work for you. My builds were not recognizing `__builtin_available` for some reason.
Poster
Owner

@fekt thanks for the reminder, I forgot that macs were using the old version of randomx with that patch above. Maybe the dev-old-randomx branch without that patch would work on this machine.

Also, I think we need to merge dev into dev-old-randomx or else Mac binaries will identify as 3.10.0 and not have the latest fix for the ASSETCHAINS_SCRIPTPUB bug

@fekt thanks for the reminder, I forgot that macs were using the old version of randomx with that patch above. Maybe the `dev-old-randomx` branch without that patch would work on this machine. Also, I think we need to merge `dev` into `dev-old-randomx` or else Mac binaries will identify as 3.10.0 and not have the latest fix for the ASSETCHAINS_SCRIPTPUB bug
Collaborator

I haven't been using dev-old-randomx on Mac. I want to say I only used it temporarily until I figured out a patch and that's in dev and master branches.

The old files were virtual_memory.cpp and virtual_memory.hpp and both the new and old exist in dev-old-randomx. The patch shouldn't be used at all in that branch since the file names and includes are different. I must have committed there inadvertently while testing so feel free to delete the files or recreate the branch.

I haven't been using `dev-old-randomx` on Mac. I want to say I only used it temporarily until I figured out a patch and that's in `dev` and `master` branches. The old files were `virtual_memory.cpp` and `virtual_memory.hpp` and both the new and old exist in `dev-old-randomx`. The patch shouldn't be used at all in that branch since the file names and includes are different. I must have committed there inadvertently while testing so feel free to delete the files or recreate the branch.
Poster
Owner

@fekt thanks for explaining. If you are sure that dev-old-randomx branch is not needed then I suggest you delete that branch

@fekt thanks for explaining. If you are sure that `dev-old-randomx` branch is not needed then I suggest you delete that branch
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.