A severe bug
› Forums › Snappy Driver Installer Origin › A severe bug
Tagged: proxy support, std::bad_cast
- This topic has 22 replies, 4 voices, and was last updated 6 months ago by
Trevor Philips.
-
AuthorPosts
-
-
20 August, 2022 at 9:43 pm #5461
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.747Steps 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 windowAdditional 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 🙂 -
21 August, 2022 at 12:35 pm #5464
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.
-
21 August, 2022 at 5:02 pm #5466
Okay dude, I’d love to provide any further detail to solve this issue asap, please feel free to contact me.
-
-
22 August, 2022 at 8:50 am #5467
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.
-
22 August, 2022 at 7:09 pm #5468
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.
-
22 August, 2022 at 7:27 pm #5469
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.
-
-
23 August, 2022 at 2:54 pm #5470
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.
-
23 August, 2022 at 3:27 pm #5473
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?
-
23 August, 2022 at 5:49 pm #5475
are you perhaps referring to the *.torrent file?
-
23 August, 2022 at 6:38 pm #5477
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?
-
This reply was modified 1 year ago by
Trevor Philips.
-
This reply was modified 1 year ago by
Trevor Philips.
-
23 August, 2022 at 10:39 pm #5484
Videos here How the indexes downloaded before are gone
-
This reply was modified 1 year ago by
-
-
-
-
23 August, 2022 at 3:04 pm #5471
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
Glenn.
-
23 August, 2022 at 3:53 pm #5474
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.
-
23 August, 2022 at 5:53 pm #5476
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.
-
23 August, 2022 at 10:40 pm #5485
Videos here How I reproduce the bug
-
26 August, 2022 at 9:51 am #5489
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?
C++123456789// Send libtorrent messages to logstd::unique_ptr<alert> holder;holder=hSession->pop_alert();while(holder.get()){if(Log.isAllowed(LOG_VERBOSE_TORRENT))Log.print_con("Torrent: %s | %s\n",holder.get()->what(),holder.get()->message().c_str());holder=hSession->pop_alert();} -
8 September, 2022 at 8:35 pm #5508
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 🙂
-
-
-
-
This reply was modified 1 year ago by
-
25 August, 2022 at 11:06 pm #5486
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-
26 August, 2022 at 9:42 am #5488
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.
-
-
27 August, 2022 at 8:28 am #5490
Thank You very much.
Problem solved with Your suggestions.Best Regards
-
8 May, 2023 at 6:07 pm #5871
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
-
28 May, 2023 at 11:00 pm #5973
Seems no better solution. Disable IPV6 before running SDIO and enable it after closing it.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.