| Summary: | Crash observed in SDL_PollEvent() | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Prerna <prerna.bcas> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | ||
| Version: | 1.3.0 | ||
| Hardware: | Other | ||
| OS: | Windows 7 | ||
| Attachments: |
Crash stack trace
assert |
||
Also is there any means by which i can enable logs in SDL to help u debug further. I dont see any logs in SDL.dll right now. I am using version SDL-1.3.0-5536. Any comments? This might be fixed by a change in the latest snapshot: http://www.libsdl.org/tmp/SDL-2.0.0-7295.zip Can you try this out and let me know if this fixes it? Sure. Thanks for the inputs. Let me try and ill update u on same. Created attachment 1187 [details]
assert
Hi Sam, I tried to use SDL provided by you but it gives me an assert as soon as I init my application. Please have a look and let me know how it can be resolved? Due to this assert my video call crashes as soon as i answer the call. Please find the snapshot of assert attached. If i can resolve this I am sure the crash in video call would be automatically resolved as the crash is observed in function : pjmedia_vid_dev_count() Let me know your inputs! Thanks, Prerna Hi Sam, Request your input in this as it is blocking for me. Thanks in advance, Prerna Gupta Sorry, I don't know anything about PJSIP or why it would assert there. Can you contact the authors and let them know about your problem? Hi Sam, It was an issue at PJSIP side. They have just given the fix in following: https://trac.pjsip.org/repos/ticket/1676. I'll now test with this version of SDL and let u know about the crash. Thanks, Prerna Hi Sam, I am not able to use SDL 2.0 with PJSIP. I keep getting this error: 16:09:30.144 sdl_dev.c !SDL_Init() error: Application didn't initialize properly, did you include SDL_main.h in the file containing your main() function? When i used SDL1.3 I did not include this header anywhere in my code and it worked for me. Not sure why such an error comes with SDL2.0. However i have already included "include path" and "Lib path" in my dependencies but still it does not work for me. Any idea what more can be done to avoid this? Prerna This should be fixed in the latest RC, can you check it out? http://www.libsdl.org/tmp/download-2.0.php Hi Sam, I built my project with latest SDL2.0 and it works fine for me. I will have to do a round of testing to check if i observe crash again or not. Thanks for your inputs. Thanks! |
Created attachment 1170 [details] Crash stack trace Hi, I have an application on windows 7 that is used for making video call. When I make a video call and my application opens up the near end and far end video my application sometimes unexpectedly terminates at sdl_pollevent. By looking at the stack trace i dont see memory correuption and it seems like the loop is forever stuck in sdl_pollevent. I have attached the stack trace. Below is the code in opensource PJSIP library that is causing trouble: static pj_status_t handle_event(void *data) { struct sdl_factory *sf = (struct sdl_factory*)data; SDL_Event sevent; if (!pj_thread_is_registered()) { pj_thread_register("sdl_ev", sf->thread_desc, &sf->ev_thread); } while (SDL_PollEvent(&sevent)) { struct sdl_stream *strm = NULL; pjmedia_event pevent;....... Can someone give me pointers that can help me resolve this issue.