LWJGL GLFW hangs on native glfwInit call

For the past months I’ve been working on creating my own game engine for personal use in LWJGL using pieces here and there, especially from developer ThinMatrix’s rightfully credited code, to learn as much as I can while building it. Only recently there has been strange behavior happening when I launch the engine from IntelliJ for testing:

  • After about 6-10 individual times I click run, all subsequent runs suddenly take about 60 seconds for the window to appear.

  • Whenever I restart my PC this hanging resets and I have another 6-10 runs before it hangs everytime again.

  • I located the issue to glfwInit, more specifically at the call to the native method:

      @NativeType("int")   public static boolean glfwInit() {       long __functionAddress = Functions.Init;       return invokeI(__functionAddress) != 0; // Right here   } 
  • I also noticed that this issue only started when I attempted to implement text support in my engine using the STBTrueType library. It was perfectly fine before that. I tried removing the TrueType code but it didn’t fix it.

Here’s a list of things I’ve tried:

  • Clearing my temp folder in case a buggy or corrupted file was present.
  • Recompiling and rebuilding the entire LWJGL jars twice.
  • Building glfw.dll from the GLFW sources and replacing the glfw.dll in the native jars with the former.
  • Reinstalling Java and actually upgrading JDK versions (from 13.0.2 to 14.0.2)
  • Switching IDEs even if I suspected it wouldn’t work.
  • Updating my NVIDIA drivers, and reinstalling them.

I’m quite confused as to what it could be, and I’d be more than happy to share code, thread dumps, or debug info if you deem it necessary. Here is the Github repository with the latest, "faulty" code (fault in quotes because I’m not too sure the code is the problem.)

Thank you very much for any guidance.

P.S: Please tell me if this is better asked in StackOverflow instead of here.

mysql hangs on NLB as a hop for restricted RDS instance with SSL connection

We are trying to achieve a weird hacky architecture with a restricted RDS instances. This is a temporary solution with corona situation. We understand this is wrong and violates in best practices. Let me put the current architecture.

enter image description here

WITH TCP: This works fine if NLB has a tcp listener on 443. We can login into RDS instance. Here I can see tls handshake with default RDS certificate in wireshark. But we wanted to add a certificate into NLB and to make it more secure 🙂

ISSUE: WITH TLS on NLB: After I add the cert in NLB and make the listener as TLS on 443; mysql command hangs. I checked in wireshark it doesn’t do any TLS handshakes. Checked in flowlogs cannot see any REJECTs. We want to do this because there are some old DBs that don’t have certificates, so those covered by the NLB certificate.

I’m not sure even this possible or not. Wanted to try if it’s possible. I did an openssl connect openssl s_client -crlf -connect NLB-DNS:443 Attached the wireshark image below. As it shows it resets the TCP packets.

I think its now like this

client<----------->NLB<---->EC2------->RDS       <--nlbssl-->       <-------------rds ssl-----------> 

Could somebody has a knowledge of SSL mind to tell whats happening here and is it possible achieve what I’m trying to do?

enter image description here

Connect-PnPOnline -Url https://.sharepoint.com.eu.cas.ms -UseWebLogin hangs with a blank window

I’m trying to connect to a site where I’ll try to upload some documents, here is what I try to do:

Connect-PnPOnline -Url  https://<mysite>.sharepoint.com.eu.cas.ms -UseWebLogin  

What happens is it just opens a blank window and hangs.

What I have tried to do:

  • Connect-PnPOnline -Url https://<mysite>.sharepoint.com.eu.cas.ms/sites/<my-site> -UseWebLogin (use the full pat h to the site)
  • Connect-PnPOnline -Url https://<mysite>.sharepoint.com/sites/<my-site> -UseWebLogin (use that path before it was redirected)
  • Connect-PnPOnline -Url https://<mysite>.sharepoint.com.eu.cas.ms -UseWebLogin (same only with the root)

Logging into the site on the web works fine however, as does Connect-PnPOnline -Url https://<mysite>.sharepoint.com.eu.cas.ms/sites/<my-site> -Credentials (Get-Credential)

I’m on Windows 10, PowerShell version 5.1 and I’m using SharePointPnPPowerShellOnline version 3.13.1909.0.

Any ideas on what I can do to fix this would be appreciated.

Any ideas?

Ubuntu 19.04 installer hangs on keyboard layout selection

I’m trying to install Ubuntu 19.04 on a Dell Optiplex 790. I’m getting the issue where the installer hangs with an infinite spinning mouse pointer wheel when I click on “Continue” upon selecting the keyboard layout. Here are some things to note:

  1. It matters not weather I select “Try Ubuntu” or “Install Ubuntu”
  2. same thing when booting from a USB drive, an HDD connected to SATA or a DVD
  3. The USB drives where prepared with DD
  4. The DVD’s(2 of them) where burned with Windows 10 and K3B on Kubuntu
  5. I tried to set the “nomodeset” parameter as explained on other posts but it did not work for me, unless I didn’t do it properly.
  6. Since Ubuntu was giving me this issue, I tried to install PopOS and I got the same problem :-S
  7. Unfortunately, I don’t have access to another computer to test.

This is my setup:

CPU: Intel i5-2400 (4) @ 3.400GHz GPU: AMD ATI Radeon RX 580 Memory: 11961MiB Storage: KingDian 120GB SSD

This is the first time in probably 10 years that I’m having issues installing Ubuntu. Any clues would be greatly appreciated. Let me know if you have any additional questions as well.


Kodi hangs on splash screen at first run; apparent database error in logfile

On a freshly installed 64bit Ubuntu 18.04 system with Intel graphics, a freshly installed kodi hangs at the splash screen. The log file appears nominal until the last three lines.

2019-09-15 08:17:16.734 T:139670001514240  NOTICE: Running database version Addons27 2019-09-15 08:17:16.735 T:139670001514240   ERROR: SQL: [ViewModes6.db] SQLite error SQLITE_ERROR (no such table: version)                                             Query: SELECT idVersion FROM version 2019-09-15 08:17:16.792 T:139670001514240   ERROR: Process error processing job 

I tried kodi both from the stock repos and the stable ppa, both had the same problem.

I’ve installed kodi successfully on several systems and AFAIK didn’t do anything different this time – what’s causing it to hang here?

Dell studio 1569 hangs / stuck on boot after 19.04 update

I recently installed Ubuntu 19.04 Disco Dingo on my old Dell studio 1569 laptop. The initial installation from the thumb drive went fine, so I proceeded to download and install the updates as prompted. The download and updating seemed to go fine, but when finished, the system asked me to restart the machine to finish the updates, and that is when the problems started. The machine comes on, goes to the Ubuntu logo screen with the flashing dots, and hangs there (I waited for about 15 minutes before I grew impatient and turned off the machine. What I don’t understand is how I was able to run a live sessions AND initial installation, seemingly with no problems, but the update results in an un-bootable Disco Dingo? I have the drive partitioned in two with one partition holding Ubuntu 18.03 and the other holding 19.04. Suggestions? Thank you, –Louis

netcat-openbsd hangs

I’m using netcat-openbsd in both Ubuntu 16.04 and 18.04, and in trouble because netcat behaves differently between them.


$   echo "message" | nc localhost 8377 

By the command above, I expect “message” is sent to port 8377, then sent to a remote machine via ssh port forwarding.

Behaviour in 16.04: netcat-openbsd (1.105-7ubuntu1)

Worked as expected.

Behaviour in 18.04: netcat-openbsd (1.187-1ubuntu0.1)

Not working, the above command hangs without any response (Command prompt never show up). Also, nothing is sent to the remote machine.

Any idea why netcat not working in 18.04?

IIS hangs when debugging with Visual Studio

I keep having this ridiculous issue that’s driving me mad. I happen to debug some code with Visual Studio (attached to all w3wp) and let’s say I get an exception and VS is set to catch all exceptions. I go check the exception and the item in cause, then I switch to browser to check something else and I go again in Visual Studio to check the item again and when I mouse over it, visual studio hangs like mad and takes around 10-15 seconds to come back. After that whatever I do I get the “previous operation has timed out” and iis is completely unresponsive, I cannot detach and it takes a ridiculous amount of time, somewhere around 5 minutes to come back. It’s completely dead. I kill all w3wp, vssphost, recycle, iisreset and it still doesn’t come back.

My colleagues don’t have this issue, if it hangs they just reattach and bam, it works. For me, never. I have no idea what’s different on my machine. Even on previous virtual machines, os installs same thing happened.

Settings of application pool: enter image description here

I appreciate any sort of help. Also feel free to ask for more details.