Project

General

Profile

Wt Unhandled Exception : Access violation writing location

Added by The Alien over 9 years ago

I followed all the instructions on http://redmine.webtoolkit.eu/projects/wt/wiki/Installing_Wt_on_MS_Windows to create a Visual Studio project running Wt. I named my project questions (It will eventually be a Q & A web widget). I inserted the code from Wt's "Hello World Example", and everything was fine (the program was building), until I tried to access the website. When I entered the URL, it showed this error:

Exception thrown at 0x00007FFB01F35AEB (ntdll.dll) in Questions.exe: 0xC0000005: Access violation writing location 0x0000000000000024.
Unhandled exception at 0x00007FFB01F35AEB (ntdll.dll) in Questions.exe: 0xC0000005: Access violation writing location 0x0000000000000024.

I was using MSVC 2015 and Opera (Browser) if it helps.


Replies (5)

RE: Wt Unhandled Exception : Access violation writing location - Added by Wim Dumon over 9 years ago

Can you post the stack trace when this happens?

Wim.

RE: Wt Unhandled Exception : Access violation writing location - Added by The Alien over 9 years ago

        front_ungrouped_slots   front_ungrouped_slots (0)   boost::signals2::detail::slot_meta_group
+       group_key   (front_ungrouped_slots (0), {...})  std::pair<enum boost::signals2::detail::slot_meta_group,boost::optional<int> >
        group_key.first front_ungrouped_slots (0)   boost::signals2::detail::slot_meta_group
+       newConnectionBody   {px=0x0000007b1a5384c0 {slot={_slot_function={...} } _mutex={cs_={DebugInfo=0xffffffffffffffff {...} ...} } ...} ...}   boost::shared_ptr<boost::signals2::detail::connection_body<std::pair<enum boost::signals2::detail::slot_meta_group,boost::optional<int> >,boost::signals2::slot<void __cdecl(Wt::WMouseEvent),boost::function<void __cdecl(Wt::WMouseEvent)> >,boost::signals2::mutex> >

Is this the stack trace?

RE: Wt Unhandled Exception : Access violation writing location - Added by Wim Dumon over 9 years ago

It does not look like a normal stack trace... normally it's a whole set of function calls that end up in the function causing the trouble, so that you see exactly where the exception occurs, as well as the 'stack' of function calls that lead you there.

Wim.

RE: Wt Unhandled Exception : Access violation writing location - Added by The Alien over 9 years ago

I'll try again:

    ntdll.dll!77469e03()    Unknown
    [Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] 
    [External Code] 
>   Hello.exe!boost::signals2::mutex::lock() Line 95    C++
    Hello.exe!boost::signals2::detail::unique_lock<boost::signals2::mutex>::unique_lock<boost::signals2::mutex>(boost::signals2::mutex & m) Line 30 C++
    Hello.exe!boost::signals2::detail::signal_impl<void __cdecl(Wt::WMouseEvent),boost::signals2::optional_last_value<void>,int,std::less<int>,boost::function<void __cdecl(Wt::WMouseEvent)>,boost::function<void __cdecl(boost::signals2::connection const &,Wt::WMouseEvent)>,boost::signals2::mutex>::connect(const boost::signals2::slot<void __cdecl(Wt::WMouseEvent),boost::function<void __cdecl(Wt::WMouseEvent)> > & slot, boost::signals2::connect_position position) Line 162   C++
    Hello.exe!boost::signals2::signal<void __cdecl(Wt::WMouseEvent),boost::signals2::optional_last_value<void>,int,std::less<int>,boost::function<void __cdecl(Wt::WMouseEvent)>,boost::function<void __cdecl(boost::signals2::connection const &,Wt::WMouseEvent)>,boost::signals2::mutex>::connect(const boost::signals2::slot<void __cdecl(Wt::WMouseEvent),boost::function<void __cdecl(Wt::WMouseEvent)> > & slot, boost::signals2::connect_position position) Line 687    C++
    Hello.exe!Wt::EventSignal<Wt::WMouseEvent>::connect<HelloApplication,HelloApplication>(HelloApplication * target, void (void) * method) Line 1091   C++
    Hello.exe!HelloApplication::HelloApplication(const Wt::WEnvironment & env) Line 64  C++
    Hello.exe!createApplication(const Wt::WEnvironment & env) Line 94   C++
    Hello.exe!boost::detail::function::function_invoker1<Wt::WApplication * (__cdecl*)(Wt::WEnvironment const &),Wt::WApplication *,Wt::WEnvironment const &>::invoke(boost::detail::function::function_buffer & function_ptr, const Wt::WEnvironment & a0) Line 95 C++
    wt.dll!5103afd8()   Unknown
    wt.dll!51036898()   Unknown
    wt.dll!510467e9()   Unknown
    wt.dll!510411f5()   Unknown
    wt.dll!510378ec()   Unknown
    [External Code] 

RE: Wt Unhandled Exception : Access violation writing location - Added by Ahmed Abdelrazek almost 9 years ago

I have the exact same problem, how did you solve it?

here is my stack trace:

ntdll.dll!770c22e2() Unknown

[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]

wtTrialApp.exe!boost::signals2::mutex::lock() Line 95 C

wtTrialApp.exe!boost::signals2::detail::unique_lockboost::signals2::mutex::unique_lockboost::signals2::mutex(boost::signals2::mutex & m) Line 30 C

wtTrialApp.exe!boost::signals2::detail::garbage_collecting_lockboost::signals2::mutex::garbage_collecting_lockboost::signals2::mutex(boost::signals2::mutex & m) Line 44 C

wtTrialApp.exe!boost::signals2::detail::signal1_impl<void,Wt::WMouseEvent,boost::signals2::optional_last_value,int,std::less,boost::function<void _cdecl(Wt::WMouseEvent)>,boost::function<voidcdecl(boost::signals2::connection const &,Wt::WMouseEvent)>,boost::signals2::mutex>::connect(const boost::signals2::slot1<void,Wt::WMouseEvent,boost::function<void_cdecl(Wt::WMouseEvent)> > & slot, boost::signals2::connect_position position) Line 163 C

wtTrialApp.exe!boost::signals2::signal1<void,Wt::WMouseEvent,boost::signals2::optional_last_value,int,std::less,boost::function<void _cdecl(Wt::WMouseEvent)>,boost::function<voidcdecl(boost::signals2::connection const &,Wt::WMouseEvent)>,boost::signals2::mutex>::connect(const boost::signals2::slot1<void,Wt::WMouseEvent,boost::function<void_cdecl(Wt::WMouseEvent)> > & slot, boost::signals2::connect_position position) Line 692 C

wtTrialApp.exe!Wt::EventSignalWt::WMouseEvent::connect<HelloApplication,HelloApplication>(HelloApplication * target, void (void) * method) Line 1091 C

wtTrialApp.exe!HelloApplication::HelloApplication(const Wt::WEnvironment & env) Line 30 C

wtTrialApp.exe!createApplication(const Wt::WEnvironment & env) Line 44 C

wtTrialApp.exe!boost::detail::function::function_invoker1<Wt::WApplication * (__cdecl*)(Wt::WEnvironment const &),Wt::WApplication*,Wt::WEnvironment const &>::invoke(boost::detail::function::function_buffer & function_ptr, const Wt::WEnvironment & a0) Line 101 C

    (1-5/5)