A severe bug

Forums Snappy Driver Installer Origin A severe bug

Viewing 7 reply threads
  • Author
    Posts
    • #5461
      Trevor PhilipsTrevor Philips
      Participant

        Hey bro, this software is amazing and I’ve been using it for years. It used to work fine, but about 1 year ago it sometimes began to raise std::bad_cast exception (see attachments below) and crushed when initiating. Then in 2022 the problem deteriorated and happened every time. I’ve googled this error but found nothing. I also tried switching to Snappy Driver Installer (SDI-RUS) and faced same issue.

        Windows version
        Windows 8.1 64-bit
        Product version
        1.12.7.747

        Steps to reproduce
        1. Extract SDIO_1.12.7.747.zip
        2. Open SDIO_x64_R747.exe
        3. Accept ToS
        4. Download any driverpacks or index
        5. Error occurs
        The expected output
        The program start to download selected driverpacks after step 4
        The actual output
        See ‘std::bad_cast’ exception window

        Additional info
        I currently live in China. The network here is very slow. In my opinion it’s network and ISP that cause this bug. If I run SDIO offline the error won’t occur. Also if I change Wi-Fi to mobile hotspot (they belong to different ISPs), the bug will be gone too, but I don’t have enough mobile traffic to download the driverpacks.
        I’m using a proxy to boost surfing experience. I’m thinking that if SDIO can support connecting to a proxy, the bug will be solved too. Please fix the issue asap, thanks 🙂

        Attachments:
      • #5464
        GlennGlenn
        Keymaster

          It feels like it’s going down a path in the torrent code that it doesn’t normally go. I’ll look into it this week.

          • #5466
            Trevor PhilipsTrevor Philips
            Participant

              Okay dude, I’d love to provide any further detail to solve this issue asap, please feel free to contact me.

          • #5467
            GlennGlenn
            Keymaster

              are you able to pin down exactly which release started crashing a year ago? and which release in 2022 it started happening every time? this will help me pin down the code change that is causing the problem.

              • #5468
                Trevor PhilipsTrevor Philips
                Participant

                  Sadly no. I hold the view that my ISP cause this. A truth I’ll tell you is that Chinese network is full of censorship and BT download is not recommended and almost dead here. My ISP blocks the connections and sends strange errorcode back to their customers. Our feedbacks are always useless. Due to this case I always download driverpacks in Drivers.torrent via qbittorrent connected to a VPN, this method works. To make things work I also need to download the latest index through SDIO however it does not support proxy connection. I hope SDIO has a http/socks5 proxy option integrated into it, maybe it’s the simplest solution.

                • #5469
                  Trevor PhilipsTrevor Philips
                  Participant

                    I’ll give you an example for reference.

                    Windows Hotfix Downloader is my alternative to Winodws Update. In China downloading hotfix can be very slow using WU and setting up proxy is not available in WU. WHDownloader has a proxy inside it which boost download a lot.

                • #5470
                  GlennGlenn
                  Keymaster

                    You don’t need to download indexes. When you grab the latest driver packs from qbittorrent, just delete all the existing indexes. When you start SDIO, it will automatically rebuild the indexes.

                    • #5473
                      Trevor PhilipsTrevor Philips
                      Participant

                        Got it. Usually I want to check driver updates without downloading all driverpacks which is time cosuming, in this case I still need the index first. I also find that the index must be downloaded in SDIO, otherwise SDIO won’t recognize it. How do I deal with it?

                        • #5475
                          GlennGlenn
                          Keymaster

                            are you perhaps referring to the *.torrent file?

                            • #5477
                              Trevor PhilipsTrevor Philips
                              Participant

                                Yes, I mean SDIO_Update.torrent, even if I downloaded the index in the torrent, when I ran SDIO later it would still notify me to download it again (on ‘Update’ window, first row ‘Indexes’, last column ‘For this PC?’ remained ‘Yes’, and other driverpacks all showed ‘No’).

                                After I closed SDIO normally (if I don’t download anything it won’t crash), I went to SDIO_Update\indexes\SDI only to find all 57 indexes downloaded before, deleted. An empty folder named ‘txt’ replaced them. Is this normal?

                        • #5471
                          GlennGlenn
                          Keymaster

                            I’ve tried to reproduce that error without success. Can you send me the logs with this error.

                            Meanwhile, you can always run SDIO through a VPN or just rebuild the indexes as needed.

                            If anyone else is able to reproduce this, I’d be interested to know the details.

                            • This reply was modified 1 year ago by GlennGlenn.
                            • #5474
                              Trevor PhilipsTrevor Philips
                              Participant

                                All the logs are above in attachments. No more logs. When it crushed it showed that exception window, after I clicked ok, Windows notifyed me SDIO had stopped running. Seems like it didn’t write down any log after crushing. I will send you an video to reproduce the entire issue later.

                                Only tunnel mode VPN works, which is too hard to operate. Things will be quite convenient to handle if SDIO has a built-in socks5 proxy.

                                Yep, I will ask some of my friends to test it these days.

                                • #5476
                                  GlennGlenn
                                  Keymaster

                                    got it. here’s the relevant bits:

                                    Listen port: 50171 (connected)
                                    Download limit: 0Kb
                                    Upload limit: 0Kb
                                    Torrent: http://www.snappy-driver-installer.org/downloads/SDIO_Update.torrent
                                    Waiting for torrent……………………………………………………………………….DONE
                                    Latest Version: R747. Up to date.
                                    Updated driver packs available: 57
                                    torrent_resume
                                    {torrent_start
                                    ERROR: Exception: std::bad_cast

                                    }stop logging

                                    i see that as soon as it starts the torrent session it throws the exception. I’ll into that tomorrow.

                                    • #5485
                                      Trevor PhilipsTrevor Philips
                                      Participant
                                        • #5489
                                          GlennGlenn
                                          Keymaster

                                            I can see one type cast in that section of code after it starts the torrent but I have no idea what it’s doing… Maybe someone can interpret it?

                                          • #5508
                                            Trevor PhilipsTrevor Philips
                                            Participant

                                              Hey bro, sorry for my absence of 2 weeks. This issue is SOLVED now! I nolonger get errors after I banned IPv6 protocol on my network card just minutes ago!

                                              In these days I reported this issue to my ISP, they insisted the problem is on the software. Though I know switching to another ISP will solve this but I have contract with current ISP, if I break it I won’t get my money back. Then I tried using only IPv4 today and the miracle happened!

                                              Thank you for your efforts too, finally I can use SDIO happily 🙂

                                    • #5486
                                      Yiannis LoukopoulosYiannis Loukopoulos
                                      Participant

                                        Hello from Athens,
                                        I have a similar issue in Windows XP Home Service Pack 3.
                                        It runs but does not connect to download anything at all.

                                        B.R
                                        Yiannis

                                        • #5488
                                          GlennGlenn
                                          Keymaster

                                            Your problem is most likely the firewall. Close SDIO, open Windows Firewall and delete all entries for SDIO. Start SDIO and select Unblock when the firewall prompts. Also check your anti-virus. If you’re on a corporate box, your corporate network may be blocking torrent traffic.

                                        • #5490
                                          Yiannis LoukopoulosYiannis Loukopoulos
                                          Participant

                                            Thank You very much.
                                            Problem solved with Your suggestions.

                                            Best Regards

                                          • #5871
                                            peh kaherpeh kaher
                                            Participant

                                              Hi, I just registered on this page to report that I think it is indeed a bug with the IPv6 protocol, as I have been using SDI(O) for several years and never had that error until now that my ISP activated IPv6 on my line. I don’t want to disable IPv6. I am using Windows 11 Professional

                                              • #5973
                                                Trevor PhilipsTrevor Philips
                                                Participant

                                                  Seems no better solution. Disable IPV6 before running SDIO and enable it after closing it.

                                            Viewing 7 reply threads
                                            • You must be logged in to reply to this topic.
                                            Glenn's Page