Opened 17 years ago

Closed 16 years ago

Last modified 13 years ago

#1223 closed bug (fixed)

Media perflet crashed on Intel/Realtek HDA hardware (8086:2668)

Reported by: siarzhuk Owned by: ithamar
Priority: normal Milestone: R1
Component: Preferences/Media Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

1) I have build Haiku revision 21170 and install it into partition. 2) Reboot to Haiku and run Media perflet. 3) Note that entries "HD Audio" appeared in Media Preferences configuration. 4) Selected HD Audio to be used as Audio Input and Audio Output 5) Tried to select "HD Audio" entry but the Media perflet crashed.

I have attached the syslog for this Haiku session and backtrace of gdb for this crash.

PS: I have also tried to run this driver under hrev5. It was build for hrev5 and there were no haiku multi audio addons on this hrev5 system. The situation under hrev5 is bit different - media server is crashed directly after system boot. The syslog for this R5 session and stack crawl of gdb for this crash are also attached for your information. Probably that can help to locate the main problem.

Attachments (6)

haiku-syslog.3 (73.9 KB ) - added by siarzhuk 17 years ago.
system log for Haiku session with Media perflet crash
haiku-gdb-backtrace.txt (1.8 KB ) - added by siarzhuk 17 years ago.
backtrace from gdb for Media perflet crash under Haiku
R5-syslog (73.8 KB ) - added by siarzhuk 17 years ago.
System log for R5 session with crashed at system startup media server
r5-gdb-sc.txt (1.1 KB ) - added by siarzhuk 17 years ago.
gdb stack crawl for crashed media server at system startup
syslog.haiku (74.3 KB ) - added by siarzhuk 17 years ago.
acquired under Haiku rev 21199
syslog.r5 (74.0 KB ) - added by siarzhuk 17 years ago.
acquired under hrev5 (sources correspond to rev 21199)

Download all attachments as: .zip

Change History (16)

by siarzhuk, 17 years ago

Attachment: haiku-syslog.3 added

system log for Haiku session with Media perflet crash

by siarzhuk, 17 years ago

Attachment: haiku-gdb-backtrace.txt added

backtrace from gdb for Media perflet crash under Haiku

by siarzhuk, 17 years ago

Attachment: R5-syslog added

System log for R5 session with crashed at system startup media server

by siarzhuk, 17 years ago

Attachment: r5-gdb-sc.txt added

gdb stack crawl for crashed media server at system startup

in reply to:  description comment:1 by ithamar, 17 years ago

Owner: changed from korli to ithamar
Status: newassigned

Hi, thanks for reporting this in so much detail, this is very helpful. I had one more question: did you actually get sound on Haiku, before or even during the crash? The "x buffers processed" messages seems to indicate that the hardware was playing buffers, and the "Found output PIN (Line Out)..." indicates that the internal routing in the card should be setup correctly too.

I guess the crash in Haiku is due to the multi_audio addon trying to display sample formats that it can't handle yet, but I'll check that later today.

comment:2 by siarzhuk, 17 years ago

Oh, sorry , I have missed the default owner of the Device/Audio component. :-)

Well. Unfortunately there was no sound.

Frankly speaking - there are too many input/outputs and configuration possibilities. Let me describe this "wires configuration". This is laptop. It has following inputs/outputs: 1) internal stereo speakers (small and screaming); 2) headphones output at the frontal edge of laptop; 3) microphone input at the frontal edge; *) 4) microphone input at the rear edge; *) 5) input at the rear edge; *) 6) [don't know the English name for this] "Raumklang" for 7.1 System. at the rear edge. Typical audio output. 7) SPDIF coaxial at the rear edge; 8) SPDIF optical at the rear edge;

*) - the manual says that those input/outouts can be reconfigured by software.

Well. I have the external speakers plugged in frontal input. This blocks internal speakers - switches them off. There are some sporadic problems with keyboard and to prevent from really loud BIOS beeps at early mornings I keep external speakers always in this frontal output. :-) They were plugged in at this test too.

I tried to configure mixer settings (output remapping tab too) in Media Settings. MY CD drive is not recognized by Haiku now. So CD Player was not the best application to test. Under R5 I have copied the wav track from CD to Haiku partition. Boot to Haiku and try to play it with Media Player. Media Player had nothing against and looks like playing something (but no position slider!) There was no sound. I have plugged my external speakers off from frontal output. No sound too.

BTW, any additional mixer configuration required?

Thank you.

comment:3 by ithamar, 17 years ago

Ok, figured out the crash in Haiku. This is simply because I didn't implement the mixer controls yet, so the Haiku multi_audio addon has nothing to show in the Media Prefs, and crashes :P In the R5 log there was _no_ output from the hda driver, which makes it a little bit difficult to figure out what was wrong there, but looking at the backtrace it looks like a crash I know from before ;)

I'm currently implementing the mixer controls, for both Haiku and R5, so this should make life a little easier. Are the input/output jacks colored like on desktop boxes? If so, my implementation should list the correct colors when I'm done.

Currently all functionality is analog/stereo only, first want to get this working before starting on 5.1 or more :)

comment:4 by siarzhuk, 17 years ago

Yes, input/outputs are colored: 1) both microphone inputs, front and rear, are pink. 2) Headphone output on front edge is green. 3) Input at the rear is light-blue. 4) Surround at the rear edge is light-gray.

Are there any additional settings for R5 version to force hda driver to dump more info into syslog or private log?

comment:5 by korli, 17 years ago

Ithamar, I'll add some error handling for the Media preflet crash (no view made for a parameterweb) as part of this bug.

comment:6 by korli, 17 years ago

Could you test the Media prefs crash with revision 21197 ? Thanks.

by siarzhuk, 17 years ago

Attachment: syslog.haiku added

acquired under Haiku rev 21199

by siarzhuk, 17 years ago

Attachment: syslog.r5 added

acquired under hrev5 (sources correspond to rev 21199)

comment:7 by siarzhuk, 17 years ago

1) Media perflet crash no more. In case I select HD Audio item it shows "This hardware has no controls" 2) HD Audio item is visible now in Media perflet under R5 too. When I try to select this item (not as "Audio output" but just "activating" it with mouse) - the "bummer" with "Couldn´t create node: Resource is not available" appears. Attached syslog was acquired with _3 attempts_ to select this "HD Audio" item.

comment:8 by korli, 16 years ago

Could you check please if this bug is still valid as is (does the preflet crash) ?

comment:9 by siarzhuk, 16 years ago

Resolution: fixed
Status: assignedclosed

No crashes more. But no sound too from my Realtek hardware. ;-) And it is hang my system on start. I'll investigate it and notify the Trac later. This one can be close, I think.

comment:10 by diver, 13 years ago

Component: Drivers/AudioPreferences/Media
Note: See TracTickets for help on using tickets.