AndroidStudio Chipmunk heap size for tests runtime - runtime

How can I increase heap size for my tests runtime? Tried Appearance & Behavior > System Settings > Memory Settings with no results.
Using:
Android Studio Chipmunk | 2021.2.1 Patch 1
Build #AI-212.5712.43.2112.8609683, built on May 18, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 4.15.0-142-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 1024M
Cores: 8
Registry: external.system.auto.import.disabled=true, debugger.mayBringFrameToFrontOnBreakpoint=false, ide.instant.shutdown=false

Related

How should I install npm, I tried all of the command but none of worked for me

npm install
audited 17250 packages in 7.466s
26 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
My System Info:
1.OS Name Microsoft Windows 10 Home Single Language
Version 10.0.18363 Build 18363
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name DESKTOP-7CV9HTK
System Manufacturer HP
System Model HP ENVY Laptop 13-ah1xxx
System Type x64-based PC
System SKU 5HZ05PA#AKL
Processor Intel(R) Core(TM) i7-8565U CPU # 1.80GHz, 1992 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date Insyde F.12, 11/8/2018
SMBIOS Version 3.0
Embedded Controller Version 69.72
BIOS Mode UEFI
BaseBoard Manufacturer HP
BaseBoard Product 850B
BaseBoard Version 69.72
Platform Role Mobile
Secure Boot State On
PCR7 Configuration Elevation Required to View
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume2
Locale United States
Hardware Abstraction Layer Version = "10.0.18362.387"
User Name DESKTOP-7CV9HTK\Hanifullah Jamalzai
Time Zone Afghanistan Standard Time
Installed Physical Memory (RAM) 16.0 GB
Total Physical Memory 15.8 GB
Available Physical Memory 9.89 GB
Total Virtual Memory 18.2 GB
Available Virtual Memory 10.3 GB
Page File Space 2.38 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualization-based security Not enabled
Device Encryption Support Elevation Required to View
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualization Enabled in Firmware Yes
Hyper-V - Data Execution Protection Yes
Npm is recognized on cmd but not on vscode?
Assuming you are using windows, you need to update the path in environment/user variables AND restart vscode for it to recognize the changes.
I had Yarn Package Manager which is an alternative to npm. The packages you are trying to install can not be installed with npm, "npm install" will not work because it is not the format used by yarn when you are trying to install some package.

Java3D JOGL (Win7 64) launch causes run-time native code error

I am upgrading my Java3D Win7 app to use JOGL interface, as Oracle has stopped shipping Java3D support in the 1.8.0_33 JRE. I am running Win7 SP1
under Parallels Desktop 10 for the Mac on a MacBook Pro. I am developing with the Eclipse Mars2.0 IDE (Win 64).
The compiler is happy with the build, so it must be finding all the JOGL imports. It's not complaining about any missing files. But, when I launch the app, the app window exists for a fraction of a second, then disappears.
This is the error text in the console:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007fef0ea34d9, pid=5032, tid=1496
#
# JRE version: Java(TM) SE Runtime Environment (8.0_77-b03) (build 1.8.0_77-b03) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.77-b03 mixed mode windows-amd64 compressed oops) # Problematic
frame: # C [prl_gldd.dll+0x134d9] # # Failed to write core
dump. Minidumps are not enabled by default on client versions of
Windows

Testing MS-CAPI CSP, signature fails even with WinDbg kernel debugging

Trying to test a new CSP under Win 7. Set the boot config to allow kernel debug, run WndDbg and select file:kernel debug and set to local. Attempting to use signtool with my new CSP still results in signature failure check. Environment is:
OS Name: Microsoft Windows 7 Home Premium
OS Version: 6.1.7601 Service Pack 1 Build 7601
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
System Model: Dell System Inspiron N7110
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 42 Stepping 7 GenuineIntel ~2501 Mhz
BIOS Version: Dell Inc. A09, 11/18/2011
Windows Directory: C:\Windows
System Directory: C:\Windows\system32
Any thoughts on why the presence of the kernel debugger is not preventing the signature check on the test CSP? Does that setup only work in a remote-debug environment?
You'll need a remote debugger to disable the signature check.
There are various mechanisms such as 1394 (FireWire) or Serial Cable by which you can can connect the second computer for remote debugging.
If your CSP can run in a VM, then that would be an option too if you just have the one machine.

Windows Server 2012 R2 in Virtualbox error

I'm trying to install Windows Server 2012 R2 on Virtualbox but I get this error all the time:
Proccessor: Intel(R) Core(TM) i5 CPU
System type: 64-bit
ISO file: en_windows_server_2012_x64_dvd_915478.iso
I've tried many things and had no result, I tried on another computer but got the same error.
When creating a new VirtualMachine I used "Windows > Other Windows" and created a new VDI
Common problem. You have to activate virtualization in your bios. If doesn't matter if you have a 64 bits CPU if you don't have the virtualization activated. This is an example.

Java and virtual memory ulimit

I am trying to use java in an environment where the virtual memory is limited to 2GB by ulimit -v 2000000 but I get memory errors. Running java -version in this environment gives:
$ java -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
No matter how low I set -Xmx, I cannot get java to run under this environment. However, if ulimit -v is set to 2.5GB, then I can set -Xmx to 250m, but no higher.
$ java -Xmx250m -version
java version "1.7.0_19"
OpenJDK Runtime Environment (rhel-2.3.9.1.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
$ java -Xmx251m -version
#
# There is insufficient memory for the Java Runtime Environment to continue.
# pthread_getattr_np
java version "1.7.0_19"
OpenJDK Runtime Environment (rhel-2.3.9.1.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)# An error report file with more information is saved as:
# ~/hs_err_pid12079.log
Is it possible to use java in an environment where ulimit is used to limit the virtual memory?
This is a well known giant bug in all available JVMs (oracle or openjdk, version 6,7,8). Reported here:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1241926
https://bugs.openjdk.java.net/browse/JDK-8071445
Unfortunately without solution by the Java developers.
Solution: Play desperately with the various java options or stop using java and java based applications :-(

Resources