Gstreamer Application crashes when compiled in "release mode" , works fine in "Debug mode"

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer Application crashes when compiled in "release mode" , works fine in "Debug mode"

Shrishty Deorari
Hi,

I am facing an  issue with  Gstreamer Application  when compiled in "release mode"

The Issue is: We have created a Gstreamer application for windows 7 (64 bit) using Visual studio 10 , When the code is compiled in "Debug mode" , everything works fine. But When complied in "Release mode" , The application crashes at 
 gst_init(&argc, &argv)  with the following error:

" unhandled exception at 0x00000000300905a4d in IVApp.exe: 0xC0000005: Access voilation at location 0x00000000300905a4d "

All the library path , include file/ folders being same in both the modes. 


The same thing happens when we remove everything from the application except the 
gst_init(&argc ,&argv)
So removing the chance of any other issue in rest of the application code. 


Gstreamer version used : 1.7.2 
Window 7 , 64 bit
Microsoft visual studio 2010

If Anyone have any idea regarding this, kindly help. 

Regards

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Application crashes when compiled in "release mode" , works fine in "Debug mode"

Sebastian Dröge-3
On Do, 2016-04-28 at 11:12 +0530, Shrishty Deorari wrote:

> Hi,
>
> I am facing an  issue with  Gstreamer Application  when compiled in "release mode"
>
> The Issue is: We have created a Gstreamer application for windows 7 (64 bit) using Visual studio 10 , When the code is compiled in "Debug mode" , everything works fine. But When complied in "Release mode" , The application crashes at 
>  gst_init(&argc, &argv)  with the following error:
>
> " unhandled exception at 0x00000000300905a4d in IVApp.exe: 0xC0000005: Access voilation at location 0x00000000300905a4d "
>
> All the library path , include file/ folders being same in both the modes. 
>
>
> The same thing happens when we remove everything from the application except the 
> gst_init(&argc ,&argv)
> So removing the chance of any other issue in rest of the application code. 
Please run the application in gdb and get a backtrace of the crash. You
can get gdb for example from here:
https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/gdb/

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

AW: Gstreamer Application crashes when compiled in "release mode" , works fine in "Debug mode"

Thornton, Keith
In reply to this post by Shrishty Deorari

Hi,

My GStreamer applications run perfectly well with the release version on windows 7 /64. I would therefore suggest that you try using the dependency walker to try and find out if it is not finding some dll or other. You need to start the dependency walker using the same environment as your gstreamer application uses

 

Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Shrishty Deorari
Gesendet: Donnerstag, 28. April 2016 07:43
An: [hidden email]
Betreff: Gstreamer Application crashes when compiled in "release mode" , works fine in "Debug mode"

 

Hi,

 

I am facing an  issue with  Gstreamer Application  when compiled in "release mode"

 

The Issue is: We have created a Gstreamer application for windows 7 (64 bit) using Visual studio 10 , When the code is compiled in "Debug mode" , everything works fine. But When complied in "Release mode" , The application crashes at 

 gst_init(&argc, &argv)  with the following error:

 

" unhandled exception at 0x00000000300905a4d in IVApp.exe: 0xC0000005: Access voilation at location 0x00000000300905a4d "

 

All the library path , include file/ folders being same in both the modes. 

 

 

The same thing happens when we remove everything from the application except the 

gst_init(&argc ,&argv)

So removing the chance of any other issue in rest of the application code. 

 

 

Gstreamer version used : 1.7.2 

Window 7 , 64 bit

Microsoft visual studio 2010

 

If Anyone have any idea regarding this, kindly help. 

 

Regards


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Application crashes when compiled in "release mode" , works fine in "Debug mode"

Shrishty Deorari
Hi Thornton,

We checked the executable with dependency walker there is no missing dll or other, The same code  with same numbers of dll's is running perfectly fine when compiled in debug mode. 


With Warm Regards,

Shrishty Deorari

VVDN Technologies Pvt Ltd

Cell : +91 7773980237 | Skype : shrishty_vvdn



On Thu, Apr 28, 2016 at 12:27 PM, Thornton, Keith <[hidden email]> wrote:

Hi,

My GStreamer applications run perfectly well with the release version on windows 7 /64. I would therefore suggest that you try using the dependency walker to try and find out if it is not finding some dll or other. You need to start the dependency walker using the same environment as your gstreamer application uses

 

Von: gstreamer-devel [mailto:[hidden email]] Im Auftrag von Shrishty Deorari
Gesendet: Donnerstag, 28. April 2016 07:43
An: [hidden email]
Betreff: Gstreamer Application crashes when compiled in "release mode" , works fine in "Debug mode"

 

Hi,

 

I am facing an  issue with  Gstreamer Application  when compiled in "release mode"

 

The Issue is: We have created a Gstreamer application for windows 7 (64 bit) using Visual studio 10 , When the code is compiled in "Debug mode" , everything works fine. But When complied in "Release mode" , The application crashes at 

 gst_init(&argc, &argv)  with the following error:

 

" unhandled exception at 0x00000000300905a4d in IVApp.exe: 0xC0000005: Access voilation at location 0x00000000300905a4d "

 

All the library path , include file/ folders being same in both the modes. 

 

 

The same thing happens when we remove everything from the application except the 

gst_init(&argc ,&argv)

So removing the chance of any other issue in rest of the application code. 

 

 

Gstreamer version used : 1.7.2 

Window 7 , 64 bit

Microsoft visual studio 2010

 

If Anyone have any idea regarding this, kindly help. 

 

Regards


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer Application crashes when compiled in "release mode" , works fine in "Debug mode"

Shrishty Deorari
In reply to this post by Sebastian Dröge-3
Hi Sebastian,
 
Got the Following result when using GDB back trash of the crash. The application crashes as soon as it encounters any gstreamer function and the first function is gst_init().

 Reading symbols from ./IVApp.exe...(no debugging symbols found)...done.
(gdb) run
Starting program: /cygdrive/e/IV_Service/GST/IVSampleApp/bin/Release/IVApp.exe
[New Thread 4280.0x10b0]
[New Thread 4280.0x10b4]
[New Thread 4280.0x109c]
[New Thread 4280.0x10a8]
[New Thread 4280.0x10a4]
[New Thread 4280.0x1c4]

Program received signal SIGSEGV, Segmentation fault.
0x0000000300905a4d in ?? ()
(gdb) bt
#0  0x0000000300905a4d in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb)


It says the Error as corrupted Stack. And the address is not accessible when we tried to read it using the Following command.
(gdb)  x/64 0x300905a4d
0x300905a4d:    Cannot access memory at address 0x300905a4d





With Warm Regards,

Shrishty Deorari

VVDN Technologies Pvt Ltd

Cell : +91 7773980237 | Skype : shrishty_vvdn



On Thu, Apr 28, 2016 at 11:51 AM, Sebastian Dröge <[hidden email]> wrote:
On Do, 2016-04-28 at 11:12 +0530, Shrishty Deorari wrote:
> Hi,
>
> I am facing an  issue with  Gstreamer Application  when compiled in "release mode"
>
> The Issue is: We have created a Gstreamer application for windows 7 (64 bit) using Visual studio 10 , When the code is compiled in "Debug mode" , everything works fine. But When complied in "Release mode" , The application crashes at 
>  gst_init(&argc, &argv)  with the following error:
>
> " unhandled exception at 0x00000000300905a4d in IVApp.exe: 0xC0000005: Access voilation at location 0x00000000300905a4d "
>
> All the library path , include file/ folders being same in both the modes. 
>
>
> The same thing happens when we remove everything from the application except the 
> gst_init(&argc ,&argv)
> So removing the chance of any other issue in rest of the application code. 

Please run the application in gdb and get a backtrace of the crash. You
can get gdb for example from here:
https://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/gdb/

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel