Everything SDK crashes after 11 character search. C++

Plug-in and third party software discussion.
Post Reply
Whatevvs
Posts: 3
Joined: Sun Jan 30, 2022 7:19 pm

Everything SDK crashes after 11 character search. C++

Post by Whatevvs »

I am trying to create my own "wallpaper engine"-ish app, and am intergrating everything into it. Every time i search for 11 characters I get a crash? could anyone help me? (C++)

EDIT: My application crashes, with an exception pointing to Everything64.dll
should've clarified, my bad.
Last edited by Whatevvs on Sun Jan 30, 2022 8:29 pm, edited 1 time in total.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Everything SDK crashes after 11 character search. C++

Post by NotNull »

Does Everything crash?
Does your application crash?
Do you get an error or other feedback?
What is shown in Everything's debug console or debug log?
Whatevvs
Posts: 3
Joined: Sun Jan 30, 2022 7:19 pm

Re: Everything SDK crashes after 11 character search. C++

Post by Whatevvs »

Everything does not crash.

My application crashes (I get an exception when search is 11 chars long, even if hardcoded

This is the exception: Exception thrown at 0x00000001800072B6 (Everything64.dll) in InteractiveWallpaper.exe: 0xC0000005: Access violation writing location 0x000001D2D3131000.

Everything debug log here
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Everything SDK crashes after 11 character search. C++

Post by NotNull »

According to your debug log, you are using Everything 1.4.1.1009 (x64).

Your search query was probably "abcdefghijk", although only "abcdefghij" (without the k) has reached Everything.

We will have to wait what @void has to say about it (I'm not a developer) but something that might be worth a shot is to disable shell extensions in Everything temporarily, as poorly written ones can cause all sort of trouble (although I'm not certain if they affect searches via the SDK too).
  • In the Everything search bar, type the following and press ENTER:

    Code: Select all

    /icon_shell_extensions=0
    The result of that command will be shown in Everything's statusbar for a few seconds
  • Run your code
  • Type abcdefghijk in the search bar.
To restore the original situation: /icon_shell_extensions=1


PS: What happens when you PASTE "abcdefghijklmnop" in your wallpaper app?
Whatevvs
Posts: 3
Joined: Sun Jan 30, 2022 7:19 pm

Re: Everything SDK crashes after 11 character search. C++

Post by Whatevvs »

Ok apparently it is now crashing differently, instead of crashing when the search is longer than 10 it now crashes when I type 10 chars into the search bar. Still no idea what causes it but now I’m the thinking somehow its broken on my end (will look into it more tomorrow).
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything SDK crashes after 11 character search. C++

Post by void »

0x00000001800072B6
The expection is in memmove, a CRT call.
Most likely referenced from Everything_SetSearch()..

Please make sure you specify the correct buffer size for Everything_GetResultFullPathNameW
That is, the buffer size in wchars (including room for the NUL terminator)

Please make sure you are compiling with the Unicode character set and you are passing a NUL terminated Unicode string to Everything_SetSearch.

Please try stepping over each Everything SDK call.
What Everything SDK call is causing the exception?
Post Reply