Crash when creating RenderTargetViews for Cubemap

I want to create a cubemap and I want to render to it and later sample from it for reflections. However, It crashes when I try to create the faces for the cubemap. Here is my code:

RenderTargetCube::RenderTargetCube(ID3D11Device* device, int resolution, DXGI_FORMAT format) {      D3D11_TEXTURE2D_DESC desc = {};     desc.Width = resolution;     desc.Height = resolution;     desc.MipLevels = 1;     desc.ArraySize = 6;     desc.Format = format;     desc.SampleDesc.Count = 1;     desc.SampleDesc.Quality = 0;     desc.Usage = D3D11_USAGE_DEFAULT;     desc.BindFlags = D3D11_BIND_RENDER_TARGET | D3D11_BIND_SHADER_RESOURCE;     desc.CPUAccessFlags = 0;     desc.MiscFlags = D3D11_RESOURCE_MISC_TEXTURECUBE;      HRESULT res = device->CreateTexture2D(&desc, NULL, &Texture);     throwIfFailed(res);      D3D11_RENDER_TARGET_VIEW_DESC viewDesc = {};     viewDesc.Format = desc.Format;     viewDesc.Texture2DArray.ArraySize = 6;     viewDesc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2DARRAY;     for (int i = 0; i < 6; i++) {         viewDesc.Texture2DArray.FirstArraySlice = D3D11CalcSubresource(0, i, 1);         res = device->CreateRenderTargetView(Texture.Get(), &viewDesc, RenderTargetView[i].GetAddressOf()); // crash here         throwIfFailed(res);      } 

and here is the message I receive:

D3D11 ERROR: ID3D11Device::CreateRenderTargetView: The Dimensions of the View are invalid due to at least one of the following conditions. MipSlice (value = 0) must be between 0 and MipLevels-1 of the Texture Resource, 0, inclusively. FirstArraySlice (value = 1) must be between 0 and ArraySize-1 of the Texture Resource, 5, inclusively. With the current FirstArraySlice, ArraySize (value = 6) must be between 1 and 5, inclusively, or -1 to default to all slices from FirstArraySlice, in order that the View fit on the Texture. [ STATE_CREATION ERROR #137: CREATERENDERTARGETVIEW_INVALIDDIMENSIONS]

I dont quite understand the error message, especially the last part about ArraySize, why does it want it to be between 1 and 5 and not 0 to 5?

memcpy() in device/program with jemalloc allocator does not crash

Managed to get signed length value to memcpy()

02-16 01:44:49.096  6423  6471 W bt_hci_packet_fragmenter: reassemble_and_dispatch reassemble_and_dispatch 02-16 01:44:49.096  6423  6471 W bt_hci_packet_fragmenter: reassemble_and_dispatch partial_packet->offset 40 packet->len 304 HCI_ACL_PREAMBLE_SIZE 4   02-16 01:44:49.096  6423  6471 W bt_hci_packet_fragmenter: reassemble_and_dispatch projected_offset 340 partial_packet->len 41   02-16 01:44:49.096  6423  6471 W bt_hci_packet_fragmenter: reassemble_and_dispatch got packet which would exceed expected length of 41. Truncating. 02-16 01:44:49.096  6423  6471 W bt_hci_packet_fragmenter: reassemble_and_dispatch memcpy packet->len 1 packet->offset 4 expr -3   02-16 01:44:49.096  6423  6471 W bt_hci_packet_fragmenter: reassemble_and_dispatch partial_packet->data 0xacb14580 partial_packet->data + partial_packet->offset 0xacb145a8  packet->data 0xa553e110 packet->data + packet->offset 0xa553e114   02-16 01:44:49.097  6423  6469 W bt_hci_packet_fragmenter: fragment_and_dispatch fragment_and_dispatch 

In the example above, with a memcpy size of -3, this value is interpreted as an unsigned integer (4294967293) and the memcpy continues until there is a page fault due to unmapped memory and the process should terminate.

My phone in 32 bits, maybe that’s why. Mobile is Samsung S3 Neo+. Using jemalloc at least at Android 9.0 tests. Device is ARM arch.

¯_(ツ)_/¯

Any ideas why memcpy does not crash the process here?

memcpy(partial_packet->data + partial_packet->offset,              packet->data + packet->offset, packet->len - packet->offset); 

https://android.googlesource.com/platform/system/bt/+/3cb7149d8fed2d7d77ceaa95bf845224c4db3baf/hci/src/packet_fragmenter.cc#229

More info also here:

https://github.com/marcinguy/CVE-2020-0022

Thanks,

Didn’t work on a 1440P 144hz monitor & crash during installation

Here is my situation. My PC is X570(MSI)+3700X+2070S. My monitor is 1440P 144HZ.

At first, I couldn’t start the installation. Then I changed my monitor to hdmi1.4. The refresh rate was set to 60HZ. After that, I started the installation and crash two times during the installation. I’m not sure I should try the third time. Can anything help me out? with the refresh rate and the crash Thank you so much

Overclock cause fro system crash in Ubuntu?

I have an overclocked system that has been running a 9700k@4.9Ghz for about a year now. I have never had a crash due to overclocked cpu. However, I wanted to set up a ubuntu installation just for fun to play with RetroPie. I set up a dual boot system on my nvme drive, allocating 26 gb to ubuntu. Installation and everything went fine, until I started to clone RetroPie-Setup from git. My system got rebooted three times during the process, no error message or anything ( I don’t know how to check error logs in ubuntu, yet) So I reset everything in my BIOS (I have an Asus z390 Prime) and booted again into ubuntu. The installation process went through rather smoothely. I monitored the clock speeds, they were in tehir normal range for non-oc CPU.

Again, in Windows, I never had any crashed due to overclocking. I finetuned that cpu when I first got it.

So my question is this: Is this a possibility that ocing could be the cause for my system crashes? Could anyone point me to some insightful logs, perhaps in /var/logs ? That I could provide?

I don’t like the fact that I have to change my BIOS Profile for ubuntu, should that in fact be the cause.

Why is DisplayLink causing a crash in 16.04?

Up til a few months ago, my DisplayLink 3 adapter (RayCue) was working fine with my display. An update to Ubuntu 16.04 followed by a reboot somehow screwed things up, where the system freezes at the login display if the DisplayLink device is plugged in on boot.

Unfortunately, I did not take note of the working combination of DisplayLink driver version and kernel version (assuming this is a starting point to fix the problem), but I can observe this problem with DisplayLink drivers 5.1 and 5.2 all with Linux kernel versions 4.4.0-157-generic and 4.4.0-159-generic. I am not using Nvidia drivers.

Could anyone guess at what might be going wrong and what next steps to take?

Ubuntu 19.04 Install fails with Installer crash

I’ve tried everything I can think of to solve this dilemma. Yesterday I had a Ubuntu 19.04 computer, it was however getting a bit bloated and some things (like multiple DNLA media servers) were getting a bit out of hand so I came up with a brilliant solution. First – I had a near-new 1Tb HDD sitting doing nothing, it’s about 3 weeks old Second – The current 2Tb hybrid drive tested OK using smart tools so I leave that installed. Third – powered down the computer, disconnected from power outlet, pressed the ‘on’ button a few times and opened the case added the 1Tb drive to a spare SATA channel and hooked it up the the PSU.

On another computer I downloaded a brand new ISO of Disco Dingo and used Rufus to create a boot drive

Hooked the target PC back up to power/monitor/KB and mouse and booted from USB.

Things seemed to be going swimmingly, along the same path as the initial install. – Remember this is going to be a clean install and all the data I need is on separate back-up solutions.

so Install Ubuntu is selected then Erase drive and use LVM, use 3rd part drivers and codecs, install updates during installation to save time then Install now then select location then a name for the PC on the network, plus a name and password for me is chosen the installer starts ticking over for what seems like hours (but is actually about 20 minutes. Until it comes to a complete halt, I have a window open on the monitor telling me that the CD is dirty or was created too fast, the target drive is failing But …… I’m not using a CD/DVD, one drive is brand spanking new and the other (according to S.M.A.R.T https://en.wikipedia.org/wiki/S.M.A.R.T.) is 360 days old with parameters within the norm.

So I’m stuck the installer then crashes, I send a report using the automated bug reporting tool.

And I start again, a new ISO (passes the SHA256 tests) different USB (in case the old one has some flaw)

First – boot from the USB so far so good, a window in the middle of the screen asks me to try Ubuntu or Install it, I’ve already tried it so I take the install option I only use English and it’s a English (US) keyboard -> CONTINUE Normal Installation/Download updates/Install 3rd party software for graphics wi-fi and media formats -> CONTINUE we have to wait a few minutes while the installer does it’s downloading finally, again, and again “The Installation Failed [Errno 5] Input/Output error This is often ue to a faulty CD/DVD disc or drive, or a faulty hard disk, it may help to clean the CD/DVD, to burn the CD/DVD at a lower speed. to clean the CD/DVD dive lens (cleaning kits are often available from electronics suppliers), to check whether the hard disk is old and in need of a replacement, or to move the system to a cooler environment”

So as the kids say – WTF !

there isn’t any CD/DVD issues in play and the oldest drive is less than a year old. It’s the middle of winter and it’s 14 degrees.

I suspect I may have to try a different installer or something

Ubuntu Crash: systemd-journal Failed to write entry. Ignoring: read-only file system only

I’m on Ubuntu 18.04.3 LTS, Gnome 3.28.2 with no dual boot and no external USB devices. Once a while I get a black terminal screen with this error information.

When I get this black screen the computer doesn’t respond anymore and I have to reboot with the power button.

Hardware & OS info:

(base) x@x:~$   df Filesystem                  1K-blocks     Used Available Use% Mounted on udev                          8074028        0   8074028   0% /dev tmpfs                         1621272     2176   1619096   1% /run /dev/mapper/ubuntu--vg-root 113125620 97117896  10218236  91% / tmpfs                         8106348   126836   7979512   2% /dev/shm tmpfs                            5120        4      5116   1% /run/lock tmpfs                         8106348        0   8106348   0% /sys/fs/cgroup /dev/loop3                       1024     1024         0 100% /snap/gnome-logs/61 /dev/loop2                      69248    69248         0 100% /snap/sublime-text/67 /dev/loop1                       4224     4224         0 100% /snap/gnome-calculator/406 /dev/sda1                      720368   150420    517556  23% /boot /dev/loop4                      90880    90880         0 100% /snap/core/7396 /dev/loop5                     141696   141696         0 100% /snap/thunderbird/29 /dev/loop7                     224256   224256         0 100% /snap/gimp/165 /dev/loop8                      88448    88448         0 100% /snap/ubuntu-mate-welcome/335 /dev/loop11                     19200    19200         0 100% /snap/communitheme/1593 /dev/loop10                     58368    58368         0 100% /snap/powershell/36 /dev/loop12                    268544   268544         0 100% /snap/gnss-sdr-next/285 /dev/loop14                    207232   207232         0 100% /snap/vlc/770 /dev/loop19                     15104    15104         0 100% /snap/gnome-characters/317 /dev/loop16                     99840    99840         0 100% /snap/ubuntu-mate-welcome/296 /dev/loop15                     48896    48896         0 100% /snap/riseup-vpn/152 /dev/loop20                     15104    15104         0 100% /snap/gnome-characters/296 /dev/loop21                    153216   153216         0 100% /snap/slack/16 /dev/loop22                    153600   153600         0 100% /snap/gnome-3-28-1804/71 /dev/loop24                      1280     1280         0 100% /snap/tinc-vpn/2 /dev/loop26                    150144   150144         0 100% /snap/slack/17 /dev/loop27                     43904    43904         0 100% /snap/gtk-common-themes/1313 /dev/loop30                    153600   153600         0 100% /snap/gnome-3-28-1804/67 /dev/loop31                    207744   207744         0 100% /snap/vlc/1049 /dev/loop33                     58368    58368         0 100% /snap/powershell/34 /dev/loop34                     16384    16384         0 100% /snap/communitheme/1768 /dev/loop35                     88832    88832         0 100% /snap/ubuntu-mate-welcome/319 /dev/loop36                    144128   144128         0 100% /snap/gnome-3-26-1604/90 /dev/loop37                    127360   127360         0 100% /snap/electron-mail/13 /dev/loop38                     36224    36224         0 100% /snap/gtk-common-themes/1198 /dev/loop39                    153344   153344         0 100% /snap/chromium/849 /dev/loop40                     77568    77568         0 100% /snap/cubicsdr-casept/4 /dev/loop41                      3840     3840         0 100% /snap/gnome-system-monitor/95 /dev/loop42                     19072    19072         0 100% /snap/communitheme/1524 /dev/loop43                     55808    55808         0 100% /snap/core18/1098 /dev/loop45                    327936   327936         0 100% /snap/pycharm-community/147 /dev/loop46                     69248    69248         0 100% /snap/sublime-text/69 /dev/loop47                      3840     3840         0 100% /snap/gnome-system-monitor/100 /dev/loop48                    224384   224384         0 100% /snap/gimp/189 tmpfs                         1621268       28   1621240   1% /run/user/121 tmpfs                         1621268       76   1621192   1% /run/user/1000 /dev/loop49                    144128   144128         0 100% /snap/gnome-3-26-1604/92 /dev/loop23                     97024    97024         0 100% /snap/telegram-desktop/908 /dev/loop25                     91264    91264         0 100% /snap/core/7713 /dev/loop6                       1024     1024         0 100% /snap/gnome-logs/73 /dev/loop50                      4352     4352         0 100% /snap/gnome-calculator/501 /dev/loop13                     97152    97152         0 100% /snap/telegram-desktop/936 /dev/loop17                    268544   268544         0 100% /snap/gnss-sdr-next/292 /dev/loop0                     159616   159616         0 100% /snap/chromium/853 /dev/loop18                    327936   327936         0 100% /snap/pycharm-community/150 /dev/loop28                     55808    55808         0 100% /snap/core18/1144 (base) x@x:~$    

Hardware list:

root@x:/home/x# lshw x                                description: Notebook     product: 80RU (LENOVO_MT_80RU_BU_idea_FM_Lenovo ideapad 700-15ISK)     vendor: LENOVO     version: Lenovo ideapad 700-15ISK     serial: R90K3F7XR9N0B631000C     width: 64 bits     capabilities: smbios-2.8 dmi-2.8 smp vsyscall32     configuration: administrator_password=enabled boot=normal chassis=notebook family=IDEAPAD frontpanel_password=disabled keyboard_password=disabled power-on_password=disabled sku=LENOVO_MT_80RU_BU_idea_FM_Lenovo ideapad 700-15ISK uuid=800CF8AE-A5E6-E511-88B2-08D40CB5171E   *-core        description: Motherboard        product: Lenovo ideapad 700-15ISK        vendor: LENOVO        physical id: 0        version: SDK0J40709 WIN        serial: R90K3F7X        slot: Part Component      *-cache:0           description: L1 cache           physical id: 2           slot: L1 Cache           size: 128KiB           capacity: 128KiB           capabilities: synchronous internal write-back data           configuration: level=1      *-cache:1           description: L1 cache           physical id: 3           slot: L1 Cache           size: 128KiB           capacity: 128KiB           capabilities: synchronous internal write-back instruction           configuration: level=1      *-cache:2           description: L2 cache           physical id: 4           slot: L2 Cache           size: 1MiB           capacity: 1MiB           capabilities: synchronous internal write-back unified           configuration: level=2      *-cache:3           description: L3 cache           physical id: 5           slot: L3 Cache           size: 6MiB           capacity: 6MiB           capabilities: synchronous internal write-back unified           configuration: level=3      *-cpu           description: CPU           product: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz           vendor: Intel Corp.           physical id: 6           bus info: cpu@0           version: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz           serial: To Be Filled By O.E.M.           slot: U3E1           size: 2349MHz           capacity: 3500MHz           width: 64 bits           clock: 100MHz           capabilities: x86-64 fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d cpufreq           configuration: cores=4 enabledcores=4 threads=8      *-memory           description: System Memory           physical id: 7           slot: System board or motherboard           size: 16GiB         *-bank:0              description: SODIMM DDR4 Synchronous 2133 MHz (0.5 ns)              product: CT8G4SFD8213.C16FBD1              vendor: Conexant (Rockwell)              physical id: 0              serial: 16141922              slot: ChannelA-DIMM0              size: 8GiB              width: 64 bits              clock: 2133MHz (0.5ns)         *-bank:1              description: Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <en_GB@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719)Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <en_GB@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719) [empty]              physical id: 1              slot: ChannelA-DIMM1         *-bank:2              description: SODIMM DDR4 Synchronous 2133 MHz (0.5 ns)              product: CT8G4SFD8213.C16FBD1              vendor: Conexant (Rockwell)              physical id: 2              serial: 16270421              slot: ChannelB-DIMM0              size: 8GiB              width: 64 bits              clock: 2133MHz (0.5ns)         *-bank:3              description: Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <en_GB@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719)Project-Id-Version: lshwReport-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>PO-Revision-Date: 2012-02-05 00:26+0000Last-Translator: Andi Chandler <Unknown>Language-Team: English (United Kingdom) <en_GB@li.org>MIME-Version: 1.0Content-Type: text/plain; charset=UTF-8Content-Transfer-Encoding: 8bitX-Launchpad-Export-Date: 2018-07-12 13:19+0000X-Generator: Launchpad (build 18719) [empty]              physical id: 3              slot: ChannelB-DIMM1      *-firmware           description: BIOS           vendor: LENOVO           physical id: d           version: E5CN21WW           date: 12/28/2015           size: 128KiB           capacity: 8128KiB           capabilities: pci upgrade shadowing cdboot bootselect edd int5printscreen int9keyboard int14serial int17printer int10video pc98 acpi usb ls120boot zipboot biosbootspecification netboot      *-pci           description: Host bridge           product: Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers           vendor: Intel Corporation           physical id: 100           bus info: pci@0000:00:00.0           version: 07           width: 32 bits           clock: 33MHz           configuration: driver=skl_uncore           resources: irq:0         *-pci:0              description: PCI bridge              product: Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16)              vendor: Intel Corporation              physical id: 1              bus info: pci@0000:00:01.0              version: 07              width: 32 bits              clock: 33MHz              capabilities: pci pm msi pciexpress normal_decode bus_master cap_list              configuration: driver=pcieport              resources: irq:120 ioport:d000(size=4096) memory:d1000000-d1ffffff ioport:a0000000(size=301989888)            *-display                 description: 3D controller                 product: GM107M [GeForce GTX 950M]                 vendor: NVIDIA Corporation                 physical id: 0                 bus info: pci@0000:01:00.0                 version: a2                 width: 64 bits                 clock: 33MHz                 capabilities: pm msi pciexpress bus_master cap_list                 configuration: driver=nouveau latency=0                 resources: irq:126 memory:d1000000-d1ffffff memory:a0000000-afffffff memory:b0000000-b1ffffff ioport:d000(size=128)         *-display              description: VGA compatible controller              product: HD Graphics 530              vendor: Intel Corporation              physical id: 2              bus info: pci@0000:00:02.0              version: 06              width: 64 bits              clock: 33MHz              capabilities: pciexpress msi pm vga_controller bus_master cap_list rom              configuration: driver=i915 latency=0              resources: irq:127 memory:d0000000-d0ffffff memory:c0000000-cfffffff ioport:e000(size=64) memory:c0000-dffff         *-usb              description: USB controller              product: 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller              vendor: Intel Corporation              physical id: 14              bus info: pci@0000:00:14.0              version: 31              width: 64 bits              clock: 33MHz              capabilities: pm msi xhci bus_master cap_list              configuration: driver=xhci_hcd latency=0              resources: irq:123 memory:d2200000-d220ffff            *-usbhost:0                 product: xHCI Host Controller                 vendor: Linux 4.15.0-60-generic xhci-hcd                 physical id: 0                 bus info: usb@1                 logical name: usb1                 version: 4.15                 capabilities: usb-2.00                 configuration: driver=hub slots=16 speed=480Mbit/s               *-usb:0                    description: Keyboard                    product: USB Receiver                    vendor: Logitech                    physical id: 1                    bus info: usb@1:1                    version: 29.01                    capabilities: usb-2.00                    configuration: driver=usbhid maxpower=98mA speed=12Mbit/s               *-usb:1                    description: Video                    product: Lenovo EasyCamera                    vendor: Bison                    physical id: 5                    bus info: usb@1:5                    version: 42.09                    serial: 200901010001                    capabilities: usb-2.00                    configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s               *-usb:2                    description: Bluetooth wireless interface                    vendor: Intel Corp.                    physical id: 7                    bus info: usb@1:7                    version: 0.01                    capabilities: bluetooth usb-2.00                    configuration: driver=btusb maxpower=100mA speed=12Mbit/s            *-usbhost:1                 product: xHCI Host Controller                 vendor: Linux 4.15.0-60-generic xhci-hcd                 physical id: 1                 bus info: usb@2                 logical name: usb2                 version: 4.15                 capabilities: usb-3.00                 configuration: driver=hub slots=8 speed=5000Mbit/s         *-generic:0              description: Signal processing controller              product: 100 Series/C230 Series Chipset Family Thermal Subsystem              vendor: Intel Corporation              physical id: 14.2              bus info: pci@0000:00:14.2              version: 31              width: 64 bits              clock: 33MHz              capabilities: pm msi bus_master cap_list              configuration: driver=intel_pch_thermal latency=0              resources: irq:18 memory:d222a000-d222afff         *-communication              description: Communication controller              product: 100 Series/C230 Series Chipset Family MEI Controller #1              vendor: Intel Corporation              physical id: 16              bus info: pci@0000:00:16.0              version: 31              width: 64 bits              clock: 33MHz              capabilities: pm msi bus_master cap_list              configuration: driver=mei_me latency=0              resources: irq:128 memory:d222c000-d222cfff         *-storage              description: SATA controller              product: HM170/QM170 Chipset SATA Controller [AHCI Mode]              vendor: Intel Corporation              physical id: 17              bus info: pci@0000:00:17.0              version: 31              width: 32 bits              clock: 66MHz              capabilities: storage msi pm ahci_1.0 bus_master cap_list              configuration: driver=ahci latency=0              resources: irq:124 memory:d2228000-d2229fff memory:d2230000-d22300ff ioport:e080(size=8) ioport:e088(size=4) ioport:e060(size=32) memory:d222e000-d222e7ff         *-pci:1              description: PCI bridge              product: 100 Series/C230 Series Chipset Family PCI Express Root Port #5              vendor: Intel Corporation              physical id: 1c              bus info: pci@0000:00:1c.0              version: f1              width: 32 bits              clock: 33MHz              capabilities: pci pciexpress msi pm normal_decode bus_master cap_list              configuration: driver=pcieport              resources: irq:121 memory:d2100000-d21fffff            *-network                 description: Wireless interface                 product: Dual Band Wireless-AC 3165 Plus Bluetooth                 vendor: Intel Corporation                 physical id: 0                 bus info: pci@0000:02:00.0                 logical name: wlp2s0                 version: 99                 serial: 08:d4:0c:b5:17:1a                 width: 64 bits                 clock: 33MHz                 capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless                 configuration: broadcast=yes driver=iwlwifi driverversion=4.15.0-60-generic firmware=29.1044073957.0 ip=192.168.1.69 latency=0 link=yes multicast=yes wireless=IEEE 802.11                 resources: irq:129 memory:d2100000-d2101fff         *-pci:2              description: PCI bridge              product: 100 Series/C230 Series Chipset Family PCI Express Root Port #6              vendor: Intel Corporation              physical id: 1c.5              bus info: pci@0000:00:1c.5              version: f1              width: 32 bits              clock: 33MHz              capabilities: pci pciexpress msi pm normal_decode bus_master cap_list              configuration: driver=pcieport              resources: irq:122 ioport:c000(size=4096) memory:d2000000-d20fffff            *-network                 description: Ethernet interface                 product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller                 vendor: Realtek Semiconductor Co., Ltd.                 physical id: 0                 bus info: pci@0000:03:00.0                 logical name: enp3s0                 version: 15                 serial: 54:ee:75:94:08:75                 size: 10Mbit/s                 capacity: 1Gbit/s                 width: 64 bits                 clock: 33MHz                 capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation                 configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s                 resources: irq:17 ioport:c000(size=256) memory:d2004000-d2004fff memory:d2000000-d2003fff         *-generic:1              description: Signal processing controller              product: 100 Series/C230 Series Chipset Family Serial IO UART #0              vendor: Intel Corporation              physical id: 1e              bus info: pci@0000:00:1e.0              version: 31              width: 64 bits              clock: 33MHz              capabilities: pm bus_master cap_list              configuration: driver=intel-lpss latency=0              resources: irq:20 memory:d222d000-d222dfff         *-isa              description: ISA bridge              product: HM170 Chipset LPC/eSPI Controller              vendor: Intel Corporation              physical id: 1f              bus info: pci@0000:00:1f.0              version: 31              width: 32 bits              clock: 33MHz              capabilities: isa bus_master              configuration: latency=0         *-memory UNCLAIMED              description: Memory controller              product: 100 Series/C230 Series Chipset Family Power Management Controller              vendor: Intel Corporation              physical id: 1f.2              bus info: pci@0000:00:1f.2              version: 31              width: 32 bits              clock: 33MHz (30.3ns)              capabilities: bus_master              configuration: latency=0              resources: memory:d2224000-d2227fff         *-multimedia              description: Audio device              product: 100 Series/C230 Series Chipset Family HD Audio Controller              vendor: Intel Corporation              physical id: 1f.3              bus info: pci@0000:00:1f.3              version: 31              width: 64 bits              clock: 33MHz              capabilities: pm msi bus_master cap_list              configuration: driver=snd_hda_intel latency=64              resources: irq:130 memory:d2220000-d2223fff memory:d2210000-d221ffff         *-serial UNCLAIMED              description: SMBus              product: 100 Series/C230 Series Chipset Family SMBus              vendor: Intel Corporation              physical id: 1f.4              bus info: pci@0000:00:1f.4              version: 31              width: 64 bits              clock: 33MHz              configuration: latency=0              resources: memory:d222f000-d222f0ff ioport:efa0(size=32)      *-scsi:0           physical id: 0           logical name: scsi0           capabilities: emulated         *-disk              description: ATA Disk              product: ADATA SP550NS38              physical id: 0.0.0              bus info: scsi@0:0.0.0              logical name: /dev/sda              version: 4B              serial: 2G4220000183              size: 111GiB (120GB)              capabilities: partitioned partitioned:dos              configuration: ansiversion=5 logicalsectorsize=512 sectorsize=512 signature=cb312d6a            *-volume:0                 description: EXT4 volume                 vendor: Linux                 physical id: 1                 bus info: scsi@0:0.0.0,1                 logical name: /dev/sda1                 logical name: /boot                 version: 1.0                 serial: 6480205e-88e0-4b20-b930-38dee5b56148                 size: 731MiB                 capacity: 731MiB                 capabilities: primary bootable journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized                 configuration: created=2018-11-11 23:13:29 filesystem=ext4 lastmountpoint=/boot modified=2019-09-08 17:24:42 mount.fstype=ext4 mount.options=rw,relatime,data=ordered mounted=2019-09-08 17:24:42 state=mounted            *-volume:1                 description: Extended partition                 physical id: 2                 bus info: scsi@0:0.0.0,2                 logical name: /dev/sda2                 size: 111GiB                 capacity: 111GiB                 capabilities: primary extended partitioned partitioned:extended               *-logicalvolume                    description: Linux filesystem partition                    physical id: 5                    logical name: /dev/sda5                    serial: 775a1793-1ea1-4fe2-bcd9-4880a3924ee0                    size: 111GiB                    capacity: 111GiB                    width: 512 bits                    capabilities: encrypted luks initialized                    configuration: bits=512 cipher=aes filesystem=luks hash=sha256 mode=xts-plain64 version=1      *-scsi:1           physical id: 1           logical name: scsi2           capabilities: emulated         *-disk              description: ATA Disk              product: WDC WD10SPCX-24H              vendor: Western Digital              physical id: 0.0.0              bus info: scsi@2:0.0.0              logical name: /dev/sdb              version: 1A02              serial: WD-WXA1AB57JSDL              size: 931GiB (1TB)              capabilities: partitioned partitioned:dos              configuration: ansiversion=5 logicalsectorsize=512 sectorsize=4096 signature=30d5ab25            *-volume                 description: EXT4 volume                 vendor: Linux                 physical id: 1                 bus info: scsi@2:0.0.0,1                 logical name: /dev/sdb1                 version: 1.0                 serial: 0210a406-4dce-4a43-ac18-82f1a30c8c2c                 size: 931GiB                 capacity: 931GiB                 capabilities: primary journaled extended_attributes large_files huge_files dir_nlink 64bit extents ext4 ext2 initialized                 configuration: created=2018-11-09 17:40:00 filesystem=ext4 label=1TB lastmountpoint=/media/x/1TB modified=2019-09-06 11:31:08 mounted=2019-09-06 11:31:04 state=clean   *-battery        product: Smart Battery        vendor: Intel Corp.        physical id: 1        version: 2008        serial: 1.0        slot: Rear 

How do you investigate a crash when there are no records/logs?


TL;DR

  1. How does one actually investigates a crash when the logs don’t show anything?
  2. Secondly, how do I prepare for future crashes? Is it possible to have more aggressive/accurate logging? In case the system panics or freezes in a way that it didn’t even had time to log.

Few weeks ago I got 3 VPS machines (KVM) from a provider, and 2 of them crashed after a week ( at random/different times ). They all had 512MB ram ( with 512mb swap space ).

One one of them actually was shutdown and had a “offline” label in the provider’s admin panel, and the other was kinda frozen, the panel showed “Online” but I couldn’t ssh or access to it though web console.

None of them were running anything cpu/memory intensive tasks. One was just a openvpn server (with 2-3users) and the other just nginx+php serving a static site. Both of them had like 200-300 available memory at all times and the cpu was below 10% usage.

I had Netdata monitoring installed. So I had a history of almost everything. I looked up every single chart and graph right before the crashes. There was no spike or sudden increase in CPU/Memory/Disk/Network/Process/Firewall usage.

I looked up every single log file under /var/logs/. I read them line by line (before crash happened). I also used journalctl. There was no error, no warnings, no out of memory, no process killing, just normal events.

Both the servers that crashed had a syslog that looked like this:

enter image description here As you can see the ufw is just blocking random spammers right before the crash and then there is no log. Also the boot you see at 20:41:02 is the hard/forced reboot we did after the crash happened, just to get the system back online.

When I asked the provide they said everything looks ok on their side and the reason my servers crashed was because 512MB RAM was too low and I had to upgrade.

Also, there are 2 things that I randomly read on the internet that I thought I ask here if they’re an actual thing.

  • “Micro RAM spikes, for example rotating ram tables to disk, etc”
  • a parameter called journal_data_writeback that if it’s enabled, the system might miss writing logs to the disk during a crash.

nvidia-430.26 crash in Ubuntu(gtx 1650) unusable

Graphic driver of Nvidia’s brand new model gtx 1650 ppa driver is unusable. The only driver I can find through the system is nvidia 430.26 binary and it is crashing with system files. Whenever I install my graphic driver, I cannot boot the computer up it says low graphics mode or repeating log in screen. It seems like ppa has updates which is 430.40 but the Ubuntu system cannot recognize the version. The only thing I can find in software updates are binary drivers(which I think is the problem). I have tried all methods from ppa download to directly running the .run files from nvidia homepage, but nothing worked. In the Ubuntu 18.04 LTS it was working fine, but in 16.04 LTS it won’t work. I guess all the gtx1650 Ubuntu 16.04 users are having the same error as you can see in the link below.

Please refer to it in the link below. It is not me that made this question, but having the same issue.

https://devtalk.nvidia.com/default/topic/1061656/linux/gtx1650-notebook-not-working-on-ubuntu16-04-black-screen-amp-login-loop-/3

There were temporary solutions

cd /usr/lib/nvidia-430 sudo rm libGL.so.1 sudo ln -s libGL.so.1.7.0 libGL.so.1

which helped in booting, but the system is consistently giving error messages and crashing with packages such as realsense-ros. Also, whenever I turn my laptop on, it always sends an error message about root files.

Help! thank you